/* ส่วนหัวและส่วนท้ายที่ใช้ร่วมกันทุกหน้า
   ย้ายมาจาก <style> ที่เคยฝังอยู่ใน resources/views/th/master.blade.php */

/* แถบบนสุดของ header - สไตล์โมเดิร์น
                       Scoped to .header-top-modern; palette #072e69 / #0a4091 / #8fb4ec / #fff */
                    .main-header--one__top.header-top-modern {
                        background: #072e69;
                        border-bottom: 1px solid rgba(255, 255, 255, .10);
                    }

                    /* ธีมเดิมใช้ float + clearfix เปลี่ยนมาเป็น flex ให้จัดแนวได้จริง */
                    .main-header--one__top.header-top-modern .auto-container {
                        align-items: center;
                        display: flex;
                        flex-wrap: wrap;
                        gap: 10px 20px;
                        justify-content: space-between;
                        min-height: 44px;
                        padding: 6px 50px;
                    }

                    .main-header--one__top.header-top-modern .main-header--one__top-left {
                        align-items: center;
                        float: none;
                        gap: 18px;
                    }

                    /* เส้นคั่นบางๆ ระหว่างเบอร์โทรกับไอคอนโซเชียล */
                    .main-header--one__top.header-top-modern .main-header--one__top-left .social-link {
                        border-left: 1px solid rgba(255, 255, 255, .16);
                        padding: 0 0 0 18px;
                    }

                    /* ---- เบอร์โทร ---- */
                    .main-header--one__top.header-top-modern .main-header--one__top-left .text p {
                        margin: 0;
                        padding: 0;
                    }

                    .main-header--one__top.header-top-modern .main-header--one__top-left .text a {
                        align-items: center;
                        color: #ffffff;
                        display: inline-flex;
                        font-family: 'promptregular';
                        font-size: 14px;
                        gap: 8px;
                        letter-spacing: .2px;
                        line-height: 1.6;
                        text-decoration: none;
                        transition: color .3s ease;
                    }

                    .main-header--one__top.header-top-modern .main-header--one__top-left .text a:hover {
                        color: #8fb4ec;
                    }

                    .main-header--one__top.header-top-modern .main-header--one__top-left .text a i {
                        color: #8fb4ec;
                        font-size: 13px;
                    }

                    /* ---- ไอคอนโซเชียล: จากไอคอนเปล่า เป็นปุ่มกลม ---- */
                    .main-header--one__top.header-top-modern .social-link ul {
                        display: flex;
                        gap: 8px;
                        margin: 0;
                        overflow: visible;
                        padding: 0;
                    }

                    .main-header--one__top.header-top-modern .social-link ul li {
                        float: none;
                        margin-left: 0;
                    }

                    .main-header--one__top.header-top-modern .social-link ul li a {
                        align-items: center;
                        background: rgba(255, 255, 255, .08);
                        border-radius: 50%;
                        color: #ffffff;
                        display: inline-flex;
                        font-size: 20px;
                        height: 40px;
                        justify-content: center;
                        transition: background-color .3s ease, color .3s ease;
                        width: 40px;
                    }

                    .main-header--one__top.header-top-modern .social-link ul li a:hover {
                        background: #0a4091;
                        color: #ffffff;
                    }

                    /* ---- เลือกภาษา ---- */
                    .main-header--one__top.header-top-modern .main-header--one__top-right {
                        float: none;
                        padding-top: 0;
                    }

                    .main-header--one__top.header-top-modern .main-header--one__top-right ul {
                        margin: 0;
                        padding: 0;
                    }

                    .main-header--one__top.header-top-modern .lang-switch {
                        align-items: center;
                        display: flex;
                        gap: 6px;
                    }

                    .main-header--one__top.header-top-modern .lang-switch a {
                        align-items: center;
                        border: 1px solid rgba(255, 255, 255, .22);
                        border-radius: 999px;
                        display: inline-flex;
                        gap: 6px;
                        opacity: .72;
                        padding: 4px 10px;
                        transition: background-color .3s ease, border-color .3s ease, opacity .3s ease;
                    }

                    .main-header--one__top.header-top-modern .lang-switch a img {
                        border-radius: 2px;
                        display: block;
                    }

                    .main-header--one__top.header-top-modern .lang-switch a span {
                        color: #ffffff;
                        font-family: 'promptregular';
                        font-size: 12px;
                        letter-spacing: .4px;
                        line-height: 1;
                    }

                    .main-header--one__top.header-top-modern .lang-switch a:hover {
                        background: rgba(255, 255, 255, .08);
                        opacity: 1;
                    }

                    /* ภาษาที่กำลังใช้อยู่ */
                    .main-header--one__top.header-top-modern .lang-switch a.is-active {
                        background: rgba(255, 255, 255, .18);
                        border-color: rgba(255, 255, 255, .60);
                        opacity: 1;
                    }

                    @media (max-width: 767px) {
                        .main-header--one__top.header-top-modern .auto-container {
                            gap: 8px 14px;
                            justify-content: center;
                            padding: 8px 20px;
                        }

                        .main-header--one__top.header-top-modern .main-header--one__top-left {
                            gap: 14px;
                            justify-content: center;
                        }

                        .main-header--one__top.header-top-modern .main-header--one__top-left .social-link {
                            padding-left: 14px;
                        }
                    }

                    @media (prefers-reduced-motion: reduce) {
                        .main-header--one__top.header-top-modern .social-link ul li a,
                        .main-header--one__top.header-top-modern .lang-switch a,
                        .main-header--one__top.header-top-modern .main-header--one__top-left .text a {
                            transition: none;
                        }
                    }

