* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Noto Sans Thai', 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
  }
 
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3caeeb;
    padding: 10px 20px;
    color: white;
  }
  
  .header-title {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  .navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  .hero img {
    width: 100%;
    height: auto;
  }
  
  .contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
  }
  
  .contact-container img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
  }
  
  .contact-container div {
    flex: 1;
    padding: 10px;
  }
  
  .image-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .image-card {
    margin: 10px;
    flex-shrink: 0;
  }
  
  .image-card img {
    width: 300px;
    height: auto;
    border-radius: 8px;
  }
  
  .zzeom {
    position: relative;
    overflow: hidden;
    padding: 20px;
  }
  
  .slider {
    overflow: hidden;
  }
  
  .prev, .next {
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
    padding: 10px;
  }
  
  .prev { left: 0; }
  .next { right: 0; }
  
  /* 🔄 เลื่อนภาพอัตโนมัติอย่างต่อเนื่อง จากซ้ายไปขวา */
  .slider-wrapper {
    overflow: hidden;
    width: 100%;
    background: #f0f0f0;
    margin: 40px 0;
  }
  
  .slider-wrapper .slider {
    display: flex;
    animation: scroll-left 30s linear infinite;
  }
  
  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  .card {
    flex: 0 0 auto;
    width: 300px;
    margin: 10px;
    text-align: center;
  }
  
  .card img {
    width: 100%;
    border-radius: 10px;
  }
  
  .card-caption {
    margin-top: 5px;
    font-size: 0.9rem;
  }
  
  /* เวลาทำการ */
  .text-section {
    padding: 20px;
    background: #e0f7fa;
    border-radius: 10px;
    margin: 20px;
  }
  
  .highlight {
    background-color: #ffe082;
    padding: 5px;
    border-radius: 5px;
  }
  
  /* วิดีโอ */
  .Videomean {
    padding: 20px;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .carousel {
    display: flex;
    gap: 20px;
  }
  
  .video-wrapper {
    flex: 0 0 auto;
    width: 300px;
  }
  
  .video-wrapper video {
    width: 100%;
    border-radius: 10px;
  }
  
  .caption {
    text-align: center;
    margin-top: 5px;
  }
  
  /* ติดต่อเรา */
  .poster a {
    display: block;
    margin: 5px 0;
    color: #0077b6;
    text-decoration: none;
  }
  
  .poster a:hover {
    text-decoration: underline;
  }
  
  /* ฟุตเตอร์ */
  footer {
    text-align: center;
    background-color: #3caeeb;
    color: white;
    padding: 10px;
    margin-top: 40px;
  }

  .doctor-profile {
    padding: 40px 20px;
    background-color: #f9f9f9;
  }
  
  .doctor-profile h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
  }
  
  .doctor-card {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1200px;
    margin: auto;
  }
  
  .doctor-img {
    flex: 1;
    min-width: 280px;
    background-color: #eef2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
  }
  
  .doctor-img img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  
  .doctor-info {
    flex: 2;
    padding: 30px 40px;
  }
  
  .doctor-info h3 {
    font-size: 1.8rem;
    color: #0077b6;
    margin-bottom: 10px;
  }
  
  .subheading {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
  }
  
  .doctor-info ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
  }
  h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #444;
    margin-bottom: 30px;
  }

  .slider-wrapper {
    overflow: hidden;
    position: relative;
  }

  .slider {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    gap: 20px;
    padding: 10px;
  }

  .card {
    flex: 0 0 auto;
    width: 280px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
  }

  .card:hover {
    transform: scale(1.05);
  }

  .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .card-caption {
    padding: 15px;
    font-size: 1.05rem;
    text-align: center;
    color: #666;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* Responsive */
  @media (max-width: 600px) {
    .card {
      width: 240px;
    }

    h2 {
      font-size: 1.8rem;
    }

    .card-caption {
      font-size: 1rem;
    }
  }

  #contact {
    padding: 60px 20px;
    background-color: #f3f4f6;
    font-family: 'Sarabun', sans-serif;
    text-align: center;
  }
  
  #contact h2 {
    font-size: 2.2rem;
    color: #1f2937;
    margin-bottom: 30px;
    font-weight: bold;
  }
  
  .contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .contact-container img {
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .contact-container div {
    max-width: 500px;
    text-align: left;
  }
  
  .contact-container p {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #374151;
  }
  
  .contact-container a {
    text-decoration: none;
    color: #1d4ed8;
    transition: color 0.3s ease;
  }
  
  .contact-container a:hover {
    color: #2563eb;
    text-decoration: underline;
  }
  
  .contact-container i {
    margin-right: 8px;
    color: #10b981;
  }
  
  @media (max-width: 768px) {
    .contact-container {
      flex-direction: column;
      text-align: center;
    }
  
    .contact-container div {
      text-align: center;
    }
  }
  #about {
    padding: 60px 20px;
    background-color: #ffffff;
    font-family: 'Sarabun', sans-serif;
    color: #1f2937;
    text-align: center;
  }
  
  #about .container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9fafb;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
  
  #about h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #0f172a;
    font-weight: bold;
  }
  
  #about .day {
    font-size: 1.1rem;
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 10px;
    background-color: #e0f2fe;
    color: #0c4a6e;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
  }
  
  #about .day:hover {
    background-color: #bae6fd;
  }
  
  @media (max-width: 600px) {
    #about .day {
      font-size: 1rem;
      padding: 10px 15px;
    }
  
    #about h2 {
      font-size: 1.5rem;
    }
  }
  #services {
    padding: 60px 20px;
    background-color: #f9fafb;
    font-family: 'Sarabun', sans-serif;
    text-align: center;
  }
  
  #services h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1f2937;
    font-weight: bold;
  }
  
  .zzeom {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .zombom {
    position: relative;
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
  }
  
  .slider {
    overflow: hidden;
    width: 100%;
  }
  
  .image-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .image-card {
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px;
  }
  
  .image-card img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .image-card img:hover {
    transform: scale(1.02);
  }
  
  button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.3s ease;
  }
  
  button.prev:hover,
  button.next:hover {
    background-color: rgba(0, 0, 0, 0.6);
  }
  
  button.prev {
    left: 10px;
  }
  
  button.next {
    right: 10px;
  }
  
  @media (max-width: 768px) {
    .image-card {
      min-width: 100%;
    }
  
    button.prev,
    button.next {
      font-size: 1.5rem;
      padding: 6px 12px;
    }
  }
  
  @media (max-width: 480px) {
    #services h2 {
      font-size: 1.5rem;
    }
  
    button.prev,
    button.next {
      font-size: 1.2rem;
      padding: 4px 8px;
    }
  }
  