/* ============================================
   荆彤肠胃科医生 - 网站样式
   Dr. Jing Tong Gastroenterology
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #1a5f7a;
    --primary-dark: #0d4a5f;
    --primary-light: #2d7d9a;
    --secondary-color: #57c5b6;
    --accent-color: #159895;
    --text-dark: #2c3e50;
    --text-light: #6c7a89;
    --text-white: #ffffff;
    --bg-light: #f8fafb;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #1a5f7a 0%, #159895 100%);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    background: var(--bg-gradient);
    color: var(--text-white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-top a {
    color: var(--text-white);
}

.header-top a:hover {
    opacity: 0.9;
}

.header-top .phone-numbers {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-top .phone-numbers a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
}

.logo a:hover {
    opacity: 0.85;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    padding: 10px 16px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--bg-gradient);
    color: var(--text-white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(to right, rgba(26, 115, 232, 0.85) 0%, rgba(26, 115, 232, 0.5) 45%, rgba(26, 115, 232, 0.1) 100%), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: right center;
    color: var(--text-white);
    padding: 0;
    height: 900px;
    max-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') repeat;
    background-size: 100px;
    opacity: 0.5;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0;
    padding: 120px 20px 60px calc((100vw - 1920px) / 2 + 300px);
}

@media (max-width: 1920px) {
    .hero .container {
        padding-left: 300px;
    }
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 52px;
    color: var(--text-white);
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-content .subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content .description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

.btn-accent {
    background: var(--bg-gradient);
    color: var(--text-white);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 80px 0;
}

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

.section-gray {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Features/Highlights Grid
   ============================================ */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.highlight-card {
    background: var(--bg-white);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

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

.highlight-card .icon {
    width: 70px;
    height: 70px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
}

.highlight-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.highlight-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================================
   Services Grid (6 columns)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.service-item {
    background: var(--bg-white);
    padding: 20px 15px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.service-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.1) 0%, rgba(21, 152, 149, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    color: var(--primary-color);
}

.service-item h4 {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ============================================
   Treatment Matrix (4 columns)
   ============================================ */
.treatment-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.treatment-column {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
}

.treatment-column h3 {
    font-size: 16px;
    color: var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.treatment-column ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.treatment-column ul li:last-child {
    border-bottom: none;
}

.treatment-column ul li:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* ============================================
   Articles Grid
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

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

.article-card .image {
    height: 200px;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.article-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.article-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.article-card h3:hover {
    color: var(--primary-color);
}

.article-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.article-card .read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-card .read-more:hover {
    gap: 10px;
}

/* ============================================
   Videos Grid (4 columns)
   ============================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.video-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

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

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.video-card:hover .play-btn {
    background: var(--primary-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

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

.video-card h4 {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question .icon {
    font-size: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

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

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.1) 0%, rgba(21, 152, 149, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item .text h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item .text p,
.contact-item .text a {
    color: var(--text-light);
    font-size: 15px;
}

.contact-item .text a:hover {
    color: var(--primary-color);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.hours-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.hours-table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-form-wrapper h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

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

.contact-form button {
    width: 100%;
    padding: 15px;
    background: var(--bg-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ============================================
   Map Section
   ============================================ */
.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

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

/* ============================================
   About Page Styles
   ============================================ */
.about-hero {
    background: var(--bg-gradient);
    color: var(--text-white);
    padding: 160px 0 80px;
    text-align: center;
}

.about-hero h1 {
    font-size: 42px;
    color: var(--text-white);
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.doctor-profile {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

.doctor-image {
    position: sticky;
    top: 120px;
}

.doctor-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.doctor-info h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.doctor-info .intro {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.8;
}

.credentials-list {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.credentials-list h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.credentials-list ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.credentials-list ul li:last-child {
    border-bottom: none;
}

.credentials-list ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.award-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-medium);
}

.award-badge .icon {
    font-size: 32px;
}

.why-choose {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.why-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-item .icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.why-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.why-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */
.page-header {
    background: var(--bg-gradient);
    color: var(--text-white);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 38px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ============================================
   Services Page - Premium Layout
   ============================================ */

/* Services Hero */
.services-hero {
    background: var(--bg-gradient);
    color: white;
    padding: 160px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.services-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

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

.services-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.services-hero h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.services-hero > .container > .services-hero-content > p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.services-hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

/* Category Quick Nav */
.services-cat-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.services-cat-nav .container {
    display: flex;
    justify-content: center;
    gap: 0;
}

.cat-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.cat-nav-item:hover,
.cat-nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(26,95,122,0.04);
}

.cat-nav-item i {
    font-size: 16px;
}

/* Section Header */
.svc-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.svc-section-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svc-section-icon i {
    font-size: 24px;
    color: white;
}

.svc-section-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin: 0;
    border: none;
    padding: 0;
}

.svc-section-header p {
    font-size: 15px;
    color: var(--text-light);
    margin: 4px 0 0;
}

/* Featured Cards (Endoscopy) */
.svc-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.svc-featured-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.svc-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.svc-featured-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(26,95,122,0.1), rgba(87,197,182,0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svc-featured-icon i {
    font-size: 22px;
    color: var(--primary-color);
}

.svc-featured-card:hover .svc-featured-icon {
    background: var(--bg-gradient);
}

.svc-featured-card:hover .svc-featured-icon i {
    color: #fff;
}

.svc-featured-body h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 0 0 8px;
    font-weight: 600;
}

.svc-featured-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 12px;
}

/* Service Card Grid */
.svc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.svc-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.svc-card:hover::before {
    transform: scaleX(1);
}

.svc-card-top {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(26,95,122,0.08), rgba(87,197,182,0.12));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.svc-card-top i {
    font-size: 20px;
    color: var(--primary-color);
}

.svc-card:hover .svc-card-top {
    background: var(--bg-gradient);
}

.svc-card:hover .svc-card-top i {
    color: #fff;
}

.svc-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.svc-card p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 14px;
}

/* Shared link style */
.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    transition: gap 0.3s;
}

.svc-card:hover .svc-link,
.svc-featured-card:hover .svc-link {
    gap: 10px;
    color: var(--accent-color);
}

/* Legacy - kept for backward compatibility */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-detail-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.service-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--accent-color);
}

a.service-detail-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-detail-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-detail-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about h3 {
    font-size: 22px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-hours h4,
.footer-contact h4 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-hours p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact p i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--secondary-color);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ============================================
   Call to Action Phone Button
   ============================================ */
.cta-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.cta-phone a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-gradient);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow-heavy);
    font-weight: 600;
    transition: var(--transition);
}

