@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #003366;
    /* Deep Navy Blue derived from logo idea */
    --primary-light: #2c5282;
    --primary-dark: #002244;
    --accent-color: #2c7a7b;
    /* Teal/Turquoise for medical/clean feel */
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-light: #f8fafc;
    --white: #ffffff;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Typography */
    --font-main: 'Noto Sans TC', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition: all 0.3s ease;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 3px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 17px;
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.65;
    letter-spacing: 0.5px;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* Modern rounded style */
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease; /* Updated transition to 0.3s */
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}


/* Text Utilities */
.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-highlight {
    color: var(--primary-dark);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* Increased gap for better whitespace */
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 52px; /* Slightly refined size */
    width: auto;
    border-radius: 4px; /* Subtle rounding for logo image if square */
}

.logo-text {
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1,
.logo-clinic-name {
    font-size: 1.55rem;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin: 0;
}

.logo-text span {
    font-size: 0.825rem;
    color: var(--primary-light); /* Professional muted blue-gray */
    letter-spacing: 0.5px;
    text-transform: none;
    line-height: 1.4;
    font-weight: 500;
    margin-top: 2px; /* Subtle breathing room between lines */
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-contact-btn {
    background-color: #06c755;
    /* Line Green */
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.nav-contact-btn:hover {
    background-color: #05b44c;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 6fr 4fr; /* 6:4 Ratio */
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    background: linear-gradient(135deg, rgba(240, 247, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05); /* Soft shadow */
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.hero-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-color); /* Changed from light for better contrast on gradient */
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 450px; /* Constrain size on larger screens to keep 6:4 balance */
    border-radius: 20px; /* Required 20px */
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15); /* Refined shadow */
    object-fit: cover;
    border: 4px solid var(--white); /* Refined border effect */
}

/* Latest News Section */
.latest-news {
    padding: 70px 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    display: flex;
    background: var(--bg-light);
    padding: 24px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
    background: var(--white);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border-radius: 15px;
    min-width: 80px;
    height: 80px;
    margin-right: 20px;
}

.news-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .news-item {
        flex-direction: column;
        text-align: left;
    }

    .news-date {
        margin-right: 0;
        margin-bottom: 20px;
        width: 80px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Services Preview */
.services {
    padding: 70px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h1,
.section-title h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 20px;
    transition: var(--transition);
    cursor: default;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    background: var(--white);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Appointment CTA */
.cta {
    padding: 70px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.line-btn-large {
    background-color: #06c755;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.line-btn-large:hover {
    background-color: #05b44c;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.social-links a {
    font-size: 3rem !important;
    margin-right: 20px;
}


.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Schedule Section - Redesigned */
.schedule {
    padding: 100px 0;
    background-color: var(--white);
}

.schedule-table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

.schedule-table th,
.schedule-table td {
    padding: 30px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.schedule-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 2.5rem;
    /* Significantly larger */
}

.schedule-table td {
    color: var(--text-color);
    font-size: 2.5rem;
    /* Significantly larger */
}

.schedule-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.time-slot {
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.time-slot .time-range {
    font-size: 2.5rem;
    /* Increased to ~2-3x original size */
    color: #4a5568;
    font-weight: 700;
    margin-top: 5px;
    display: block;
    /* Ensure it takes full width/own line */
}

.time-sep {
    display: inline;
}

.status-open {
    color: var(--primary-color);
    font-size: 2.5rem;
    /* Larger icon */
}

.status-special {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.status-closed {
    color: #cbd5e0;
}

/* Legend & Additional Info */
.schedule-legend {
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.schedule-info-box {
    margin-top: 50px;
    text-align: center;
    color: var(--primary-dark);
    line-height: 2;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    padding: 50px;
    border-radius: 30px;
    border: 2px solid #bee3f8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.schedule-info-box p {
    font-size: 2.2rem;
    /* Larger text for medical info */
    margin-bottom: 20px;
    font-weight: 600;
}

.schedule-info-box p:last-child {
    margin-bottom: 0;
}

.schedule-info-box .warning-text {
    font-weight: 800;
    color: #c53030;
}

.schedule-info-box .safety-text {
    font-weight: 800;
    color: var(--primary-color);
    margin-top: 20px;
    display: block;
}

/* Schedule Mobile Responsive */
@media (max-width: 768px) {
    .schedule {
        padding: 60px 0;
    }

    .schedule-table-container {
        overflow-x: visible;
        border-radius: 12px;
        margin: 20px auto;
    }

    .schedule-table {
        min-width: unset;
        width: 100%;
        table-layout: fixed;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 10px 4px;
        font-size: 0.85rem;
        border: 1px solid #e2e8f0;
    }

    .schedule-table th {
        font-size: 0.9rem;
    }

    .schedule-table td {
        font-size: 0.85rem;
    }

    .time-slot {
        font-size: 0.8rem;
        gap: 2px;
    }

    .time-slot .time-range {
        font-size: 0.65rem;
        font-weight: 600;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        line-height: 1.3;
    }

    .time-sep {
        display: block;
        font-size: 0;
    }

    .time-sep::after {
        content: '|';
        font-size: 0.55rem;
        color: #a0aec0;
        display: block;
    }

    .status-open {
        font-size: 1rem;
    }

    .status-special {
        font-size: 0.7rem;
    }

    .schedule-legend {
        margin-top: 20px;
        font-size: 0.9rem;
        gap: 20px;
    }

    .schedule-legend .status-open {
        font-size: 1rem;
    }

    .schedule-info-box {
        padding: 20px 15px;
        border-radius: 16px;
        margin-top: 25px;
        text-align: left;
    }

    .schedule-info-box p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .section-title h1,
    .section-title h3 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {

    .schedule-table th,
    .schedule-table td {
        padding: 8px 2px;
        font-size: 0.75rem;
    }

    .schedule-table th {
        font-size: 0.8rem;
    }

    .time-slot .time-range {
        font-size: 0.6rem;
    }

    .time-sep::after {
        font-size: 0.5rem;
    }

    .status-special {
        font-size: 0.6rem;
    }

    .schedule-info-box p {
        font-size: 0.8rem;
    }
}

/* Medical Team Section */
.medical-team {
    padding: 100px 0;
    background-color: var(--bg-light);
}

/* Doctor Intro Banner Specific Styles */
.doctor-intro-banner {
    padding: 60px 0 80px;
    /* Added more padding to accommodate the graphics */
    height: fit-content;
    background:
        /* Heartbeat (ECG) SVG Watermark (Left side) */
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="200" viewBox="0 0 600 200" opacity="0.04"><path d="M0 100 h100 l30 -50 l40 100 l50 -120 l30 90 l20 -20 h330" fill="none" stroke="%23003366" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/></svg>') left 10% center no-repeat,
        /* Cross/Plus Medical SVG Watermark (Right side) */
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 100 100" opacity="0.03"><path d="M40 0 h20 v40 h40 v20 h-40 v40 h-20 v-40 h-40 v-20 h40 z" fill="%234fd1c5"/></svg>') right 5% top 20% no-repeat,
        /* Primary Soft Gradient */
        linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 50%, #f7fafc 100%);
    position: relative;
}

.doctor-intro-banner .banner-title {
    margin-bottom: 70px;
    /* Increased to prevent overlap with the raised doctor card */
}

.doctor-intro-banner .banner-title h1,
.doctor-intro-banner .banner-title h3 {
    margin-bottom: 8px;
    /* Closer connection to subtitle */
}

.doctor-intro-banner .doctor-card {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

/* Doctor Card Redesign */
/* Doctor Card Redesign */
.doctor-card {
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.08);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.doctor-bio-text {
    padding: 0 80px 40px;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 40px;
}

.doctor-bio-text--summary {
    padding: 40px 80px;
    border-top: 1px solid #edf2f7;
    border-bottom: none;
    margin-bottom: 0;
    background: #f8fbff;
}

.doctor-bio-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

@media (max-width: 768px) {
    .doctor-bio-text {
        padding: 0 20px 30px;
    }

    .doctor-bio-text--summary {
        padding: 30px 20px;
    }

    .doctor-bio-text p {
        font-size: 1rem;
    }
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.doctor-header-full {
    padding: 60px 80px 40px;
    border-bottom: 2px solid #edf2f7;
    margin-bottom: 40px;
    text-align: center;
}

.doctor-header-full h2 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.doctor-header-full p {
    font-size: 1.4rem;
    color: var(--primary-light);
    font-weight: 600;
}

.doctor-3col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    /* Changed to top-align all columns */
    padding: 0 80px 60px;
}

.doctor-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-width: 0;
}

/* New Doctor Motto Card */
.doctor-motto-card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    max-width: 100%;
}

.doctor-image-wrapper.top-aligned-portrait {
    width: 100%;
    margin: 0 auto;
    padding-top: 0;
}

.doctor-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Slogan Container and Decorations */
.slogan-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* Space between lines and content */
    margin-top: 10px;
    /* Space below portrait */
    padding-bottom: 20px;
    /* Space above card bottom edge */
    flex-wrap: wrap;
}

.slogan-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
}

.slogan-icon {
    color: var(--primary-light);
    font-size: 1.2rem;
    opacity: 0.8;
}

.slogan-content img {
    max-width: 250px;
    /* Control slogan image width */
    width: 100%;
    height: auto;
    opacity: 0.9;
    object-fit: contain;
}

.slogan-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--primary-light);
    opacity: 0.3;
}

.booking-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.booking-btn-wrapper .line-btn-large {
    width: 100%;
    justify-content: center;
}

.credential-column h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #edf2f7;
    position: relative;
    display: inline-block;
}

/* Remove icons from headers */
.credential-column h3::before {
    display: none;
}

.credential-column h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    display: block;
}

.credential-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
}

.credential-column li {
    position: relative;
    padding-left: 25px;
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.6;
    display: list-item;
    word-break: break-word;
    /* Ensure long words break instead of overflowing */
}

/* Specific spacing for the Certifications column to match Education column height */
.doctor-3col-grid .credential-column:nth-child(2) ul {
    gap: 22px;
    /* Increased gap specifically for the second column */
}

.credential-column li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: 900;
    position: absolute;
    left: 0;
    font-size: 1rem;
    top: 2px;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    transform: none;
}

