/* Global Styles */



body {
    font-family: 'Mitr', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;

    
}


/* Header */
header {
    
    background: #004aad;
    color: #fff;
    padding: 1rem 0;
}

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

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #f0a500;
}

/* Hero Section */
.hero {
    background: url('hero-bg.jpg') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
}

/* Sections */
.container {
    max-width: 1100px;
    
    margin: auto;
    padding: 20px;
}

.service-list,
.team-list {
    display: flex;
    gap: 20px;
}

.service,
.team-member {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.team-member img {
    width: 50%;
    height: 50%;
    border-radius: 10%;
    margin-bottom: 50px;
}

/* Poster Section */
.poster {
    text-align: right;
    margin-top: 20px;
}

.foodterdiv{
    text-align: right;
    width: 30px;
    height: 30px;

}

.poster img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #90E0EF;
    color: #020101;
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
}




.rating {
    margin: 5px 0;
}

.star {
    color: #FFD700;
    font-size: 1rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

.review {
    display: flex;
    align-items: flex-start;
    margin: 0px 0;
    padding: 15px;
    background-color: #f0f7f4;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile {
    margin-right: 15px;
}

.profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.service img{
    width: 80%;
    height: 80%;
}

.review-content {
    flex: 1;
}


.poster i {
    color: #00b900; /* สีเขียวของ Line */
    font-size: 20px;
    margin-right: 10px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
}
.poster .fa-facebook {
    color: #3b5998; /* สีน้ำเงินของ Facebook */
}
.poster .fa-tiktok {
    color: #000; /* สีดำของ TikTok */
}
.poster .fa-phone-alt {
    color: #f39c12; /* สีโทรศัพท์ */
}
.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    background-color: #fcfcfc;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 5px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.team-member img {
    width: 100%;
    max-width: 150px; /* กำหนดขนาดสูงสุดของรูปภาพ */
    height: auto; /* รักษาสัดส่วนของรูปภาพ */
    border-radius: 10%; /* รูปภาพวงกลม */
    margin-bottom: 15px;
    object-fit: cover; /* ปรับภาพให้เต็มพื้นที่ */
}

.team-member h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.team-member h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 14px;
    color: #555;
}

.name {
    font-size: clamp(14px, 2vw, 20px); /* ปรับขนาดอัตโนมัติ */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.title {
    display: inline-block;
}
.lastname {
    display: block; /* ขึ้นบรรทัดใหม่ */
}

.Sold{
    font-size: medium;
    color: red;
}

.Nomal{
    
    font-size: medium;
    color: green;
}

h2 {
    font-family: 'Kanit', sans-serif;
    font-size: 2em;
    color: rgb(0, 0, 0);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.header-container {
    display: flex;
    
    
    justify-content: space-between;
    align-items: center;
    background-color: #90E0EF;
    padding:5px 15px;
    color: rgb(0, 0, 0);
    
}
.header-title {
    font-size: 24px;
    font-weight: bold;
    
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #90E0EF;
    padding: 15px 0;
}
.menu-button {
    background-color: white;
    color: #cbcbcb;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.menu-button:hover {
    background-color: #358ef4;
    color: white;
    
}
.menu-button:active {
    transform: scale(0.95);
}


.lit {
    width: 85%;
    max-width: 1050px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 25px;
}
.bodermain {
    display: flex;
    
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
}
.bodermain img {
    
    width: 260px;
    height: 180px;
    border-radius: 10%;
}
.bodermain h1 {
    font-size: 18px;
    color: #34495e;
}
.description {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}


.article {
    max-width: 450px;
    margin: auto;
}

.short-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    width: 60%;
}

.full-text {
    display: none;
    margin-top: 10px;
}

#toggleButton {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}

.backend{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    background-color: #fcfcfc;
    border-radius: 10px;
}

.backend img{
    width: 100%;
    max-width: 1520px;
    height: auto;
    
}

.team{
    display: flex;
    flex-wrap: wrap;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 16px;
}
th {
    background: #007bff;
    color: white;
}
.category {
    background: #f8f9fa;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    color: #007bff;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
tr:hover {
    background-color: #dfe7f1;
    transition: 0.3s;
}


.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    padding: 25px;
    position: relative;
}

.doctor-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}
.doctor-card {
    width: 200px;
    cursor: pointer;
}
.doctor-card img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}
.doctor-card h3 {
    font-size: 16px;
    margin-top: 10px;
}

/* Modal Styling */
/* ตั้งค่า Modal ให้แสดงตรงกลาง */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}


/* กำหนดขนาดของ Popup */
.modal-content {
    width: 60%; /* ปรับความกว้างตามต้องการ */
    max-width: 600px; /* จำกัดความกว้างสูงสุด */
    height: auto; /* กำหนดความสูงเป็น 80% ของหน้าจอ */
    max-height: 80vh; /* กำหนดความสูงสูงสุด */
    overflow-y: auto; /* เปิด Scroll หากเนื้อหาเกินขนาด */
    position: relative;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ปรับการแสดงผลของ Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ปรับตำแหน่งปุ่มปิด */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
}

.close:hover {
    color: red;
}





/* ทำให้ข้อมูลภายใน เช่น การศึกษา สามารถเลื่อนแยกกันได้ */
#doctor-education {
    max-height: 300px; /* กำหนดความสูงสูงสุดให้กล่องการศึกษา */
    overflow-y: auto; /* เพิ่ม Scroll แยกสำหรับข้อมูลการศึกษา */
    padding-right: 10px;
}

#doctor-education::-webkit-scrollbar {
    width: 15px;
}

#doctor-education::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 4px;
}






/*โปรแชร์*/
.image-grid {
    display: flex;
    text-align: center;
    gap: 20px;
    justify-content: center;
}
.image-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 30%;
}
.image-card img {
    width: 100%;
    border-radius: 10px;
}

/*ตารางเวลา1เดือน*/
.Bod {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.conx {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap;
}

.text-section {
    max-width: 400px;
    flex: 1;
}
.image-section img {
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}
@media (max-width: 768px) {
    .conx {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
}


/*สไลด์โชว์หน้า index*/
.zzeom {
    font-family: sans-serif;
    text-align: center;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}
.zombom {
    width: 80%;
    margin: auto;
    padding: 20px;
    position: relative;
}
.slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
}
.image-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.image-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 30%;
    flex-shrink: 0;
    margin-right: 30px;
}
.image-card img {
    height: 360px;
    width: 100%;
    border-radius: 10px;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}
.prev { left: 0; }
.next { right: 0; }


.day {
    font-size: 18px;
}
.highlight {
    color: green;
    font-weight: bold;
}