.cta-phone a:hover {
    transform: scale(1.05);
}

/* ============================================
   Video Modal
   ============================================ */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.video-modal iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--border-radius);
}

/* ============================================
   Service Detail Page
   ============================================ */
.service-page-content {
    flex: 1;
    min-width: 0;
    max-width: 900px;
    font-size: 17px;
    line-height: 1.9;
    color: #333;
}

.service-page-content h2 {
    color: var(--primary-color);
    margin: 50px 0 20px;
    font-size: 26px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--secondary-color);
}

.service-page-content h3 {
    color: #333;
    margin: 30px 0 15px;
    font-size: 20px;
}

.service-page-content p {
    margin-bottom: 18px;
}

.service-page-content ul,
.service-page-content ol {
    margin: 15px 0 20px 20px;
    list-style: disc;
}

.service-page-content ol {
    list-style: decimal;
}

.service-page-content li {
    padding: 6px 0;
    line-height: 1.8;
}

.service-intro-box {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.06) 0%, rgba(21, 152, 149, 0.06) 100%);
    border-left: 5px solid var(--primary-color);
    padding: 25px 30px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 30px 0;
    font-size: 17px;
}

.service-info-box {
    background: #e8f5e9;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    margin: 25px 0;
}

.service-info-box h3 {
    color: #2e7d32;
    margin: 0 0 15px;
}

.service-warning-box {
    background: #ffebee;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    margin: 25px 0;
}

.service-warning-box h3 {
    color: #c62828;
    margin: 0 0 15px;
}

.service-tip-box {
    background: #e3f2fd;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    margin: 25px 0;
}

.service-tip-box h3 {
    color: #1565c0;
    margin: 0 0 15px;
}

.service-highlight-box {
    background: #fff3e0;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    margin: 25px 0;
}

.service-highlight-box h3 {
    color: #e65100;
    margin: 0 0 15px;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.service-feature-item {
    background: var(--bg-light);
    padding: 22px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.service-feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
}

.service-feature-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.service-steps {
    counter-reset: step-counter;
    margin: 25px 0;
}

.service-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.service-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    width: 45px;
    height: 45px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.service-step-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.service-step-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
}

/* Service Navigation (Prev/Next) */
.service-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    gap: 15px;
}

.service-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    text-decoration: none;
}

.service-nav .nav-prev,
.service-nav .nav-next {
    background: var(--bg-light);
    color: var(--text-dark);
    max-width: 38%;
}

