/* Global Styles and Variables */
:root {
    /* Color Scheme - Orange as primary, Blue as secondary */
    --primary-color: #e67e22; /* 更深的橙色 - 提高对比度 */
    --secondary-color: #38b0ce; /* Blue - Now secondary */
    --accent-color: #f1c40f; /* Yellow */
    --dark-orange: #d35400; /* Dark primary */
    --light-orange: #f5b041; /* Light primary */
    --dark-purple: #2e8ca3; /* Dark secondary - now blue */
    --light-purple: #5bc0de; /* Light secondary - now blue */
    --dark-yellow: #d4ac0d;
    --light-yellow: #f9e79f;
    
    --text-color: #333;
    --text-light: #555; /* 更深的灰色提高可读性 */
    --text-white: #fff;
    --text-dark-bg: #fff; /* 深色背景上的文字颜色 */
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
    min-width: 320px; /* Minimum width for very small screens */
    padding-top: 35px; /* Adjust based on the height of your top-nav */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Eliminate unwanted space under images */
}

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

a:hover {
    color: var(--dark-purple);
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Improved Responsive Breakpoints */
/* Extra small devices */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .section-title, 
    .section-subtitle {
        margin-bottom: 20px;
    }
}

/* Small devices */
@media (min-width: 576px) and (max-width: 767.98px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Medium devices */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        padding: 0 30px;
    }
}

/* Large devices */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        padding: 0 40px;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap; /* Prevent button text from wrapping */
}

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

.primary-btn:hover {
    background-color: var(--dark-orange);
    color: var(--text-white);
    transform: translateY(-2px);
}

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

.secondary-btn:hover {
    background-color: var(--dark-purple);
    color: var(--text-white);
    transform: translateY(-2px);
}

.text-btn {
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 0;
    position: relative;
}

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

.text-btn:hover::after {
    width: 100%;
}

/* Header Styles */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 35px; /* Position below the top navigation bar */
    z-index: 999;
    padding: 15px 0;
}

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

.logo h1 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.8rem;
}

.logo p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

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

.nav-links a:hover::after {
    width: 100%;
    opacity: 0.5;
}

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

.nav-links a.active::after {
    width: 100%;
    opacity: 1;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section Styles */
.hero {
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--dark-orange) 100%); /* 更深的渐变以提高文字对比度 */
    color: var(--text-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--bg-white);
}

.hero h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff; /* 确保副标题文字清晰可见 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* 添加文字阴影增强可读性 */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--bg-white);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

/* About Section Styles */
.about {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
}

.about-image {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2) 0%, rgba(142, 68, 173, 0.2) 100%);
    border: 10px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

/* Services Section Styles */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--dark-orange) 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-in-out;
}

.service-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 100%);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.service-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.learn-more {
    display: inline-block;
    margin-top: auto;
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    align-self: flex-start;
}

