/* =============================================
   Prof. Dr. Ziya Ayhan – Main Stylesheet
   ============================================= */

:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #f0f9ff;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --text: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --section-bg: #f8fafc;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

/* Touch: daha hızlı dokunma yanıtı, çift dokunmayla yakınlaştırmayı azaltır */
button,
[role="button"],
.btn,
.nav-link,
.floating-btn,
.carousel-control-prev,
.carousel-control-next,
.gallery-item,
.filter-btn,
.search-btn {
    touch-action: manipulation;
}

img, video, iframe { max-width: 100%; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    color: var(--dark);
}

.section-title {
    font-size: clamp(1.65rem, 4.2vw, 2.25rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

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

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 0.75rem auto 1.5rem;
}

/* ---- Navbar ---- */
#mainNav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0.75rem 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.navbar-brand { display: flex; flex-direction: column; line-height: 1.2; }

.navbar-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.3px;
    display: block;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
}

.navbar-nav .nav-link {
    color: var(--text) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.85rem;
    right: 0.85rem;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 3px 3px 0 0;
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white) !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
    color: var(--white) !important;
}


/* ---- Hero Section ---- */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 50%);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -150px; right: -150px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.03), rgba(14, 165, 233, 0.08));
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.05);
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    max-width: 600px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border: none;
    padding: 0.9rem 2.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(2, 132, 199, 0.45);
    color: var(--white);
}

.btn-hero-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--border);
    padding: 0.9rem 2.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-hero-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.stat-item { text-align: left; }

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

.hero-visual { position: relative; z-index: 10; }

.hero-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 1.5rem;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

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

.hero-photo { 
    width: 100%; 
    max-height: 480px;
    border-radius: 18px; 
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); 
}

.hero-card-badge {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
    color: var(--dark);
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
    max-width: min(340px, calc(100% - 2rem));
    text-align: center;
    line-height: 1.35;
}

/* ---- Sections ---- */
.section-py { padding: 5rem 0; }
.section-bg { background: var(--section-bg); }

/* ---- Specialty Cards ---- */
.specialty-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    border: 1px solid rgba(2, 132, 199, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

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

.specialty-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.2);
}

.specialty-card:hover::before,
.specialty-card:hover::after {
    opacity: 1;
}

.specialty-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,0) 100%);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 8px 16px rgba(2,132,199,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    font-size: 1.85rem;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.specialty-card:hover .specialty-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.25);
}

.specialty-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.specialty-card:hover h4 {
    color: var(--primary);
}

.specialty-card p, .specialty-card-body {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

.specialty-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialty-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.specialty-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    top: 2px;
}

/* ---- About Preview ---- */
.about-preview-img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-float-card {
    position: absolute;
    bottom: 2rem;
    right: -1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent);
    min-width: 180px;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.credential-item:last-child { margin-bottom: 0; }

.credential-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.credential-item strong { font-size: 0.95rem; display: block; }
.credential-item span { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Blog Cards ---- */
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
}

.blog-card-category {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.blog-card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-decoration: none;
}

.blog-card-title:hover { color: var(--primary); }

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

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

.read-more-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.read-more-btn:hover { color: var(--accent); gap: 0.5rem; }

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: -50px; left: -50px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.04);
}

.page-header-title {
    color: var(--dark);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
}

.page-header-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.breadcrumb {
    justify-content: flex-start;
    margin-top: 1.25rem;
}

.breadcrumb-item a { color: var(--primary); text-decoration: none; font-weight: 500; }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ---- About Page ---- */
.profile-photo-wrapper {
    position: relative;
    display: inline-block;
}

.profile-photo {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 100%;
    max-width: 380px;
    height: 480px;
    background: linear-gradient(135deg, var(--primary-light), var(--border));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.4;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(200, 169, 110, 0.3);
}

.experience-badge .number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.timeline { position: relative; }

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.timeline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.timeline-content h6 { font-size: 0.95rem; color: var(--dark); margin-bottom: 0.15rem; }
.timeline-year { font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.timeline-inst { font-size: 0.82rem; color: var(--text-muted); }

/* ---- Gallery ---- */
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay-icon { transform: translate(-50%, -50%) scale(1); }

.gallery-overlay h6 { color: var(--white); font-size: 0.85rem; margin: 0; }

/* Dokunmatik: hover yok; önizleme her zaman görünsün */
@media (hover: none) {
    .gallery-item .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 55%);
    }
    .gallery-item .gallery-overlay-icon {
        transform: translate(-50%, -50%) scale(1);
    }
    .gallery-item img { transform: none; }
}

.video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
}

.video-card iframe { border: none; width: 100%; height: 100%; }

.gallery-modal-img {
    max-height: min(85vh, 900px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* ---- Contact ---- */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-text strong { display: block; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.contact-info-text span, .contact-info-text a { font-size: 0.95rem; color: var(--dark); text-decoration: none; }
.contact-info-text a:hover { color: var(--primary); }

/* Contact Mini Cards */
.contact-mini-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.contact-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-mini-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), rgba(2,132,199,0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.contact-mini-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.contact-mini-card a,
.contact-mini-card span {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.contact-mini-card a:hover {
    color: var(--primary);
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 79, 122, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--dark-2));
    color: var(--white);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 79, 122, 0.35);
    color: var(--white);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: 1rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: var(--white);
    transform: translateY(-2px);
}

/* ---- Blog List ---- */
.blog-filter-bar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.search-input {
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    min-width: 200px;
}

.search-input:focus { outline: none; border-color: var(--primary); }

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-btn:hover { background: var(--primary-hover); }

/* Article Detail */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.article-content h2, .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.article-content p { margin-bottom: 1.25rem; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}
.article-content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.article-content iframe,
.article-content video {
    max-width: 100%;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    margin: 1.5rem 0;
}

.article-meta span { display: flex; align-items: center; gap: 0.3rem; }

.tag-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    margin: 0.2rem;
    transition: var(--transition);
}

