@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');

/* ตั้งค่าสีพื้นหลังและฟอนต์ */
body {
    font-family: 'Lato', 'Noto Sans Thai Looped', sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ตั้งค่า container หลัก */
.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    gap: 20px;
    /* เพิ่มช่องว่างระหว่างกล่อง */
}

/* โซเชียลไอคอน */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    font-size: 20px;
    color: #333;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #8d4b32;
}

.map-container {
    width: 100%;
    height: 420px;
    margin-top: 100px;
    /* เว้นห่างจาก navbar อย่างเหมาะสม */
    margin-bottom: 50px;
    /* เว้นห่างจากคอนเทนต์ถัดไป */
    text-align: center;
}

.tact {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(180deg, #fffdf8 0%, #f8f8f8 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px auto;
    max-width: 900px;
}

.tact-title {
    font-size: 32px;
    color: #0e0e55;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.tact-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    margin: 10px auto 0;
    background: linear-gradient(to right, #c49b37, #f6e27a);
    border-radius: 4px;
    animation: underlineGrow 1.2s ease;
}

@keyframes underlineGrow {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 70px;
        opacity: 1;
    }
}

.tact-subtitle {
    font-size: 22px;
    color: #333;
    margin-top: 10px;
    font-weight: 600;
}

.tact-address {
    font-size: 17px;
    color: #444;
    margin-top: 12px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive ปรับสำหรับมือถือ */
@media screen and (max-width: 768px) {
    .tact {
        padding: 40px 20px;
    }

    .tact-title {
        font-size: 24px;
    }

    .tact-subtitle {
        font-size: 18px;
    }

    .tact-address {
        font-size: 15px;
    }
}

.container_contact {
    max-width: 1100px;
    margin: 50px auto;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Lato', 'Noto Sans Thai Looped', sans-serif;
    text-align: left;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: #0e0e55;
    margin-bottom: 20px;
    text-align: left;
}

.contact-info .info p {
    font-size: 1.2rem;
    margin-bottom: 16px;
    line-height: 1.6;
    color: #333;
}

.contact-info .info i {
    color: #bfa052;
    margin-right: 8px;
}

.contact-info .social-icons {
    margin-top: 10px;
}

.contact-info .social-icons a {
    margin-right: 12px;
    font-size: 1.5rem;
    color: #bfa052;
    transition: color 0.3s;
}

.contact-info .social-icons a:hover {
    color: #ff6b6b;
}

.katuu {
    padding: 50px 20px;
    background-color: #fdfdfd;
    font-family: 'Segoe UI', sans-serif;
}

.katuu h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 36px;
}

.katuubox {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.FAQ,
.QA {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.faq-item h3 {
    cursor: pointer;
    color: #c49b37;
    transition: color 0.3s;
}

.faq-item h3:hover {
    color: #a37928;
}

.faq-answer {
    margin-top: 10px;
    padding-left: 20px;
    display: none;
    color: #444;
}

.QA h3 {
    color: #333;
    margin-bottom: 5px;
}

.QA p {
    margin: 3px 0 10px;
    color: #555;
}

form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

textarea {
    resize: vertical;
    min-height: 100px;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

button[type="submit"] {
    background-color: #c49b37;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    align-self: flex-end;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #a37928;
}

.question-card {
    background-color: #fffdf8;
    border: 1px solid #c49b37;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    text-align: left;
    position: relative;
}

.question-card h4 {
    margin: 10px 0 5px;
    color: #c49b37;
    font-weight: 600;
    font-size: 16px;
}

.question-card .question,
.question-card .answer {
    margin: 5px 0 15px;
    padding-left: 5px;
}

.qa-meta {
    font-size: 13px;
    color: #666;
    padding-left: 5px;
}

/* ฟอร์มติดต่อ */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input-group input {
    flex: 1;
}

.Bform {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: auto;
    /* จัดให้อยู่ตรงกลาง */
    margin-bottom: 30px;
    margin-top: 20px;
}

.Bform h1 {
    font-size: 24px;
    color: #007BFF;
    margin-bottom: 10px;
}

.Bform p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.Bform label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.Bform input[type="text"],
.Bform textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.Bform textarea {
    resize: vertical;
}

.Bform button {
    background-color: #EBCD5C;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.Bform button:hover {
    background-color: #F4D97E;
}

.col {
    height: 400px;
    width: 300px;
    margin: 10px;
}

.article {
    display: flex;
    align-items: center;
    justify-content: space-around;

}

/* สำหรับมือถือ (หน้าจอขนาดเล็กกว่า 768px) */
@media (max-width: 768px) {
    .article {
        flex-direction: column;
        /* เปลี่ยนให้เป็นแนวตั้ง */
        margin-bottom: 20px;
        /* เว้นบรรทัดลงมา */
    }
}

/* สำหรับแท็บเล็ต (หน้าจอระหว่าง 768px ถึง 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .article {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
    }

    .col {
        height: 50%;
        width: 50%;
        margin: 10px;
    }
}

@media (min-width: 1900px) {
    .col {
        height: 100%;
        width: 100%;
        margin: 10px;
    }
}

.bodyYA {
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    /* ไล่สีพื้นหลัง */
    padding: 40px 5px;
    /* เพิ่มระยะห่างด้านใน */
    border-radius: 12px;
    /* ทำขอบมน */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    /* เพิ่มเงา */
    text-align: center;
    /* จัดกลางเนื้อหา */
    max-width: 1200px;
    /* จำกัดความกว้าง */
    margin: auto;
    /* จัดให้อยู่กลางหน้าจอ */
    margin-bottom: 30px;
}

.KTL {
    text-align: center;
}

.button-header {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-right {
    background: #ddc06a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    padding: 5px;
}

.button-right span {
    opacity: 0;
    width: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
    white-space: nowrap;
}

.button-right i {
    font-size: 2rem;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.button-right:hover {
    width: 230px;
}

.button-right span:hover {
    opacity: 1;
    width: 220px;
    font-size: 1.2em;
}

@media (min-width: 350px) and (max-width: 768px) {
    .KTL {
        font-size: 20px;
        text-align: center;
    }

    .button-header {
        top: 52%;
    }

    .button-right {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        /* หรือขนาดที่เหมาะสม */
        height: 40px;
        padding: 5px;
    }

    .button-right i {
        font-size: 24px;
        /* ปรับขนาดไอคอน */
    }

    .button-right::before {
        content: none;
        /* ซ่อนข้อความ */
    }

    .button-right span {
        display: none;
        /* ซ่อนข้อความในปุ่ม */
    }
}

.form-label {
    margin-bottom: 0.5rem;
}

.col-form-label {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
    font-size: inherit;
    line-height: 1.5;
}

.col-form-label-lg {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-size: 1.25rem;
}

.col-form-label-sm {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.875rem;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.form-floating input.form-control,
.form-floating textarea.form-control {
    font-size: 1.5rem;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 0;
    border-width: 1px;
}

.form-floating input.form-control:focus,
.form-floating textarea.form-control:focus {
    box-shadow: none;
}