/* ============================================
   Barley Hair Transplant - Global Styles
   Modern, Professional, International Design
   ============================================ */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #1e293b;
    --accent-color: #10b981;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 40px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

.main-nav {
    padding: 16px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    height: 56px;
    width: auto;
    border-radius: 14px;
}

.logo-text {
    font-size: 0;
    color: transparent;
}

.logo-text::before {
    content: "Barley Hair Transplant Hospital";
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-text-mobile {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 6px;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 720px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(37, 99, 235, 0.25) 50%, rgba(16, 185, 129, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 58px;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.25);
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 36px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0.95;
    font-weight: 500;
}

.hero-btn {
    display: inline-block;
    padding: 20px 52px;
    background: white;
    color: var(--primary-color);
    border-radius: var(--radius-xl);
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
    background: var(--accent-color);
    color: white;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-size: 46px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-light);
    max-width: 720px;
    margin: 28px auto 0;
    line-height: 1.7;
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-content h3 {
    font-size: 34px;
    color: var(--secondary-color);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-content p {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 22px;
    line-height: 1.8;
}

.about-video {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-video video,
.about-video img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Services Cards
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 42px 36px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.service-card h4 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 16px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================
   Technology Section
   ============================================ */
.tech-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    margin-bottom: 72px;
}

.tech-content h3 {
    font-size: 34px;
    color: var(--secondary-color);
    margin-bottom: 24px;
    font-weight: 800;
}

.tech-content p {
    color: var(--text-light);
    margin-bottom: 22px;
    line-height: 1.8;
    font-size: 17px;
}

.tech-video {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.tech-video video,
.tech-video img {
    width: 100%;
    height: auto;
}

/* ============================================
   Comparison Cards
   ============================================ */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.comparison-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.comparison-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.comparison-card h4 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list .label {
    color: var(--text-light);
}

.comparison-list .value {
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   Before/After Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    aspect-ratio: 1;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 28px 24px 24px;
    color: white;
}

.gallery-overlay h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.92;
    font-weight: 500;
}

/* ============================================
   Doctor-Patient Photos
   ============================================ */
.doctor-patient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.doctor-patient-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1;
    transition: var(--transition);
}

.doctor-patient-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.doctor-patient-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.doctor-patient-item:hover img {
    transform: scale(1.12);
}

.doctor-patient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 20px;
    color: white;
}

.doctor-patient-overlay p {
    font-size: 15px;
    font-weight: 600;
}

/* ============================================
   Hospital Environment
   ============================================ */
.hospital-env-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.hospital-env-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 982/509;
    transition: var(--transition);
}

.hospital-env-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.hospital-env-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hospital-env-item:hover img {
    transform: scale(1.08);
}

.hospital-env-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
    padding: 18px;
    color: white;
}