.learn-more::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.learn-more:hover::after {
    margin-left: 10px;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

.services .section-title,
.services .section-subtitle {
    color: var(--text-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Benefits Section Styles */
.benefits {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.benefits-text h2 {
    color: var(--primary-color);
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.benefits-image {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.image-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 15px solid rgba(142, 68, 173, 0.1);
    border-radius: var(--radius-lg);
}

/* Herbal Medicine Section Styles */
.herbal-medicine {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--dark-purple) 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.herbal-medicine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.herbal-medicine .container {
    position: relative;
    z-index: 2;
}

.herbal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.herbal-text h2 {
    color: var(--bg-white);
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.herbal-text p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.herbal-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.herbal-benefit {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

.herbal-benefit:hover {
    transform: translateY(-5px);
}

.herbal-benefit i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.herbal-benefit h4 {
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
}

.herbal-benefit p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.herbal-image {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Conditions Section Styles */
.conditions {
    padding: 80px 0;
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-in-out;
}

.condition-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    height: 100%;
}

.condition-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: var(--light-yellow);
}

.condition-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    background-color: rgba(243, 156, 18, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.condition-item span {
    font-weight: 500;
    flex-grow: 1;
}

.more-info {
    text-align: center;
    margin-top: 30px;
}

/* Doctors Section Styles */
.doctors {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--dark-orange) 100%);
    position: relative;
    overflow: hidden;
}

.doctors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.doctors .container {
    position: relative;
    z-index: 2;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    animation: fadeIn 1s ease-in-out;
}

.doctor-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.doctor-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.doctor-image img {
    width: 80%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-card h3 {
    padding: 15px 15px 5px;
    color: var(--primary-color);
    font-size: 1rem;
}

.doctor-title {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0 15px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.doctor-description {
    padding: 0 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-grow: 1;
}

.doctor-card .btn {
    margin: 10px 15px 15px;
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 6px 12px;
}

.doctors .section-title,
.doctors .section-subtitle {
    color: var(--text-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* CTA Section Styles */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--dark-orange) 100%); /* 更深的渐变 */
    color: var(--text-white);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--bg-white);
}

.cta p {
    margin-bottom: 30px;
}

/* FAQ Section Styles */
.faq {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

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

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

.faq-answer ul {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
}

.faq-answer ul li {
    margin-bottom: 5px;
}

/* Contact Section Styles */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--dark-purple) 100%); /* 更深的渐变 */
    color: var(--text-white);
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--bg-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: 40px;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    color: var(--text-color);
}

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

.contact-hours h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hours-grid .day {
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.contact-form {
    padding: 40px;
    color: var(--text-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Newsletter Styles */
.newsletter {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h3 {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

/* Footer Styles */
footer {
    background-color: var(--dark-orange); /* 更深的底色 */
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--bg-white);
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    color: #fff; /* 更明亮的标题颜色 */
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600; /* 加粗以增强可见性 */
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.9); /* 提高链接对比度 */
}

.footer-column ul li a:hover {
    color: var(--bg-white);
}

.contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contact-list i {
    margin-top: 5px;
    color: var(--accent-color);
}

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

.footer-bottom p {
    margin-bottom: 0;
}

/* Improved Responsive Styles */
@media (max-width: 1024px) {
    .about-content,
    .benefits-content,
    .herbal-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefits-image,
    .herbal-image {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero h2 {
        font-size: 2.4rem;
    }
    
    .hero h3 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    /* Improved mobile header */
    header {
        top: 68px; /* Adjust for taller top nav on mobile */
    }

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

    .logo {
        margin-bottom: 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        z-index: 999;
        align-items: center;
        gap: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--primary-color);
        position: absolute;
        right: 20px;
        top: 15px;
        z-index: 1010;
    }
    
    .mobile-menu.active i:before {
        content: "\f00d"; /* Changes to X icon when active */
    }
    
    header .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        position: relative;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .nav-links a::after {
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-links a.active::after {
        width: 50px;
    }

    /* Update hero section padding to account for top-nav */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }

    .hero h3 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .condition-item {
        padding: 15px;
    }
    
    .condition-item i {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
    
    .condition-item span {
        font-size: 0.9rem;
    }

    .benefits-list,
    .herbal-benefits {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hours-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .hours-grid .day {
        margin-top: 10px;
    }

    .hours-grid .day:first-child {
        margin-top: 0;
    }
    
    /* Better grid spacing */
    .about, .services, .benefits, 
    .herbal-medicine, .conditions, 
    .doctors, .faq, .contact {
        padding: 60px 0;
    }
    
    section:not(:first-child) {
        margin-top: -20px; /* Reduce excessive spacing between sections */
    }
    
    /* Improve navigation */
    .nav-links a {
        padding: 10px 0;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a::after {
        bottom: -5px;
    }
    
    .nav-links a.active::after {
        width: 50px;
        left: 50%;
        transform: translateX(-50%);
    }

    body {
        padding-top: 68px; /* Increase padding for mobile view where top-nav is taller */
    }
}

@media (max-width: 480px) {
    /* Extra small device improvements */
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero {
        padding: 50px 0;
    }

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

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

    .about, .services, .benefits, 
    .herbal-medicine, .conditions, 
    .doctors, .faq, .contact {
        padding: 50px 0;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
    }

    .contact-form,
    .contact-info {
        padding: 25px 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Better handling of testimonial cards and grid items */
    .testimonial-grid,
    .services-grid,
    .conditions-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .testimonial-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button {
        padding: 8px 15px;
        margin: 0 5px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Fix for image overflow */
.about-image img,
.benefits-image img,
.herbal-image img,
.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix for form elements */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-size: 16px; /* Prevent zoom on iOS */
}

/* Ensure all buttons are properly sized on mobile */
@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Additional Responsive Fixes */
/* Improve section spacing */
section {
    overflow: hidden;
}

/* Make sure all grid content fits properly */
.service-card, 
.doctor-card, 
.condition-item, 
.testimonial-card {
    width: 100%;
    height: auto;
}

/* Form improvements for mobile */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

input[type="date"],
input[type="time"] {
    appearance: none;
    min-height: 40px;
}

/* Ensure footer spacing is correct */
.footer-column {
    margin-bottom: 20px;
}

/* Animation Styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .doctor-card, .condition-item, 
.benefit-item, .herbal-benefit {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.animate, .doctor-card.animate, 
.condition-item.animate, .benefit-item.animate, 
.herbal-benefit.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Add delay to stagger animations */
.service-card:nth-child(1), .doctor-card:nth-child(1),
.condition-item:nth-child(1), .benefit-item:nth-child(1),
.herbal-benefit:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2), .doctor-card:nth-child(2),
.condition-item:nth-child(2), .benefit-item:nth-child(2),
.herbal-benefit:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3), .doctor-card:nth-child(3),
.condition-item:nth-child(3), .benefit-item:nth-child(3),
.herbal-benefit:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4), .doctor-card:nth-child(4),
.condition-item:nth-child(4), .benefit-item:nth-child(4),
.herbal-benefit:nth-child(4) {
    transition-delay: 0.4s;
}

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

/* Top Navigation Styles */
.top-nav {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    position: fixed; /* Changed from relative to fixed */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1001; /* Increased z-index to be above other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.top-nav-info {
    display: flex;
    gap: 20px;
}

.top-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    transition: var(--transition);
}

.top-nav-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.top-nav-item i {
    font-size: 1rem;
}

.top-nav-book {
    background-color: var(--secondary-color);
    color: white;
    padding: 6px 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.top-nav-book:hover {
    background-color: var(--dark-purple);
    color: white;
    transform: translateY(-2px);
}

/* Responsive styles for top-nav */
@media (max-width: 992px) {
    .top-nav-info {
        gap: 15px;
    }
    
    .top-nav-item span {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .top-nav .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-nav-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .top-nav {
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .top-nav-item .address-text {
        display: none;
    }
    
    .top-nav-info {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 1200px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
} 