/* Dr. Alok Aggarwal - Premium Custom Styling */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d2847;       /* Deep navy blue */
    --secondary-color: #0f9f90;     /* Calm teal */
    --accent-color: #38bdf8;        /* Sky blue cyan */
    --light-bg: #f8fafc;            /* Off-white */
    --card-bg: #ffffff;
    --text-main: #1e293b;           /* Slate 800 */
    --text-muted: #64748b;          /* Slate 500 */
    --border-color: #e2e8f0;
    --white: #ffffff;
    --success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(13, 40, 71, 0.08), 0 4px 6px -2px rgba(13, 40, 71, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(13, 40, 71, 0.12), 0 10px 10px -5px rgba(13, 40, 71, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navbar */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
}

.logo-text h1 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

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

.nav-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.nav-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 3.75rem 0; /* 60px */
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(224, 242, 254, 0.4) 100%);
    overflow: hidden;
}

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

.hero-tag {
    display: inline-block;
    background-color: rgba(15, 159, 144, 0.1);
    color: var(--secondary-color);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 159, 144, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 40, 71, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2.25rem;
    color: var(--primary-color);
    font-weight: 800;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image-bg {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 90%;
    height: 90%;
    background-color: var(--secondary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    opacity: 0.15;
    animation: morph 8s ease-in-out infinite;
}

.hero-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 8px solid var(--white);
    background-color: var(--white);
    transform: rotate(1deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: rotate(0) scale(1.02);
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Sections */
.section {
    padding: 3.75rem 0; /* 60px */
}

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

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

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

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

/* Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 159, 144, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: rgba(15, 159, 144, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link svg {
    transition: var(--transition);
}

.service-card:hover .service-link svg {
    transform: translateX(5px);
}

/* Welcome Clinic Section */
.clinic-welcome-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3.75rem 0; /* 60px */
    position: relative;
    border-radius: 30px;
    margin: 0;
}

.clinic-welcome-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.clinic-welcome-content h2 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.clinic-welcome-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

.bullet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bullet-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.bullet-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.clinic-contact-badge {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
}

.clinic-contact-badge h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.clinic-phone {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

/* Appointment Form Block */
.appointment-section {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.4) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.appointment-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.appointment-info h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.appointment-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 46px;
    height: 46px;
    background-color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-details p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.appointment-form-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.appointment-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: var(--light-bg);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(15, 159, 144, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* About / CV Page Styling */
.about-hero {
    background: linear-gradient(135deg, #0d2847 0%, #1e3a5f 100%);
    color: var(--white);
    padding: 3.75rem 0; /* 60px */
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero p {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 500;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.about-image-card img {
    border-radius: 12px;
    width: 100%;
}

.about-quick-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.quick-info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.quick-info-item span:first-child {
    font-weight: 600;
    color: var(--text-muted);
}

.quick-info-item span:last-child {
    font-weight: 700;
    color: var(--primary-color);
}

.about-bio h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.about-bio h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.about-bio-text {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.about-memberships {
    margin-top: 2.5rem;
}

.about-memberships h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.membership-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.membership-tag {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Qualifications & Timeline */
.tabs-container {
    margin-top: 4rem;
}

.tab-nav {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 3rem;
    gap: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

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

.tab-btn.active {
    color: var(--secondary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Timeline Components */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white);
    border: 4px solid var(--secondary-color);
    z-index: 2;
}

.timeline-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 159, 144, 0.2);
}

.timeline-year {
    display: inline-block;
    background-color: rgba(15, 159, 144, 0.1);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Publications List */
.publications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.publication-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.pub-badge {
    background-color: rgba(13, 40, 71, 0.08);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pub-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

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

/* Detail Service Page styling */
.service-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.service-detail-header {
    margin-bottom: 3rem;
}

.service-detail-body {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-detail-body h2, .service-detail-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* -------------------------------------------------------
   Rich Content Typography — TinyMCE HTML output styling
   Applies to service detail pages and about bio
   ------------------------------------------------------- */
.service-rich-content,
.about-bio-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.service-rich-content h2,
.about-bio-text h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-rich-content h3,
.about-bio-text h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-rich-content h4,
.about-bio-text h4 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.service-rich-content p,
.about-bio-text p {
    margin-bottom: 1rem;
}

.service-rich-content ul,
.service-rich-content ol,
.about-bio-text ul,
.about-bio-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.service-rich-content li,
.about-bio-text li {
    margin-bottom: 0.4rem;
}

.service-rich-content a,
.about-bio-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.service-rich-content strong,
.about-bio-text strong {
    font-weight: 700;
    color: var(--primary-color);
}

.service-rich-content em,
.about-bio-text em {
    font-style: italic;
}

.service-rich-content table,
.about-bio-text table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-rich-content td,
.service-rich-content th,
.about-bio-text td,
.about-bio-text th {
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.85rem;
    text-align: left;
}

.service-rich-content th,
.about-bio-text th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--primary-color);
}

.service-detail-body p {
    margin-bottom: 1.5rem;
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-form-wrapper {
    position: sticky;
    top: 100px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.25rem;
}

.map-wrapper {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.75rem 0 2rem 0; /* 60px top */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-about p {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Service Detail Layout with Sidebar */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 3rem;
    align-items: flex-start;
}

.service-detail-body {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-detail-image-wrapper {
    width: 100%;
    max-height: 380px;
    overflow: hidden;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.service-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-doctor-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.sidebar-doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 159, 144, 0.2);
}

.sidebar-doctor-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.sidebar-doctor-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.sidebar-doctor-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.sidebar-doctor-degrees {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 500;
}

.sidebar-form-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.sidebar-form-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 159, 144, 0.2);
}

.sidebar-form-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* =====================================================
   RESPONSIVE BREAKPOINTS — Tablet & Mobile Typography
   ===================================================== */

/* ---------- TABLET (769px – 1024px) ---------- */
@media (max-width: 1024px) {

    /* Layout fixes */
    .hero-grid,
    .about-intro-grid,
    .clinic-welcome-grid,
    .appointment-grid,
    .contact-grid,
    .service-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .hero-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }

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

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

    /* --- Hero --- */
    .hero-section {
        padding: 3.75rem 0; /* 60px — same as desktop */
    }

    .hero-title {
        font-size: 2.6rem;
        letter-spacing: -0.5px;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-tag {
        font-size: 0.8rem;
    }

    .stat-item h3 {
        font-size: 1.9rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    /* --- Section headings --- */
    .section {
        padding: 3.75rem 0; /* 60px — same as desktop */
    }

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

    .section-desc {
        font-size: 0.98rem;
    }

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

    /* --- Logo --- */
    .logo-text h1 {
        font-size: 1.15rem;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    /* --- Nav --- */
    .nav-link {
        font-size: 0.88rem;
    }

    .nav-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }

    /* --- Service cards --- */
    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* --- Clinic welcome --- */
    .clinic-welcome-content h2 {
        font-size: 1.9rem;
    }

    .clinic-welcome-content p {
        font-size: 0.98rem;
    }

    .clinic-contact-badge h4 {
        font-size: 1.1rem;
    }

    .clinic-phone {
        font-size: 1.5rem;
    }

    /* --- Appointment --- */
    .appointment-info h2 {
        font-size: 1.9rem;
    }

    .appointment-form-card h3 {
        font-size: 1.3rem;
    }

    /* --- About --- */
    .about-hero h1 {
        font-size: 2.4rem;
    }

    .about-hero p {
        font-size: 1.05rem;
    }

    .about-bio h2 {
        font-size: 1.75rem;
    }

    .about-bio-text {
        font-size: 0.98rem;
    }

    .tab-btn {
        font-size: 0.98rem;
        padding: 0.85rem 1.5rem;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-subtitle {
        font-size: 0.88rem;
    }

    /* --- Sidebar --- */
    .sidebar-doctor-card h4 {
        font-size: 1.15rem;
    }

    .sidebar-doctor-title {
        font-size: 0.75rem;
    }

    .sidebar-doctor-degrees {
        font-size: 0.8rem;
    }

    .sidebar-form-card h3 {
        font-size: 1.2rem;
    }

    /* --- Footer --- */
    .footer-col h3 {
        font-size: 1.1rem;
    }

    .footer-contact li {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* ---------- MOBILE (≤ 768px) ---------- */
@media (max-width: 768px) {

    /* Nav */
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        z-index: 200;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-btn {
        margin: 1rem 1.5rem;
        text-align: center;
        border-radius: 50px;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hero */
    .hero-section {
        padding: 1.875rem 0; /* 30px */
    }

    .hero-tag {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.3px;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 0.85rem 1.6rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .stat-item h3 {
        font-size: 1.65rem;
    }

    .stat-item p {
        font-size: 0.78rem;
    }

    /* Sections */
    .section {
        padding: 1.875rem 0; /* 30px */
    }

    .section-title {
        font-size: 1.65rem;
        letter-spacing: 0;
    }

    .section-desc {
        font-size: 0.9rem;
    }

    .section-tag {
        font-size: 0.75rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Logo */
    .logo-text h1 {
        font-size: 1.05rem;
    }

    .logo-text p {
        font-size: 0.65rem;
    }

    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.88rem;
    }

    .service-link {
        font-size: 0.85rem;
    }

    /* Clinic welcome */
    .clinic-welcome-section {
        padding: 1.875rem 0; /* 30px */
        border-radius: 20px;
    }

    .clinic-welcome-content h2 {
        font-size: 1.6rem;
    }

    .clinic-welcome-content p {
        font-size: 0.92rem;
    }

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

    .bullet-text {
        font-size: 0.88rem;
    }

    .clinic-contact-badge h4 {
        font-size: 1rem;
    }

    .clinic-phone {
        font-size: 1.35rem;
    }

    /* Appointment */
    .appointment-form-card {
        padding: 2rem 1.5rem;
    }

    .appointment-form-card h3 {
        font-size: 1.2rem;
    }

    .appointment-info h2 {
        font-size: 1.65rem;
    }

    .form-label {
        font-size: 0.78rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    /* About */
    .about-hero {
        padding: 1.875rem 0; /* 30px */
    }

    .about-hero h1 {
        font-size: 1.9rem;
    }

    .about-hero p {
        font-size: 0.95rem;
    }

    .about-bio h2 {
        font-size: 1.5rem;
    }

    .about-bio-text {
        font-size: 0.92rem;
    }

    .about-memberships h3 {
        font-size: 1.1rem;
    }

    .membership-tag {
        font-size: 0.78rem;
    }

    /* Tabs */
    .tab-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    /* Timeline */
    .timeline-title {
        font-size: 1rem;
    }

    .timeline-subtitle {
        font-size: 0.85rem;
    }

    .timeline-year {
        font-size: 0.75rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    /* Publications */
    .publications-grid {
        grid-template-columns: 1fr;
    }

    .pub-info h4 {
        font-size: 0.95rem;
    }

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

    /* Service detail */
    .service-detail-body {
        padding: 1.75rem;
        font-size: 0.95rem;
    }

    /* Sidebar */
    .service-sidebar {
        gap: 1.5rem;
    }

    .sidebar-doctor-card h4 {
        font-size: 1.1rem;
    }

    .sidebar-doctor-title {
        font-size: 0.72rem;
    }

    .sidebar-doctor-degrees {
        font-size: 0.78rem;
    }

    .sidebar-form-card h3 {
        font-size: 1.15rem;
    }

    .sidebar-form-card,
    .sidebar-doctor-card {
        padding: 1.75rem 1.5rem;
    }

    /* Contact */
    .contact-info-card {
        padding: 1.5rem;
    }

    .info-details h4 {
        font-size: 0.92rem;
    }

    .info-details p {
        font-size: 0.82rem;
    }

    /* Footer */
    .footer {
        padding: 1.875rem 0 1.5rem 0; /* 30px top */
    }

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

    .footer-col h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-contact li {
        font-size: 0.82rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        font-size: 0.78rem;
    }

    /* Quick info */
    .quick-info-item {
        font-size: 0.82rem;
    }
}

/* ---------- SMALL MOBILE (≤ 480px) ---------- */
@media (max-width: 480px) {

    .container {
        padding: 0 1rem;
    }

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

    .hero-desc {
        font-size: 0.88rem;
    }

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

    .about-hero h1 {
        font-size: 1.65rem;
    }

    .clinic-welcome-content h2 {
        font-size: 1.4rem;
    }

    .appointment-info h2 {
        font-size: 1.45rem;
    }

    .stat-item h3 {
        font-size: 1.45rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .navbar {
        height: 68px;
    }

    .logo-text h1 {
        font-size: 0.95rem;
    }

    .logo-text p {
        display: none;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.85rem;
        padding: 0.75rem 1.3rem;
        width: 100%;
        text-align: center;
        display: block;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .timeline-title {
        font-size: 0.95rem;
    }

    .tab-btn {
        font-size: 0.85rem;
    }

    .sidebar-doctor-card h4 {
        font-size: 1rem;
    }

    .sidebar-form-card h3 {
        font-size: 1rem;
    }

    .service-detail-body {
        font-size: 0.9rem;
        padding: 1.25rem;
    }

    .appointment-form-card {
        padding: 1.5rem 1rem;
    }
}

