* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Kanit", sans-serif;
}
.kkbs-color{
width: 100%;
height: 5px;
position: fixed;
z-index: 5000;
display: block;
}

body {
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f7fa;
    color: #333;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.menu-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.menu-left,
.menu-right {
    display: flex;
    gap: 20px;
    white-space: nowrap;
}

.menu-left a,
.menu-right a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.logo {
    margin: 0 30px;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Main */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0; /* ลบ padding ออกเพื่อให้ main เต็มความกว้าง */
    background: linear-gradient(135deg, #e0ecff, #ffffff);
}

.content {
    display: flex;
    width: 100%; /* ทำให้ content เต็มความกว้าง */
    align-items: stretch; /* ทำให้ .left และ .right สูงเท่ากัน */
    justify-content: center;
    flex-wrap: wrap; /* ให้ห่อเมื่อหน้าจอเล็ก */
    min-height: 80vh; /* กำหนดความสูงขั้นต่ำของส่วน content */
}

.left {
    flex: 1;
    flex-basis: 60%;
    max-width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.right {
    flex: 1;
    flex-basis: 40%;
    max-width: 40%;
    padding: 40px;
    display: flex;
    flex-direction: column; /* เปลี่ยนเป็น column เพื่อให้แต่ละส่วนเรียงลงมา */
    justify-content: center;
    align-items: flex-start;
    gap: 20px; /* เพิ่มระยะห่างระหว่างส่วนย่อยใน .right */
}

/* สไตล์สำหรับเนื้อหาใหม่ใน .right */
.right-content-wrapper {
    display: flex; /* ทำให้รูปกับข้อความอยู่บรรทัดเดียวกัน */
    align-items: center; /* จัดแนวตั้งให้อยู่กึ่งกลาง */
    gap: 20px; /* ระยะห่างระหว่างรูปกับข้อความ */
    width: 100%; /* ให้ wrapper ใช้ความกว้างเต็มของ .right */
}

.col-aacsb {
    flex-shrink: 0; /* ป้องกันไม่ให้รูปหดตัว */
    width: 250px; /* กำหนดความกว้างของรูป */
}

.img-aacsb {
    width: 100%;
    height: auto;
    display: block;
}

.col-text {
    flex-grow: 1; /* ให้ข้อความขยายเต็มพื้นที่ที่เหลือ */
}


.slider {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* เปลี่ยนกลับเป็น cover เพื่อให้รูปภาพเต็มพื้นที่ .slide */
    object-position: center;
    border-radius: 16px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bbb;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #485E87;
}

.right h1 {
    font-size: 2.2rem; /* ปรับขนาดตัวอักษรเล็กน้อยเพื่อให้เข้ากับพื้นที่ */
    margin-bottom: 5px; /* ลด margin-bottom */
    color: #485E87;
}

.right p {
    font-size: 1.1rem; /* ปรับขนาดตัวอักษรเล็กน้อย */
    line-height: 1.6;
    margin-bottom: 0; /* ลบ margin-bottom ออกเพราะจะใช้ gap ใน .right */
}

.sso-btn {
    background-color: #485E87;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px; /* เพิ่ม margin-top เพื่อขึ้นบรรทัดใหม่ */
}

.sso-btn:hover {
    background-color: #485E87;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    header {
    flex-direction: column;
    }

    .menu-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    }

    .logo {
    margin: 15px 0;
    }

    .content {
    flex-direction: column;
    min-height: auto;
    }

    .left, .right {
    max-width: 100%;
    flex-basis: 100%;
    padding: 20px;
    }

    .right {
    align-items: center;
    text-align: center;
    }

    .right-content-wrapper {
    flex-direction: column; /* ในมือถือให้เรียงรูปและข้อความลงมา */
    text-align: center;
    gap: 10px;
    }

    .col-aacsb {
    width: 80px; /* ปรับขนาดรูปในมือถือ */
    }

    .slider {
    padding-bottom: 65%;
    }

    .right h1 {
    font-size: 2rem;
    }

    .right p {
    font-size: 1rem;
    }

    .sso-btn {
    margin-top: 15px; /* ปรับ margin-top ในมือถือ */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .left, .right {
    flex-basis: 50%;
    max-width: 50%;
    }

    .right h1 {
    font-size: 2rem;
    }

    .right p {
    font-size: 1rem;
    }

    .sso-btn {
    font-size: 1rem;
    padding: 12px 24px;
    }
}