.service-nav .nav-prev:hover,
.service-nav .nav-next:hover {
    background: var(--bg-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.service-nav .nav-all {
    background: var(--bg-gradient);
    color: white;
    white-space: nowrap;
}

.service-nav .nav-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Related Services Grid */
.related-services {
    margin-top: 50px;
}

.related-services h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--primary-color);
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-service-card {
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.related-service-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
}

.related-service-card p {
    color: var(--text-light);
    font-size: 13px;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb-nav {
    background: #f5f5f5;
    padding: 15px 0;
    margin-top: 95px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb-nav a {
    color: var(--primary-color);
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .treatment-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Service Sidebar Navigation
   ============================================ */
.service-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.service-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-inner {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px 0;
}

.sidebar-inner::-webkit-scrollbar {
    width: 4px;
}

.sidebar-inner::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.sidebar-inner > h3 {
    font-size: 16px;
    color: var(--primary-color);
    padding: 0 18px 12px;
    margin: 0;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-category {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-category:last-child {
    border-bottom: none;
}

.sidebar-category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.sidebar-category-title:hover {
    background: #f8fafb;
}

.sidebar-category-title i {
    font-size: 11px;
    color: #aaa;
    transition: transform 0.3s;
}

.sidebar-category.open .sidebar-category-title i {
    transform: rotate(180deg);
}

.sidebar-category-links {
    display: none;
    padding: 0 0 6px;
}

.sidebar-category.open .sidebar-category-links {
    display: block;
}

.sidebar-category-links a {
    display: block;
    padding: 6px 18px 6px 28px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-category-links a:hover {
    color: var(--primary-color);
    background: #f0f8f8;
    border-left-color: var(--secondary-color);
}

.sidebar-category-links a.active {
    color: var(--primary-color);
    font-weight: 600;
    background: linear-gradient(90deg, rgba(87,197,182,0.12), transparent);
    border-left-color: var(--primary-color);
}

/* Mobile sidebar toggle button */
.sidebar-toggle-btn {
    display: none;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 12px 8px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    writing-mode: vertical-rl;
    letter-spacing: 2px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 992px) {
    .header-main .container {
        flex-wrap: wrap;
    }

    .services-hero h1 {
        font-size: 34px;
    }

    .services-hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .services-cat-nav .container {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .cat-nav-item {
        padding: 14px 16px;
        font-size: 13px;
    }

    .svc-featured-grid {
        grid-template-columns: 1fr;
    }

    .svc-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-layout {
        display: block;
    }

    .service-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1001;
        background: #fff;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }

    .service-sidebar.mobile-open {
        display: block;
    }

    .service-sidebar .sidebar-inner {
        position: static;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
        padding-top: 15px;
    }

    .sidebar-toggle-btn {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--bg-white);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: var(--shadow-medium);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 0;
    }

    .hero .container {
        padding: 140px 20px 40px 20px;
        text-align: left;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-image {
        display: none;
    }

    .page-header {
        padding: 180px 0 50px;
    }

    .about-hero {
        padding: 180px 0 60px;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctor-profile {
        grid-template-columns: 1fr;
    }

    .doctor-image {
        position: static;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 140px 0 50px;
    }

    .services-hero h1 {
        font-size: 28px;
    }

    .services-hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .svc-section-header {
        flex-direction: column;
        text-align: center;
    }

    .svc-card-grid {
        grid-template-columns: 1fr;
    }

    .svc-featured-card {
        flex-direction: column;
        text-align: center;
    }

    .svc-featured-icon {
        margin: 0 auto;
    }

    .svc-section-header h2 {
        font-size: 24px;
    }

    .service-features-grid {
        grid-template-columns: 1fr;
    }

    .service-nav {
        flex-direction: column;
    }

    .service-nav .nav-prev,
    .service-nav .nav-next {
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }

    .service-nav .nav-all {
        width: 100%;
        justify-content: center;
    }

    .related-services-grid {
        grid-template-columns: 1fr;
    }

    .service-page-content h2 {
        font-size: 22px;
    }

    .header-top .container {
        justify-content: center;
        text-align: center;
    }

    .hero {
        padding: 0;
        background-position: center center;
    }

    .hero .container {
        padding-top: 140px;
        padding-bottom: 40px;
    }

    .hero-content {
        max-width: 100%;
        padding: 30px;
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .subtitle {
        font-size: 16px;
    }

    .hero-content .description {
        font-size: 14px;
    }

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

    .page-header {
        padding: 200px 0 50px;
    }

    .about-hero {
        padding: 200px 0 60px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .treatment-matrix {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .why-choose {
        grid-template-columns: 1fr;
    }

    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .cta-phone a span {
        display: none;
    }

    .cta-phone a {
        padding: 15px;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content .subtitle {
        font-size: 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
