:root {
    --primary-color: #0d9488; /* สีเขียวมิ้นสดใส */
    --primary-dark: #0f766e;
    --accent-color: #f97316; /* สีส้มสด */
    --bg-light: #f0fdfa;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========== NAVBAR ========== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.logo img {
    height: 50px; /* ใส่ Logo จริงตรงนี้ */
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 600;
}

.nav-links a:hover { color: var(--primary-color); }

.btn-appointment {
    background: var(--accent-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-appointment:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, #ccfbf1 0%, #fff 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ========== QUICK SERVICES (จุดเด่น) ========== */
.quick-services {
    background: var(--white);
    max-width: 1200px;
    margin: -3rem auto 0; /* ทับขึ้นไปเล็กน้อย */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-box {
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid #eee;
}

.service-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-box p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ========== CONTENT SECTION ========== */
.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr; /* อัตราส่วน 2:1 */
    gap: 2rem;
}

.main-content h2, .sidebar h2 {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-dark);
}

/* News Cards */
.news-grid {
    display: grid;
    gap: 1.5rem;
}

.news-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-card img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}

.news-info {
    padding: 0.5rem;
}

.news-info h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.news-info span { font-size: 0.8rem; color: #888; }
.news-info p { font-size: 0.9rem; color: var(--text-gray); margin-top: 0.3rem; }

/* Sidebar */
.sidebar-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.doctor-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.doctor-schedule td {
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col p, .footer-col li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========== RESPONSIVE (มือถือ) ========== */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .nav-links { gap: 1rem; font-size: 0.9rem; }
    
    .hero h1 { font-size: 2rem; }
    
    .quick-services { margin-top: -2rem; grid-template-columns: 1fr 1fr; }
    
    .container { grid-template-columns: 1fr; }
    
    .news-card { flex-direction: column; }
    .news-card img { width: 100%; height: auto; }
}