@media (max-width: 768px) {
    .doctor-header-full {
        padding: 30px 20px 20px;
        margin-bottom: 20px;
    }

    .doctor-header-full h2 {
        font-size: 2.2rem;
    }

    .doctor-3col-grid {
        grid-template-columns: 1fr;
        padding: 0 15px 40px;
        /* Reduced from 20px to 15px */
        gap: 30px;
        text-align: left;
        min-width: 0;
    }

    .credential-column {
        min-width: 0;
        width: 100%;
        overflow-wrap: break-word;
    }

    .doctor-image-col {
        order: -1;
        /* Image and button first on mobile */
        min-width: 0;
        width: 100%;
    }

    .credential-column h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .credential-column li {
        font-size: 0.95rem;
        padding-left: 16px;
        line-height: 1.5;
        word-break: break-all;
        /* Break long words on mobile */
    }

    .credential-column li::before {
        font-size: 0.8rem;
    }
}

/* Detailed Services List */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #e2e8f0;
    font-size: 2.4rem;
    /* Doubled size (was 1.2rem) */
    font-weight: 700;
    color: var(--primary-dark);
    transition: var(--transition);
}

.service-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .services-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 30px;
    }

    .service-item {
        padding: 16px 10px;
        font-size: 1rem;
        border-radius: 12px;
    }
}

