.container1 {
    display: flex;
    align-items: center;
    gap: 20px;
    /* ระยะห่างระหว่างรูปและข้อความ */
    padding: 20px;
    width: 100%;
    margin-top: 150px;
    font-family: 'Lato', 'Noto Sans Thai Looped', sans-serif;
    /* รักษาสไตล์เดิมทั้งหมด */
    
    line-height: 1.4;
    color: #ff0000;
    text-align: center;
    margin: 20px 0;
    font-weight: 700;
}

.left-column,
.right-column {
    width: 50%;
    /* แบ่งพื้นที่ 50% เท่ากัน */

}

.left-column img {
    width: 100%;
    /* ปรับรูปให้เต็มพื้นที่ของฝั่งซ้าย */
    height: auto;
    border-radius: 10px;
    /* ทำให้ขอบโค้งมน */
    font-family: 'Lato', 'Noto Sans Thai Looped', sans-serif;
    /* รักษาสไตล์เดิมทั้งหมด */
    font-size: 2.2rem;
    line-height: 1.5;
    color: #ff0000;
    text-align: center;
    margin: 20px 0;
}

.right-column {
    text-align: left;
    padding: 20px;
    width: 100%;

}

.right-column h1 {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Lato', 'Noto Sans Thai Looped', sans-serif;
    /* รักษาสไตล์เดิมทั้งหมด */
    
    line-height: 1.5;
    color: #000000;

    margin: 20px 0;
}

.right-column p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.right-column button {
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;

}



.card {
    width: 80%;
    /* ลดความกว้างลงจาก 100% */
    max-width: 1200px;
    /* กำหนดขนาดสูงสุดให้ไม่ใหญ่เกินไป */
    margin: 20px auto;
    /* จัดให้อยู่กึ่งกลาง */
    padding: 15px;
    border-radius: 10px;
    background: linear-gradient(to right, #b8860b, #ffd700);
    /* สีทองไล่เฉด */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Lato', 'Noto Sans Thai Looped', sans-serif;
    
}

/* เอฟเฟกต์ Hover */
.card:hover {
    transform: translateY(-5px);
    /* ยกการ์ดขึ้นเล็กน้อย */
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
    /* เงาเพิ่มขึ้น */
}

.card img {
    width: 60px;
    /* ลดขนาดกว้างของรูปภาพ */
    height: 60px;
    /* ลดขนาดสูงของรูปภาพ */
    border-radius: 50%;
    transition: transform 0.3s ease;
    margin-right: 0px
}

.card-content {
    flex: 1;
    text-align: left;

}

.card-content h2 {
    font-size: 18px;
    /* ปรับขนาดหัวข้อให้เล็กลง */
    font-weight: bold;
    transition: color 0.3s ease;
    font-family: 'Lato', 'Noto Sans Thai Looped', sans-serif;
    /* รักษาสไตล์เดิมทั้งหมด */
    font-size: 2.0rem;
    line-height: 1.4;
    color: #000000;

    margin: 20px 0;
    font-weight: 700;
}

/* เปลี่ยนสีตัวอักษรเมื่อ Hover */
.card:hover .card-content h2 {
    color: #FFFFFF;
    /* เปลี่ยนเป็นสีแดงเข้ม */
}

.card-content p {
    font-size: 14px;
    /* ลดขนาดตัวอักษรให้กะทัดรัดขึ้น */
    color: #333;
    font-family: 'Lato', 'Noto Sans Thai Looped', sans-serif;
    /* รักษาสไตล์เดิมทั้งหมด */
    font-size: 1.1rem;
    line-height: 1.4;
    color: #000000;

    margin: 20px 0;

}

.card-content a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    background-color: black;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* เอฟเฟกต์ Hover บนปุ่ม */
.card-content a:hover {
    background-color: #8b0000;
    /* เปลี่ยนเป็นสีแดงเข้ม */
    transform: scale(1.1);
    /* ขยายปุ่มเล็กน้อย */
}

@media (min-width: 340px) and (max-width: 768px) {
    .card {
        flex-direction: column;
    }

    .container1 {
        width: 100%;
        flex-direction: column;
    }
}

.container2 img {
    max-width: 120px;
    max-height: 120px;
}