:root {
    /* Premium Palette */
    --primary: #0f172a;
    /* Deep Midnight Blue */
    --primary-light: #334155;
    --accent: #0ea5e9;
    /* Modern Sky Blue/Teal */
    --accent-dark: #0284c7;
    --gold: #d4af37;
    /* Subtle Gold for luxury touches */

    --bg-body: #f8fafc;
    /* Soft Slate White */
    --bg-surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Premium Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 600;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.3);
    color: var(--primary);
}

.btn-primary::after {
    display: none;
}

/* Override nav link underline */

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid #e2e8f0;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-body);
}

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

/* --- Hero Section --- */
.hero-wrapper {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 6rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.05) 0%, transparent 40%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: block;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

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

.hero-image-container {
    position: relative;
}

.hero-image-blob {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, #e3f2fd, #fff);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: blob-float 10s ease-in-out infinite alternate;
}

@keyframes blob-float {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 50% 40% 60%;
    }
}

.doctor-portrait {
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    display: block;
    margin: 0 auto;
    background: #fff;
    padding: 12px;
}

/* --- Sections & Cards --- */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: #f1f5f9;
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(14, 165, 233, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
}

.feature-card:hover::before {
    height: 100%;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #f0f9ff;
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.contact-info {
    background: var(--primary);
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    color: #fff;
}

.contact-form-wrapper {
    padding: 3rem;
}

/* Form inputs re-skin */
input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #f8fafc;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.submit-btn {
    width: 100%;
    cursor: pointer;
}


/* Footer */
footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links a::after {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .doctor-portrait {
        max-width: 320px;
    }

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

    .contact-info {
        padding: 2rem;
    }
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--primary);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: transform 0.2s;
    text-decoration: none;
}

.floating-cta:hover {
    transform: scale(1.1);
}

.floating-cta svg {
    width: 28px;
    height: 28px;
}

/* --- Article Pages (Re-optimized) --- */
.article-hero {
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
    padding: 8rem 0 4rem;
    text-align: center;
}

.article-hero h1 {
    font-size: 3rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.article-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.content-wrapper {
    max-width: 800px;
    margin: -3rem auto 0;
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
}

/* Procedure Blocks */
.procedure-block {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

.procedure-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.procedure-title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.procedure-icon {
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* FAQ / Info Box */
.faq-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 1.5rem;
        margin-top: -2rem;
        width: 95%;
    }

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

    .article-hero h1 {
        font-size: 2.5rem;
    }
}