@media (max-width: 900px) {
    .doctor-card {
        grid-template-columns: 1fr;
    }

    .doctor-image {
        height: 400px;
    }

    .doctor-info {
        padding: 40px 30px;
    }
}

/* Mobile Responsive */
/* Mobile Responsive */
.mobile-toggle,
.mobile-search-btn,
.mobile-actions {
    display: none;
}

.mobile-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
        text-wrap: pretty;
    }
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin: 0 0 30px;
        text-wrap: pretty;
        text-align: left;
        text-indent: 0;
    }
}

@media (max-width: 400px) {
    .hero-text h2 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {

    /* Mobile Actions Container */
    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 15px;
        z-index: 1100;
        position: relative;
    }

    .mobile-toggle {
        display: block !important;
        position: relative;
        color: var(--primary-color) !important;
        padding: 5px;
    }

    .mobile-search-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        padding: 5px;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 40px;
        gap: 30px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        text-align: center;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-contact-btn {
        display: inline-flex;
        width: auto;
    }
}

/* Search Container Styles */
.search-container {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 998;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    visibility: hidden;
}

.search-container.active {
    transform: translateY(0);
    visibility: visible;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.search-form input:focus {
    border-color: var(--primary-color);
}

.search-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Search Button */
.desktop-search-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-search-btn:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .desktop-search-btn {
        display: none;
    }
}

/* Blog Page Styles */
.blog-hero {
    padding: 160px 0 60px;
    background-color: var(--bg-light);
}

