:root {
    --primary-color: #382c92;
    --secondary-color: #AEB0FB;
    --accent-color-1: #D0224C;
    --accent-color-2: #F37427;
    --text-color: #333;
    --light-bg: #f4f4f4;
}

body {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-logo {
    max-width: 80px; /* ปรับขนาดโลโก้ตามต้องการ */
    height: auto;
    background-color: #fff; /* เพิ่มพื้นหลังสีขาว */
    padding: 5px; /* เพิ่ม padding เล็กน้อย */
    border-radius: 5px; /* ทำให้มุมดูโค้งมน */
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--secondary-color);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background-color: var(--accent-color-1);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--accent-color-2);
}

.lang-btn.active {
    background-color: var(--secondary-color);
}

.section {
    padding: 2rem 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.banner-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.schedule-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact {
    background-color: #fff;
}

.contact-info {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.description-box {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0 auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.description-box p {
    white-space: pre-line; /* ใช้ pre-line เพื่อให้มีการขึ้นบรรทัดใหม่จาก \n แต่ไม่เว้นบรรทัดมากเกินไป */
}

.description-title {
    text-align: center;
}

.hosted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.hosted-logo {
    max-width: 150px;
    height: auto;
}
.partners-logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.partner-logo-container {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.partner-logo {
    max-width: 80%; /* ย่อขนาดรูปภาพให้เล็กลง */
    max-height: 80%;
    object-fit: contain;
}

/* New CSS for video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: center;
    }

    .navbar {
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle, .contact-info p {
        font-size: 1rem;
    }

    .description-box, .contact-info {
        padding: 1.5rem;
    }

    .hosted-logos {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
}