/* กล่อง Call Center บน header - สไตล์โมเดิร์น
                                   Scoped to .contact-box-modern; palette #062452 / #0a4091 / #f1f5f9 */
                                .contact-box.contact-box-modern {
                                    background: #f1f5f9;
                                    border: 1px solid rgba(23, 57, 108, .10);
                                    border-radius: 999px;
                                    line-height: normal;
                                    padding: 8px 22px 8px 8px;
                                    transition: border-color .3s ease, box-shadow .3s ease;
                                }

                                .contact-box.contact-box-modern:hover {
                                    border-color: rgba(10, 64, 145, .28);
                                    box-shadow: 0 12px 26px -18px rgba(6, 36, 82, .55);
                                }

                                .contact-box.contact-box-modern .icon {
                                    flex: 0 0 44px;
                                    height: 44px;
                                    width: 44px;
                                }

                                .contact-box.contact-box-modern .icon span::before {
                                    font-size: 20px;
                                    line-height: 44px;
                                }

                                /* ธีมเดิม hover เป็นสีเหลือง #f1cf69 ซึ่งหลุดจากโทนสีของเว็บ */
                                .contact-box.contact-box-modern .icon:hover {
                                    background-color: #0a4091;
                                }

                                .contact-box.contact-box-modern .icon:hover span::before {
                                    color: #ffffff;
                                }

                                .contact-box.contact-box-modern .text {
                                    padding-left: 14px;
                                }

                                .contact-box.contact-box-modern .text p {
                                    color: #6b7c96;
                                    font-family: 'promptregular';
                                    font-size: 12px;
                                    letter-spacing: .5px;
                                    line-height: 1.4;
                                    margin: 0 0 2px;
                                }

                                .contact-box.contact-box-modern .text a {
                                    color: #072e69;
                                    display: inline-block;
                                    font-family: 'promptsemibold';
                                    font-size: 17px;
                                    font-weight: 600;
                                    letter-spacing: .2px;
                                    line-height: 1.3;
                                }

                                .contact-box.contact-box-modern .text a:hover {
                                    color: #0a4091;
                                }

                                @media (prefers-reduced-motion: reduce) {
                                    .contact-box.contact-box-modern {
                                        transition: none;
                                    }
                                }