/* Blog Featured Section */
.blog-featured {
    padding: 40px 0 0;
    background-color: var(--bg-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.blog-card-featured .blog-image {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 1;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 24px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding-bottom: 100px;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
}

.blog-category {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e6fffa;
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.blog-card h4 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.read-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

/* Booking Choice Page */
.booking-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    min-height: 80vh;
}

.booking-choices {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.choice-card {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.08);
    text-align: center;
    width: 350px;
    max-width: 100%;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.choice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 51, 102, 0.15);
}

.line-choice {
    border-color: #06c755;
}

.line-choice:hover {
    background: linear-gradient(to bottom right, #fff, #f0fff4);
}

.web-choice {
    border-color: var(--primary-color);
}

.web-choice:hover {
    background: linear-gradient(to bottom right, #fff, #ebf8ff);
}

.choice-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.line-choice .choice-icon {
    color: #06c755;
}

.web-choice .choice-icon {
    color: var(--primary-color);
}

.choice-card h4 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.choice-card p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.choice-btn {
    width: 100%;
}

/* Booking Form */
.booking-form-container {
    max-width: 600px;
    margin: 60px auto 0;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.form-header h4 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.close-form-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-form-btn:hover {
    color: #c53030;
    transform: rotate(90deg);
}

.form-type-toggle {
    display: flex;
    background: #edf2f7;
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 30px;
}

.type-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 12px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.type-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group label .required {
    color: #c53030;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Responsive Booking Page */
@media (max-width: 768px) {
    .booking-choices {
        flex-direction: column;
        align-items: center;
    }

    .choice-card {
        width: 100%;
        max-width: 350px;
        padding: 30px 24px;
    }

    .choice-card h4 {
        font-size: 1.5rem;
    }

    .form-card {
        padding: 30px 20px;
    }
}

/* Instruction Tabs Redesign */
.instructions-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 20px;
}

.instruction-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background-color: var(--white);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}

.tab-btn:hover {
    background-color: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.instruction-content-area {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.content-body {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Mobile responsive for tabs */
@media (max-width: 768px) {
    .instruction-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
        /* Space for scrollbar */
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        flex: 0 0 auto;
        font-size: 0.95rem;
        padding: 12px 20px;
        text-align: left;
    }

    .instruction-content-area {
        padding: 25px;
    }

    .content-title {
        font-size: 1.5rem;
    }
}

/* Certificates Section */
.certificates {
    padding: 80px 0;
    background-color: var(--white);
}

.certificates-title {
    margin-bottom: 50px;
    padding-left: 20px;
}

.certificates-title .main-title {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.4;
}

.certificates-title .sub-title {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.5rem;
    color: #8b6b4d;
    font-weight: 600;
    line-height: 1.5;
}

.certificates-title .sub-title i {
    font-size: 1.2rem;
    margin-right: 5px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.certificate-item {
    background-color: var(--white);
    border-radius: 20px;
    padding: 20px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.certificate-item:hover .cert-img {
    transform: scale(1.05);
}

.cert-img {
    height: 320px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 5px;
    transition: var(--transition);
}

.cert-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.certificate-item p {
    margin-top: auto;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.15rem;
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.5;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .certificates {
        padding: 40px 0;
    }

    .certificates-title .main-title {
        font-size: 1.5rem;
    }

    .certificates-title .sub-title {
        font-size: 1.2rem;
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 5px;
    }

    .certificate-item {
        padding: 12px 10px;
    }

    .cert-img {
        height: auto;
        aspect-ratio: 1;
        padding: 0;
        margin-bottom: 10px;
        background-color: transparent;
    }

    .cert-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .certificate-item p {
        font-size: 0.95rem;
        line-height: 1.4;
        padding-top: 5px;
        word-break: break-word;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    animation: zoom 0.3s ease;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 45px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 12px 0;
    background: #f0f7ff;
    border-bottom: 1px solid #e2eaf4;
}

.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
    color: var(--text-dark);
    font-weight: 600;
}

/* Doctor CTA inline (inside bio summary block) */
.doctor-cta-inline {
    margin-top: 24px;
    text-align: center;
}

/* FAQ CTA block */
.faq-cta {
    margin-top: 40px;
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #e2eaf4;
}

.faq-cta p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .faq-cta {
        padding: 28px 20px;
    }
}

/* Articles + FAQ side-by-side combo */
.articles-faq-combo {
    padding: 80px 0;
    background: #f8fbff;
}

.articles-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.col-heading {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.col-subheading {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .articles-faq-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .articles-faq-combo {
        padding: 50px 0;
    }
}

/* Health Education Articles Section */
.doctor-articles {
    padding: 80px 0;
}

.doctor-articles-list {
    list-style: none;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-articles-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border: 1px solid #e2eaf4;
    border-radius: 10px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    background: var(--white);
    transition: background 0.2s, border-color 0.2s;
}

.doctor-articles-list li a:hover {
    background: #f0f7ff;
    border-color: var(--primary-color);
}

.doctor-articles-list li a i {
    color: var(--accent-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .doctor-articles {
        padding: 50px 0;
    }

    .doctor-articles-list li a {
        font-size: 0.95rem;
        padding: 14px 16px;
    }
}

/* FAQ Section */
.doctor-faq {
    padding: 80px 0;
    background: #f8fbff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.articles-faq-grid .faq-list,
.articles-faq-grid .doctor-articles-list {
    max-width: 100%;
    margin: 0;
}

.faq-item {
    border: 1px solid #e2eaf4;
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--white);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: left;
    gap: 16px;
}

.faq-question:hover {
    background: #f0f7ff;
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: var(--primary-color);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer a {
    color: var(--primary-color);
}

/* Long URL / link overflow prevention (references, cards, lists) */
.card a,
.references a,
.bullet-list a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 768px) {
    .doctor-faq {
        padding: 50px 0;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 16px 18px;
    }

    .faq-answer {
        padding: 0 18px 16px;
        font-size: 0.95rem;
    }
}

/* Digital Business Card Section */
.digital-business-cards {
    padding: 40px 0 80px;
}

.biz-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.biz-card-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition, 0.3s ease);
    text-align: center;
    padding-bottom: 25px;
}

.biz-card-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.biz-card-img-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.biz-card-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.biz-card-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #06c755;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition, 0.3s ease);
}

.biz-card-download-btn:hover {
    background-color: #05b44c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.3);
    color: white;
    text-decoration: none;
}

/* Logo Clinic Name style moved to primary header block for consistency */

/* ===== Homepage Hero H1 ===== */
.hero-text h1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}


/* ===== Doctor Authority Section ===== */
.doctor-authority {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.doctor-authority-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.doctor-authority-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.doctor-authority-info h4 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.doctor-authority-info .doctor-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.doctor-authority-info .doctor-background {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.doctor-expertise {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doctor-expertise li {
    background: #f0f7ff;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #bee3f8;
}

/* ===== Services Category Grid ===== */
.services-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-category-card {
    background: var(--white); /* White background per requirements */
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid #e2e8f0; /* Fine grey border */
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05); /* Large soft shadow */
    transition: var(--transition); /* Transition includes the 0.3s globally */
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    border-color: var(--primary-color);
}

.service-category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.service-category-card h4 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.service-category-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-category-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 1rem;
}

.service-category-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color); /* List icon to brand color */
    font-size: 0.9rem;
}

/* ===== Symptom Entry ===== */
.symptom-entry {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.symptom-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--text-color);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.symptom-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
}

.symptom-btn i {
    color: var(--accent-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ===== Exam Entry ===== */
.exam-entry {
    padding: 80px 0;
    background-color: var(--white);
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.exam-card {
    display: block;
    background: var(--bg-light);
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: var(--transition);
}

.exam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    border-color: var(--primary-color);
    background: var(--white);
}

.exam-card-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.exam-card h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.exam-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===== Clinic Info Section (Premium Redesign) ===== */
.clinic-info-section {
    padding: 50px 0; /* Reduced from 80px */
    background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
}

.clinic-info-section .section-title {
    margin-bottom: 24px; /* Reduced to bring content closer */
}

/* Shared card header */
.card-header {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 10px */
    margin-bottom: 14px; /* Reduced from 20px */
    padding-bottom: 10px; /* Reduced from 14px */
    border-bottom: 2px solid #edf2f7;
}

.card-header i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.card-header h4 {
    font-size: 1.1rem; /* Slightly smaller */
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    letter-spacing: 0.3px;
}

/* Upper row: schedule + contact side by side */
.clinic-info-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 16px; /* Reduced from 24px */
    align-items: stretch; /* Change from start to stretch to ensure equal height */
    margin-bottom: 16px; /* Reduced from 24px */
}

/* --- Schedule Card --- */
.schedule-card {
    background: var(--white);
    border-radius: 12px; /* Slightly tighter corner */
    padding: 20px 20px 16px; /* Reduced from 28px */
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.05); /* Softer shadow */
    border: 1px solid #e8eef3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.schedule-table-wrap {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Refined schedule table */
.ci-schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ci-schedule-table th,
.ci-schedule-table td {
    padding: 10px 8px; /* Reduced from 14px 10px */
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.9rem;
}

.ci-schedule-table th {
    background: #eef4fb;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ci-schedule-table th:first-child {
    border-radius: 8px 0 0 0;
}

.ci-schedule-table th:last-child {
    border-radius: 0 8px 0 0;
}

.ci-th-time {
    min-width: 85px; /* Reduced from 90px */
}

.ci-schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.ci-schedule-table tbody tr:hover {
    background-color: #f8fbff;
}

/* Time cell */
.ci-time-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px; /* Tighter gap */
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.ci-period {
    font-size: 0.9rem; /* Reduced slightly */
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.ci-hours {
    font-size: 0.85rem; /* Increased from 0.75rem */
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.2px;
}

/* Status: Open */
.ci-status-open {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Status: Closed */
.ci-status-closed {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #b0b8c4;
    white-space: nowrap;
}

/* Special labels (pill badges) */
.ci-label-special,
.ci-label-note {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.ci-label-special {
    background: #e0f0ff;
    color: #1a6bb5;
}

.ci-label-note {
    background: #fef9e7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Closed cell */
.ci-cell-closed {
    background: #fafafa;
}

/* --- Contact Card --- */
.contact-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 20px 16px; /* Reduced from 28px */
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.05); /* Softer shadow */
    border: 1px solid #e8eef3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-list {
    font-style: normal;
    margin-bottom: 24px;
}

.ci-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px; /* Reduced from 14px */
    margin-bottom: 12px; /* Reduced from 18px */
}

.ci-contact-row:last-child {
    margin-bottom: 0;
}

.ci-contact-icon {
    width: 32px; /* Reduced from 36px */
    height: 32px; /* Reduced from 36px */
    background: #f0f5ff;
    border-radius: 8px; /* Sharper corners */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 0.85rem; /* Reduced from 0.95rem */
}

.ci-icon-line {
    background: #e6ffe6;
    color: #06c755;
}

.ci-icon-fb {
    background: #e8f0fe;
    color: #1877f2;
}

.ci-contact-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 32px; /* Matches icon height */
}

.ci-contact-body strong {
    font-size: 0.95rem; /* Reduced from 1.05rem */
    color: var(--primary-dark);
    line-height: 1.2; /* Tighter line height */
}

.ci-contact-body span {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1px;
}

.ci-contact-body a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem; /* Reduced from 0.95rem */
    transition: var(--transition);
    line-height: 1.3;
}

.ci-contact-body a:hover {
    color: var(--primary-color);
}

/* 到院資訊小區塊樣式 */
.ci-visit-info {
    margin: 4px 0 20px;
    padding: 12px 14px;
    background-color: #f0f7ff; /* 淺淡藍色背景 */
    border-radius: 10px;
    border: 1px solid #e1effe;
}

.ci-visit-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px; /* Increased from 6px */
    font-size: 0.9rem; /* Slightly larger */
    color: var(--text-color);
    line-height: 1.6; /* More breathing room */
}

.ci-visit-row:last-child {
    margin-bottom: 0;
}

.ci-visit-row i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
}