.hospital-env-overlay p {
    font-size: 15px;
    font-weight: 600;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 24px;
    font-size: 120px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.testimonial-info h4 {
    font-size: 19px;
    color: var(--secondary-color);
    margin-bottom: 6px;
    font-weight: 700;
}

.testimonial-info p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

.testimonial-content {
    color: var(--text-color);
    line-height: 1.8;
    font-style: normal;
    position: relative;
    z-index: 1;
    font-size: 16px;
}

.stars {
    color: #fbbf24;
    margin-bottom: 18px;
    font-size: 20px;
    letter-spacing: 2px;
}

/* ============================================
   Clinic Locations
   ============================================ */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.location-item {
    background: var(--bg-white);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.location-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.location-item span {
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    border: 2px solid transparent;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.faq-question {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-color);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::before {
    content: 'Q:';
    color: var(--primary-color);
    font-weight: 800;
    font-size: 24px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-toggle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    font-weight: 300;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
    padding: 0 32px 32px 88px;
    display: none;
    font-size: 17px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.4;
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 700;
}

.contact-card img {
    width: 140px;
    height: 140px;
    margin: 12px auto 8px;
    border-radius: var(--radius-sm);
    display: block;
    box-shadow: var(--shadow-md);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 24px;
    color: white;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
    font-size: 15px;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .tech-showcase {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: 20px;
        transform: translateY(-100%);
        width: 50%;
        max-width: 280px;
        background: white;
        flex-direction: column;
        padding: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        gap: 0;
        border-radius: 16px;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 12px 16px;
        font-size: 15px;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .logo-text {
        font-size: 0;
        color: transparent;
    }
    
    .logo-text::before {
        content: "Barley Hair Transplant";
        font-size: 24px;
        font-weight: 800;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.5px;
    }
    
    .hero {
        height: 620px;
    }
    
    .hero-content h1 {
        font-size: 38px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section {
        padding: 72px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        display: none;
    }
    
    .footer {
        padding: 36px 0 36px;
    }
    
    .back-to-top {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 540px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-btn {
        padding: 16px 40px;
        font-size: 16px;
    }
    
    .section {
        padding: 56px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .service-card,
    .testimonial-card,
    .contact-card {
        padding: 32px 24px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s ease forwards;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Doctor Cards */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.doctor-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.doctor-card img {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md);
}

.doctor-card h4 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.doctor-card p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.doctor-card .doctor-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 600;
}

/* ============================================
   Timeline Section
   ============================================ */
.timeline {
    position: relative;
    padding: 40px 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-color);
    z-index: 10;
}

.timeline-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    max-width: 400px;
    margin-right: 40px;
    transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 40px;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.timeline-year {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.timeline-content h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   Locations Grid
   ============================================ */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.location-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.location-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.location-item span {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 16px;
}

/* ============================================
   Filter Tabs
   ============================================ */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-tab {
    padding: 14px 28px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ============================================
   Patent Cards
   ============================================ */
.patents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.patent-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.patent-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.patent-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
}

.patent-card h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.patent-number {
    color: var(--text-light);
    font-size: 14px;
    font-family: monospace;
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* ============================================
   Comparison Table
   ============================================ */
.comparison-table {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 48px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-weight: 700;
    padding: 24px;
    text-align: center;
}

.comparison-cell {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-cell:first-child {
    justify-content: flex-start;
    font-weight: 600;
    color: var(--secondary-color);
}

.comparison-check {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 800;
}

.comparison-cross {
    color: #ef4444;
    font-size: 24px;
    font-weight: 800;
}

.comparison-text {
    color: var(--text-color);
    font-weight: 600;
}

/* ============================================
   Service Categories
   ============================================ */
.service-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.service-category {
    padding: 16px 32px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.service-category:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.service-category.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* ============================================
   FAQ Categories
   ============================================ */
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.faq-category {
    padding: 12px 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.faq-category:hover {
    background: var(--primary-color);
    color: white;
}

.faq-category.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

/* ============================================
   Business Hours
   ============================================ */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.hours-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hours-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hours-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.hours-card h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.hours-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   Timeline Responsive
   ============================================ */
@media (max-width: 768px) {
    .timeline::before {
        left: 24px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 70px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-dot {
        left: 24px;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-header {
        display: none;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* ============================================
   Patent Section
   ============================================ */
.patent-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.patents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.patent-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.patent-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.patent-card-image {
    width: 100%;
    aspect-ratio: 750 / 1060;
    max-height: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.patent-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.patent-card-content {
    flex: 1;
}

.patent-number {
    font-family: monospace;
    font-size: 10px;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
}

.patent-card h4 {
    font-size: 12px;
    color: var(--secondary-color);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 3px;
}

@media (max-width: 1200px) {
    .patents-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .patents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .patent-card-image {
        max-height: 240px;
    }
}

@media (max-width: 600px) {
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .patent-intro {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .patents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .patent-card {
        padding: 10px;
    }
    
    .patent-card-image {
        max-height: 180px;
    }
    
    .patent-card h4 {
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .patents-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .patent-card-image {
        max-height: 240px;
    }
}

/* ============================================
   Timeline Section
   ============================================ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 48px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 48px;
    margin-left: 50%;
}

.timeline-year {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    top: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

@media (max-width: 900px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-left: 0 !important;
    }
    
    .timeline-item::after {
        left: 10px !important;
        right: auto !important;
    }
    
    .timeline-year {
        font-size: 28px;
    }
}