.tag-badge:hover { background: var(--primary); color: var(--white); }

/* Pagination */
.pagination {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.35rem;
}

.pagination .page-link {
    color: var(--primary);
    border: 1.5px solid var(--border);
    margin: 0 3px;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition);
}

.pagination .page-link:hover, .pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ---- Floating Toolbar ---- */
.floating-toolbar {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1080;
    align-items: center;
    pointer-events: none;
}

.floating-toolbar .floating-btn {
    pointer-events: auto;
}

.floating-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    -webkit-tap-highlight-color: transparent;
}

.floating-zoom {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
}

.floating-zoom:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.1);
}

.floating-toolbar .whatsapp-float {
    position: static;
    width: 54px;
    height: 54px;
    background: #25D366;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    animation: pulse-wa 3s infinite;
}

.floating-toolbar .whatsapp-float:hover {
    transform: scale(1.12);
    color: var(--white);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8); }
}

/* ---- Footer ---- */
.footer {
    background: var(--section-bg);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer-top { padding: 4rem 0; border-bottom: 1px solid var(--border); }

.footer-brand {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.footer-subtitle { color: var(--dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; font-weight: 600;}
.footer-desc { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }

.footer-heading {
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.footer-contact i { color: var(--primary); margin-top: 2px; flex-shrink: 0; font-size: 1.1rem; }
.footer-contact a { color: var(--text-muted); text-decoration: none; transition: var(--transition);}
.footer-contact a:hover { color: var(--primary); }

.footer-bottom {
    padding: 1.25rem 0;
    background: var(--white);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-legal-link {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 0.78rem;
    transition: var(--transition);
}

.footer-legal-link:hover { color: var(--accent); }

/* ---- Utilities ---- */
.text-accent { color: var(--accent); }
.bg-primary-custom { background: var(--primary); }

.btn-outline-primary-custom {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Map */
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-container iframe { display: block; }

.contact-map-shell {
    min-height: 500px;
    position: relative;
}

.contact-map-shell iframe {
    min-height: 500px;
}

/* ---- Patient Reviews Marquee ---- */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0;
}

.marquee-wrapper::before, .marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--section-bg), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--section-bg), transparent);
}

.custom-carousel-control {
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 10;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-carousel-control:hover {
    background: var(--primary);
    border-color: var(--primary);
    opacity: 1;
}

.custom-carousel-control i {
    font-size: 1.5rem;
    color: var(--primary);
}

.custom-carousel-control:hover i {
    color: var(--white);
}

.carousel-control-prev.custom-carousel-control {
    left: 0;
}

.carousel-control-next.custom-carousel-control {
    right: 0;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    width: 100%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

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

.review-rating {
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.review-author .author-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.review-author strong {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-photo {
        max-height: min(380px, 52vh);
    }
    .hero-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .navbar-collapse {
        background: rgba(13, 27, 42, 0.98);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }
    #mainNav .navbar-collapse .nav-link {
        color: rgba(255, 255, 255, 0.95) !important;
        padding: 0.7rem 0.85rem !important;
    }
    #mainNav .navbar-collapse .nav-link:hover,
    #mainNav .navbar-collapse .nav-link:focus,
    #mainNav .navbar-collapse .nav-link.active {
        color: var(--white) !important;
    }
    #mainNav .navbar-collapse .nav-link::after {
        display: none;
    }
    #mainNav .navbar-collapse .btn-primary-custom {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    .page-header { padding: 6.5rem 0 3rem; }
    .hero-stats { gap: 1.5rem; }
    .about-float-card { right: 0; }
    .contact-map-shell,
    .contact-map-shell iframe { min-height: 360px; }
}

@media (max-width: 767.98px) {
    .blog-related-sticky { position: static !important; }
    .section-py { padding: 3.5rem 0; }
    .hero-stats {
        gap: 1.25rem;
        justify-content: space-between;
    }
    .stat-number { font-size: clamp(1.75rem, 8vw, 2.4rem); }
    .stat-item { flex: 1 1 30%; min-width: 5.5rem; }
    .hero-visual { margin-top: 3rem; }
    .profile-photo-placeholder { width: 100%; max-width: 300px; height: 380px; }
    .blog-filter-bar { flex-direction: column; align-items: stretch; }
    .search-input-group {
        margin-left: 0;
        width: 100%;
    }
    .search-input { min-width: 0; flex: 1; }
    .filter-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .search-btn { min-width: 44px; min-height: 44px; }
    #reviewsCarousel .carousel-inner { padding-left: 2.75rem; padding-right: 2.75rem; }
    .custom-carousel-control {
        width: 40px;
        height: 40px;
    }
    .carousel-control-prev.custom-carousel-control { left: 0.25rem; }
    .carousel-control-next.custom-carousel-control { right: 0.25rem; }
    .contact-form-card { padding: 1.5rem !important; }
    .contact-map-shell,
    .contact-map-shell iframe { min-height: 280px; }
}

@media (max-width: 575.98px) {
    .hero-card-badge {
        white-space: normal;
        font-size: 0.8rem;
        padding: 0.65rem 1rem;
    }
    .experience-badge {
        right: 0.35rem;
        bottom: 0.35rem;
        padding: 0.65rem 0.9rem;
    }
    input.form-control,
    textarea.form-control,
    select.form-control {
        font-size: 1rem;
    }
    .floating-toolbar .floating-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    .floating-toolbar .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-card { animation: none; }
    .floating-toolbar .whatsapp-float { animation: none; }
}