/* ส่วนบนของ footer - สไตล์โมเดิร์น
                   Scoped to .footer-modern; palette #062e6a / #5897f5 / #8fb4ec / #fff */
                .footer-one__top.footer-modern {
                    background: #062e6a;
                    padding: 64px 0 34px;
                }

                /* ธีมเดิมฮาร์ดโค้ด margin ซ้าย/ขวาไว้ในแต่ละ widget ทำให้คอลัมน์ไม่ตรงกัน */
                .footer-one__top.footer-modern .footer-widget__about,
                .footer-one__top.footer-modern .footer-widget__news,
                .footer-one__top.footer-modern .footer-widget__explore,
                .footer-one__top.footer-modern .footer-widget__newletter {
                    margin-left: 0;
                    margin-right: 0;
                    margin-top: 0;
                }

                .footer-one__top.footer-modern .footer-widget__column {
                    margin-bottom: 36px;
                }

                /* ---- หัวข้อ widget + ขีดเน้น ---- */
                .footer-one__top.footer-modern .footer-widget__title {
                    font-family: 'promptsemibold';
                    font-size: 18px;
                    letter-spacing: 0;
                    line-height: 1.5;
                    margin-bottom: 22px;
                    padding-bottom: 12px;
                }

                .footer-one__top.footer-modern .footer-widget__title::after {
                    background: #5897f5;
                    border-radius: 2px;
                    bottom: 0;
                    content: "";
                    height: 3px;
                    left: 0;
                    position: absolute;
                    width: 36px;
                }

                /* ---- คอลัมน์แนะนำบริษัท ---- */
                .footer-one__top.footer-modern .footer-widget__about-logo {
                    margin-bottom: 18px;
                }

                .footer-one__top.footer-modern .footer-widget__about-text {
                    color: rgba(255, 255, 255, .78);
                    font-size: 14px;
                    line-height: 1.9;
                    margin: 0;
                    max-width: 340px;
                }

                .footer-one__top.footer-modern .footer-widget__about-social {
                    display: flex;
                    gap: 10px;
                    margin-top: 22px;
                }

                .footer-one__top.footer-modern .footer-widget__about-social a img {
                    border-radius: 50%;
                    display: block;
                    transition: opacity .3s ease, transform .3s ease;
                }

                .footer-one__top.footer-modern .footer-widget__about-social a:hover img {
                    opacity: .85;
                    transform: translateY(-3px);
                }

                /* ---- รายการบทความ ---- */
                .footer-one__top.footer-modern .footer-widget__news-list-item {
                    margin-bottom: 18px;
                }

                .footer-one__top.footer-modern .footer-widget__news-list-item-title {
                    padding-left: 14px;
                    padding-right: 0;
                }

                .footer-one__top.footer-modern .footer-widget__news-list-item-title h5 {
                    font-size: 14px;
                    line-height: 1.65;
                }

                .footer-one__top.footer-modern .footer-widget__news-list-item-title h5 a {
                    color: rgba(255, 255, 255, .85);
                    transition: color .3s ease;
                }

                .footer-one__top.footer-modern .footer-widget__news-list-item-title h5 a:hover {
                    color: #ffffff;
                }

                /* ---- เมนูเว็บไซต์ ---- */
                .footer-one__top.footer-modern .footer-widget__explore-list-item {
                    margin-bottom: 8px;
                }

                .footer-one__top.footer-modern .footer-widget__explore-list-item a {
                    color: rgba(255, 255, 255, .82);
                    font-size: 15px;
                    line-height: 1.9;
                }

                .footer-one__top.footer-modern .footer-widget__explore-list-item a:hover {
                    color: #ffffff;
                }

                .footer-one__top.footer-modern .footer-widget__explore-list-item a::before {
                    background: #5897f5;
                }

                /* ---- ติดต่อเรา ---- */
                .footer-one__top.footer-modern .footer-widget__about-contact-box {
                    margin-bottom: 16px;
                }

                .footer-one__top.footer-modern .footer-widget__about-contact-box:last-child {
                    margin-bottom: 0;
                }

                .footer-one__top.footer-modern .footer-widget__about-contact-box p,
                .footer-one__top.footer-modern .footer-widget__about-contact-box .text,
                .footer-one__top.footer-modern .footer-widget__about-contact-box .phone {
                    color: rgba(255, 255, 255, .82);
                    font-family: 'promptregular';
                    font-size: 15px;
                    font-weight: 400;
                    line-height: 1.9;
                    margin-bottom: 6px;
                }

                .footer-one__top.footer-modern .footer-widget__about-contact-box a {
                    color: rgba(255, 255, 255, .9);
                    transition: color .3s ease;
                }

                .footer-one__top.footer-modern .footer-widget__about-contact-box a:hover {
                    color: #8fb4ec;
                }

                .footer-one__top.footer-modern .footer-widget__about-contact-box i::before {
                    color: #5897f5;
                }

                /* ================= มือถือ / แท็บเล็ต: จัดกลาง ================= */
                @media (max-width: 991px) {
                    .footer-one__top.footer-modern {
                        padding: 48px 0 20px;
                        text-align: center;
                    }

                    .footer-one__top.footer-modern .footer-widget__column {
                        margin-bottom: 34px;
                    }

                    .footer-one__top.footer-modern .footer-widget__title::after {
                        left: 50%;
                        transform: translateX(-50%);
                    }

                    .footer-one__top.footer-modern .footer-widget__about-text {
                        margin-left: auto;
                        margin-right: auto;
                    }

                    .footer-one__top.footer-modern .footer-widget__about-social {
                        justify-content: center;
                    }

                    /* รายการบทความ: ชิดซ้าย ไม่จัดกลางเหมือนคอลัมน์อื่น */
                    .footer-one__top.footer-modern .footer-widget__news {
                        text-align: left;
                    }

                    .footer-one__top.footer-modern .footer-widget__news-list-item {
                        justify-content: flex-start;
                        margin-bottom: 20px;
                    }

                    .footer-one__top.footer-modern .footer-widget__news-list-item-title {
                        text-align: left;
                    }

                    .footer-one__top.footer-modern .footer-widget__news .footer-widget__title::after {
                        left: 0;
                        transform: none;
                    }

                    /* เมนูเว็บไซต์: ชิดซ้าย ไม่จัดกลางเหมือนคอลัมน์อื่น */
                    .footer-one__top.footer-modern .footer-widget__explore {
                        text-align: left;
                    }

                    .footer-one__top.footer-modern .footer-widget__explore .footer-widget__title::after {
                        left: 0;
                        transform: none;
                    }
                }

                @media (prefers-reduced-motion: reduce) {
                    .footer-one__top.footer-modern .footer-widget__about-social a img {
                        transition: none;
                    }

                    .footer-one__top.footer-modern .footer-widget__about-social a:hover img {
                        transform: none;
                    }
                }

                /* ---- กรอบภาพในรายการบทความ ---- */
                .footer-one__top.footer-modern .footer-widget__news-list-item-img {
                    border-radius: 10px;
                    flex: 0 0 100px;
                    height: 68px;
                    overflow: hidden;
                    width: 100px;
                }

                .footer-one__top.footer-modern .footer-widget__news-list-item-img img {
                    display: block;
                    height: 100%;
                    object-fit: cover;
                    width: 100%;
                }

