body {
    font-family: "Kanit", sans-serif;
}

.knowledge_and_innovation_header {
    background-image: url("/images/background_header.png");
    display: flex;
    /* จัดกึ่งกลางในแนวนอน */
    background-size: cover;
    background-position: center;
    justify-content: center;
    min-height: 100%;
    padding-left: 30%;
    padding-right: 30%;
}

.knowledge_and_innovation_header h1 {
    color: #ffffff;
    font-size: 36px;
    padding-top: 60px;
    padding-bottom: 60px;
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
}

.description_course {
    display: flex;
    flex-direction: column;
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 80px;
    margin-bottom: 80px;
}

.description_course h1 {
    font-size: 28px;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.description_course p {
    font-size: 22px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.description_course h2 {
    font-size: 22px;
}

.container_detail_course {
    display: flex;
    width: 100%;
}

.image_detail_course,
.detail_course {
    flex: 1 1 100%;
}

.image_detail_course img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.detail_course {
    display: flex;
    flex-direction: column;
    margin-left: 50px;
    justify-content: center;
    gap: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.type_location {
    display: flex;
    flex-direction: row;
}

.type_location svg {
    margin-right: 20px;
}

.type_study {
    display: flex;
    flex-direction: row;
}

.time {
    display: flex;
    flex-direction: row;
}

.time svg {
    margin-right: 20px;
}

.container_objective_course {
    display: flex;
    background-color: #752f8b;
    position: relative; /* เพิ่ม relative เพื่อใช้ในการจัดตำแหน่ง */
}

.objective {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 30px 50px 5%; /* รวมการตั้งค่าการ padding ในบรรทัดเดียว */
    position: relative;
    z-index: 1; /* ทำให้แน่ใจว่าข้อความอยู่ด้านบน */
}

.objective h1 {
    font-size: 22px;
    color: #ffffff;
}

.objective p {
    font-size: 22px;
    color: #ffffff;
    list-style-type: decimal;
    padding-left: 30px;
}

.objective {
    flex: 6 1 0;
}

.image_objective {
    flex: 4 1 0;
}

.image_objective img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.container_course_content {
    display: flex;
    background-color: #614b3c;
    align-items: stretch; /* ทำให้คอลัมน์ทั้งหมดมีความสูงเท่ากัน */
}

.container_course_content img {
    object-fit: cover;
    object-position: center;
    width: 100%; /* ให้ภาพขยายเต็มความกว้างของคอลัมน์ */
    height: 100%; /* ให้ภาพขยายเต็มความสูงของคอลัมน์ */
}

.image_content {
    flex: 4 1 0;
}

.content {
    flex: 6 1 0;
}

.image_content_mobile {
    display: none;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 30px 50px 5%; /* รวมการตั้งค่าการ padding ในบรรทัดเดียว */
}

.content h1 {
    font-size: 22px;
    color: #ffffff;
}

.content p {
    list-style-type: disc;
    font-size: 22px;
    color: #ffffff;
    padding-left: 30px;
}

.participants {
    display: flex;
    background-color: #f28b20;
    width: 100%;
    justify-items: center; /* จัดเนื้อหากลางในแนวนอนภายในคอลัมน์ */
    align-items: center;
}

.description,
.container_button {
    flex: 1 1 100%;
}

.description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 10% 50px 80px;
}

.description h1 {
    font-size: 22px;
    color: #ffffff;
}

.description p {
    list-style-type: decimal;
    font-size: 22px;
    color: #ffffff;
    padding-left: 30px;
}

.container_button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button {
    background-color: #ffffff;
    justify-content: center;
    align-items: center;
    padding: 30px 70px 30px 70px;
    width: max-content;
    height: max-content;
    border-radius: 7px;
}

.button p {
    font-size: 22px;
    color: #f28b20;
}

@media (max-width: 1024px) {
    .description_course {
        margin-left: 8%;
        margin-right: 8%;
    }

    .container_objective_course {
        flex-direction: column;
        width: 100%;
    }
    .image_objective {
        padding: 20px;
    }

    .image_content_mobile {
        display: block;
        padding: 20px;
    }

    .image_content {
        display: none;
    }

    .container_course_content {
        flex-direction: column;
    }

    .participants {
        flex-direction: column;
    }

    .container_button {
        padding-top: 20px;
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .description_course h1 {
        font-size: 24px;
        margin-left: 5%;
        margin-right: 5%;
    }

    .description_course h2 {
        font-size: 18px;
    }

    .description_course p {
        font-size: 18px;
    }

    .container_detail_course {
        flex-direction: column;
    }

    .detail_course {
        margin-left: 0px;
        margin-right: 0px;
        align-items: center;
    }

    .objective h1 {
        font-size: 18px;
    }

    .objective p {
        font-size: 18px;
    }

    .content h1 {
        font-size: 18px;
        color: #ffffff;
    }

    .content p {
        list-style-type: disc;
        font-size: 18px;
        color: #ffffff;
        padding-left: 30px;
    }

    .description {
        padding: 50px 20px 50px 20px;
    }

    .description h1 {
        font-size: 18px;
    }

    .description p {
        font-size: 18px;
    }

    .button {
        padding: 30px 50px 30px 50px;
    }

    .button p {
        font-size: 18px;
    }

    .objective {
        padding: 50px 20px 50px 20px; /* รวมการตั้งค่าการ padding ในบรรทัดเดียว */
    }
}