/* Booking CTA button */
.ci-booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 10px 20px; /* Reduced padding */
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px; /* Sharper corner */
    font-size: 0.95rem; /* Reduced from 1rem */
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
}

.ci-booking-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 51, 102, 0.2);
}

/* --- Integrated Reminders (Inside Schedule Card) --- */
.ci-reminders {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.ci-reminders-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ci-reminders-title i {
    font-size: 1rem;
    color: var(--primary-color);
}

.ci-reminders-title h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.reminders-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reminder-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafb;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    font-size: 0.88rem; /* Slightly smaller for density */
    color: var(--text-color);
    line-height: 1.4; /* Tighter line height */
}

.reminder-item-warning {
    background: #fffbf0;
    border-color: #fde68a;
}

.reminder-icon {
    flex-shrink: 0;
    font-size: 0.95rem;
    margin-top: 2px;
    width: 18px;
    text-align: center;
}

.reminder-icon-info {
    color: var(--primary-color);
}

.reminder-icon-warning {
    color: #d97706;
}

.reminder-icon-safe {
    color: var(--primary-color);
}

.reminder-item span {
    flex: 1;
}

/* --- Clinic Info Mobile Responsive --- */
@media (max-width: 768px) {
    .clinic-info-row {
        grid-template-columns: 1fr;
        gap: 12px; /* Reduced from 16px */
    }

    .schedule-card,
    .contact-card {
        padding: 16px 16px; /* Match desktop */
        border-radius: 12px;
    }

    .card-header {
        margin-bottom: 12px; /* Reduced from 14px */
        padding-bottom: 8px; /* Reduced from 10px */
    }

    .card-header h4 {
        font-size: 1rem; /* Reduced from 1.05rem */
    }

    .ci-schedule-table th,
    .ci-schedule-table td {
        padding: 8px 4px; /* Reduced from 10px 6px */
        font-size: 0.8rem; /* Reduced from 0.82rem */
    }

    .ci-schedule-table th {
        font-size: 0.78rem;
    }

    .ci-time-cell {
        gap: 0px;
    }

    .ci-period {
        font-size: 0.8rem;
    }

    .ci-hours {
        font-size: 0.78rem; /* Increased from 0.68rem */
    }

    .ci-status-open {
        font-size: 0.68rem;
        padding: 2px 5px;
    }

    .ci-status-closed {
        font-size: 0.68rem;
    }

    .ci-label-special,
    .ci-label-note {
        font-size: 0.62rem;
        padding: 2px 5px;
    }

    .ci-contact-row {
        margin-bottom: 12px;
        gap: 10px; /* Tighter horizontal gap */
    }

    .ci-contact-icon {
        width: 28px; /* Reduced from 32px */
        height: 28px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .ci-contact-body {
        min-height: 28px;
    }

    .ci-contact-body strong {
        font-size: 0.9rem;
    }

    .ci-contact-body a {
        font-size: 0.85rem;
    }

    .ci-booking-btn {
        padding: 10px 16px; /* Reduced padding */
        font-size: 0.9rem;
        margin-top: auto;
    }

    .ci-reminders {
        margin-top: 16px;
        padding-top: 12px;
    }

    .ci-reminders-title h5 {
        font-size: 0.95rem;
    }

    .reminders-list {
        gap: 6px; /* Very tight on mobile */
    }

    .reminder-item {
        padding: 8px 10px;
        font-size: 0.82rem;
        gap: 8px;
    }

    .reminder-icon {
        font-size: 0.85rem;
        width: 16px;
    }
}

@media (max-width: 400px) {
    .ci-schedule-table th,
    .ci-schedule-table td {
        padding: 6px 2px;
        font-size: 0.72rem;
    }

    .ci-period {
        font-size: 0.72rem;
    }

    .ci-hours {
        font-size: 0.65rem;
    }

    .ci-status-open {
        font-size: 0.62rem;
        padding: 1px 4px;
    }

    .ci-status-closed {
        font-size: 0.62rem;
    }

    .ci-label-special,
    .ci-label-note {
        font-size: 0.58rem;
        padding: 1px 4px;
    }
}


/* ===== FAQ & Extension Reading Section ===== */
.faq-reading-section {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-reading-layout {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 40px;
    align-items: stretch;
}

/* FAQ Column (Left) */
.faq-column {
    width: 100%;
}

.faq-list {
    width: 100%;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-light);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: #cbd5e0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: left;
    font-family: var(--font-main);
    gap: 12px;
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Extension Reading Column (Right) */
.reading-column {
    width: 100%;
}

.reading-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reading-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.reading-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.reading-card h4 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 0;
}

.reading-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.reading-links {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.reading-links li {
    margin-bottom: 8px;
}

.reading-links li:last-child {
    margin-bottom: 0;
}

.reading-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    transition: var(--transition);
}

.reading-links a:hover {
    color: var(--primary-color);
    background: #edf2f7;
    transform: translateX(5px);
}

.reading-links a i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.reading-btn {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    margin-top: auto;
}

/* ===== Featured Articles Section ===== */
.featured-articles {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.article-card h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.article-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.article-link {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-card:hover .article-link {
    color: var(--primary-color);
}

.articles-more {
    text-align: center;
    margin-top: 28px;
}

/* ===== FAQ + Google Review Section ===== */
.faq-section {
    padding: 80px 0;
    background-color: var(--white);
}

/* 雙欄容器：左 FAQ (6fr)，右評論卡片 (4fr) */
.faq-review-layout {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 48px;
    align-items: start;
}

.faq-col .faq-list {
    width: 100%;
}

/* 左對齊的 section-title（覆蓋預設置中） */
.section-title-left {
    text-align: left !important;
}

.section-title-left::after {
    margin-left: 0 !important;
}

/* Google 評論信任卡片 */
.review-trust-card {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.review-card-icon {
    font-size: 2rem;
    color: #4285f4; /* Google blue */
}

.review-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.review-card-body {
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.review-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-btn-primary,
.review-btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.review-card-footnote {
    font-size: 0.85rem;
    color: #a0aec0;
    margin: 0;
    text-align: center;
}

/* ===== News Tags (replacing inline styles) ===== */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.news-tag {
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.88em;
    font-weight: 600;
}

.news-tag-red {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.news-tag-orange {
    background: #fff0e6;
    color: #c05621;
    border: 1px solid #fbd38d;
}

.news-extra-content {
    display: none;
    flex-direction: column;
    gap: 0;
}

.news-extra-content .news-tags {
    margin-top: 6px;
}

.news-note {
    margin-top: 8px;
    color: #718096;
    font-size: 0.85em;
}

.news-toggle-btn {
    margin-top: 10px;
    background: none;
    border: none;
    color: #3182ce;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.news-highlight {
    color: #e53e3e;
    font-weight: bold;
}

/* ===== Footer Cleanup ===== */
.footer-logo {
    margin-bottom: 20px;
    display: inline-flex;
}

.footer-clinic-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.footer-desc {
    color: #a0aec0;
    margin-bottom: 20px;
}

.footer-icon {
    width: 20px;
    margin-right: 6px;
}

/* --- Mobile Spacing UI/UX Optimization --- */
@media (max-width: 768px) {

    /* Limit horizontal padding */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* 1. Shrink section padding for mobile */
    section {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    /* 4. Hero sections compression and header offset */
    .hero,
    .blog-hero,
    .booking-section {
        padding-top: calc(var(--header-height) + 40px) !important;
        padding-bottom: 40px !important;
        min-height: auto !important;
    }

    .hero-text {
        padding: 24px;
        border-radius: 16px;
    }

    .hero-text h1 {
        font-size: 0.9rem;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .hero-image img {
        max-width: 320px;
        border-width: 3px;
    }

    .hero-cta-group {
        justify-content: center;
    }

    /* Override specifically padded sections */
    .latest-news,
    .services,
    .schedule,
    .certificates,
    .medical-team,
    .digital-business-cards,
    .doctor-intro-banner,
    .doctor-authority,
    .symptom-entry,
    .exam-entry,
    .clinic-info-section,
    .faq-reading-section,
    .featured-articles,
    .faq-section {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
        min-height: auto !important;
    }

    /* 2. Shrink card spacing */
    .card,
    .choice-card,
    .service-card,
    .blog-card,
    .certificate-item,
    .biz-card-item {
        margin-bottom: 16px !important;
    }

    /* 3. Shrink section titles margin */
    .section-title {
        margin-bottom: 12px !important;
    }

    .section-title h1,
    .section-title h3 {
        margin-bottom: 12px !important;
    }

    /* 5. Service button grid density */
    .services-detail-grid {
        gap: 10px !important;
    }

    .service-item {
        padding: 10px 12px !important;
    }

    /* 6. News Card compression */
    .news-item {
        padding: 14px !important;
    }

    .news-date {
        margin-bottom: 6px !important;
        width: auto !important;
        min-width: unset !important;
    }

    /* 7. Schedule Section compression */
    .schedule,
    .clinic-info-section .schedule-card {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .schedule-info-box {
        margin-top: 10px !important;
        padding: 16px !important;
    }

    /* 8. CTA Section */
    .cta {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    /* Compress grid gaps */
    .news-grid,
    .blog-grid,
    .featured-grid,
    .certificates-grid,
    .biz-card-grid {
        gap: 12px !important;
    }

    /* Blog featured: single column on mobile */
    .featured-grid {
        grid-template-columns: 1fr;
    }

    /* Category filter: horizontal scroll on mobile */
    .category-filter {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none; /* Firefox */
    }

    .category-filter::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .category-btn {
        flex-shrink: 0;
        font-size: 0.9rem;
        padding: 6px 18px;
    }

    /* === New Sections Mobile === */


    /* Doctor authority */
    .doctor-authority-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px;
    }

    .doctor-authority-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .doctor-authority-info h4 {
        font-size: 1.5rem;
        text-align: center;
    }

    .doctor-authority-info .doctor-title,
    .doctor-authority-info .doctor-background {
        text-align: center;
    }

    .doctor-expertise {
        justify-content: center;
    }

    .doctor-authority-info .btn {
        display: block;
        text-align: center;
    }

    /* Services categories */
    .services-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-category-card {
        padding: 24px 20px;
    }

    .service-category-card h4 {
        font-size: 1.2rem;
    }

    /* Symptom grid */
    .symptom-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .symptom-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    /* Exam grid */
    .exam-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .exam-card {
        padding: 24px 20px;
    }


    /* FAQ & Extension Reading Stacked Layout */
    .faq-reading-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* FAQ */
    .faq-question {
        padding: 14px 18px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 18px 16px;
        font-size: 0.95rem;
    }

    /* Extension Reading Card */
    .reading-card {
        padding: 24px 20px;
    }

    .reading-icon {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .reading-card p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* FAQ + Review two-column → single column on mobile */
    .faq-review-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-title-left {
        text-align: center !important;
    }

    .section-title-left::after {
        margin-left: auto !important;
    }

    .review-trust-card {
        position: static;
        padding: 24px 20px;
    }

    /* Featured Articles Mobile */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .article-card {
        padding: 20px;
    }

    .article-card h4 {
        font-size: 1rem;
    }

    /* Header Branding Mobile Refinements */
    .logo {
        gap: 0.75rem;
    }

    .logo img {
        height: 42px;
    }

    .logo-text h1,
    .logo-clinic-name {
        font-size: 1.25rem;
    }

    .logo-text span {
        font-size: 0.75rem;
        margin-top: 0;
    }

    .reading-links {
        margin-bottom: 20px;
    }
}