/* แถบล่างสุดของ footer - สไตล์โมเดิร์น
                   Scoped to .footer-bottom-modern; palette #062452 / #0a4091 / #fff */
                .footer-one__bottom.footer-bottom-modern {
                    background: #062452;
                    border-top: 1px solid rgba(255, 255, 255, .10);
                    padding: 18px 0;
                }

                .footer-one__bottom.footer-bottom-modern .footer-one__bottom-inner {
                    flex-wrap: wrap;
                    gap: 14px;
                }

                /* ---- ข้อความลิขสิทธิ์ ---- */
                .footer-one__bottom.footer-bottom-modern .footer-one__bottom-text p {
                    color: rgba(255, 255, 255, .72);
                    font-family: 'promptregular';
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 1.6;
                    margin: 0;
                }

                .footer-one__bottom.footer-bottom-modern .footer-one__bottom-text p a {
                    color: #ffffff;
                    font-size: 14px;
                    text-decoration: none;
                    transition: color .3s ease;
                }

                .footer-one__bottom.footer-bottom-modern .footer-one__bottom-text p a:hover {
                    color: #8fb4ec;
                }

                /* ---- ไอคอนโซเชียล: จากไอคอนเปล่า เป็นปุ่มกลม ---- */
                .footer-one__bottom.footer-bottom-modern .footer-one__bottom-social-links {
                    overflow: visible;
                }

                .footer-one__bottom.footer-bottom-modern .footer-one__bottom-social-links ul {
                    gap: 10px;
                    margin: 0;
                    padding: 0;
                }

                .footer-one__bottom.footer-bottom-modern .footer-one__bottom-social-links ul li {
                    float: none;
                    margin-left: 0;
                }

                .footer-one__bottom.footer-bottom-modern .footer-one__bottom-social-links ul li a {
                    align-items: center;
                    background: rgba(255, 255, 255, .08);
                    border: 1px solid rgba(255, 255, 255, .14);
                    border-radius: 50%;
                    color: #ffffff;
                    display: inline-flex;
                    font-size: 15px;
                    height: 38px;
                    justify-content: center;
                    transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
                    width: 38px;
                }

                .footer-one__bottom.footer-bottom-modern .footer-one__bottom-social-links ul li a:hover {
                    background: #0a4091;
                    border-color: rgba(255, 255, 255, .35);
                    color: #ffffff;
                    transform: translateY(-2px);
                }

                @media (max-width: 575px) {
                    .footer-one__bottom.footer-bottom-modern {
                        padding: 20px 0 22px;
                    }

                    .footer-one__bottom.footer-bottom-modern .footer-one__bottom-inner {
                        flex-direction: column;
                        justify-content: center;
                        text-align: center;
                    }
                }

                @media (prefers-reduced-motion: reduce) {
                    .footer-one__bottom.footer-bottom-modern .footer-one__bottom-social-links ul li a {
                        transition: none;
                    }

                    .footer-one__bottom.footer-bottom-modern .footer-one__bottom-social-links ul li a:hover {
                        transform: none;
                    }
                }
