body {
    width: 100%; /* กำหนดให้เต็มความกว้างของหน้าจอ */
    max-width: 1400px; /* ความกว้างสูงสุดที่ต้องการ */
    margin: 0 auto; /* จัดกึ่งกลางเนื้อหา */
    padding: 10px; /* ระยะห่างภายในจากขอบของ body */
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

header {
    max-width: 100%;
    background-color: #fff;
    color: #000;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
nav {
    display: flex;
    justify-content: left;
    background-color: #f8f8f8;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
nav a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
}
nav a:hover {
    background-color: #ddd;
    color: #000;
}
.container {
    display: flex;
    padding: 20px;
    margin-top: 0px;
    background-color: #fff;

}
.main-content {
    flex: 3;
    margin-right: 20px;
}
.sidebar {
    flex: 1;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
}
.banner {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.banner img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.section {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.sidebar h3 {
    margin-top: 0;
}
.sidebar ul {
    list-style-type: none;
    padding: 0;
}
.sidebar ul li {
    margin-bottom: 10px;
}
.sidebar ul li a {
    text-decoration: none;
    color: #333;
}
.sidebar ul li a:hover {
    color: #007bff;
}
.image {
    display: block;
    margin: 0 auto; /* ทำให้ภาพอยู่กึ่งกลาง */
    border-radius: 10px; /* เพิ่มมุมโค้งให้ภาพ */
}
.max-width-40 {
    max-width: 40%; /* จำกัดความกว้างสูงสุดของภาพที่ 40% ของพื้นที่พ่อแม่ */
}
.max-width-100 {
    max-width: 100%; /* จำกัดความกว้างสูงสุดของภาพที่ 100% ของพื้นที่พ่อแม่ */
}
.card-img-top {
    width: 100%; /* กำหนดให้ภาพมีความกว้างเต็มการ์ด */
    height: 200px; /* กำหนดความสูงของภาพ */
    object-fit: cover; /* ทำให้ภาพถูกตัดให้พอดีกับขนาด */
}
.tab-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-buttons {
    display: flex;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    justify-content: space-evenly; /* กระจายแท็บให้เต็มพื้นที่ */
}

.tab-buttons button {
    flex: 1; /* แต่ละแท็บจะมีขนาดเท่ากัน */
    padding: 15px;
    cursor: pointer;
    background-color: inherit;
    border: none;
    outline: none;
    font-size: 16px;
    text-align: center; /* จัดข้อความให้อยู่กลาง */
}
.tab-buttons button:hover {
    background-color: #ddd;
}
.tab-buttons button.active {
    background-color: #007bff;
    color: white;
}
.tab-content {
    display: none;
    padding: 20px;
    
}
.tab-content.active {
    display: block;
}
.highlight-text {
    font-weight: bold;
}

.custom-text-info,
.custom-text-info p,
.custom-text-info a {
  color: #17a2b8;
}

.custom-text-info a:hover {
  color: #007082;
}

.custom-text-primary,
.custom-text-primary p,
.custom-text-primary a {
  color: #007bff;
}

.custom-text-primary a:hover {
  color: #005cbf;
}

.custom-text-danger,
.custom-text-danger p,
.custom-text-danger a {
  color: #dc3545;
}

.custom-text-danger a:hover {
  color: #a71120;
}

iframe {
    width: 100%;
    height: 450px; /* Adjust the height according to your needs */
    border: none; /* Remove border */
}

.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
}

.slides {
    display: none;
}

img {
    vertical-align: middle;
    width: 100%;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #fcf8f8;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}