/* Base Styles (สำหรับหน้าจอคอมพิวเตอร์ทั่วไป) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Thai', sans-serif;
}

.header-section {
    background-color: #4a80d4;
    padding: 25px 30px;
    height: 230px;
}

.header-container {
    display: flex;
    align-items: center;
    color: #fff;
    justify-content: space-between;
}

.header-logo {
    width: 130px;
    margin-right: 15px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-title-th {
    font-size: 55px;
    font-weight: bold;
}

.header-title-en {
    font-size: 27px;
    font-weight: normal;
    margin-top: -12px;
}

.header-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.header-box-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #4a80d4;
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    margin-left: -15px;
}

.header-box-contact-title,
.box-Language {
    display: inline-block;
    background-color: #ffffff;
    color: #4a80d4;
    padding: 0px 6px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: default;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.header-box-contact-tel {
    background-color: #fff;
    padding: 3px 6px;
    border-radius: 20px;
}

svg.bi.bi-telephone-fill {
    fill: #4a80d4;
}

.header-text-left {
    display: flex;
    align-items: center;
}

.header-login-title,
.header-register-title {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    padding: 3px 17px;
    border-radius: 32px;
    font-size: 22px;
    font-weight: bold;
    cursor: default;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.header-text-right {
    margin-top: -15px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.header-box-flag {
    width: 330px;
    height: 40px;
    background: #ffffff;
    margin: 10px;
    color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 5px;
    justify-content: space-between;
}

section.slide-top {
    margin-top: -45px;
    background-image: url(/img/001.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.search-bar-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #8CC63E;
    padding: 10px;
    border-radius: 5px;
    gap: 10px;
    box-shadow: 0px 0px 20px 5px rgb(156 211 82);
    z-index: 3;
}

.search-button {
    background-color: #f7f9fc;
    border: 2px solid #6d9194;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: bold;
    font-size: 16px;
    color: #6d9194;
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
    box-shadow: 0px 0px 20px 5px rgb(196 215 170);
}

.search-box {
    display: flex;
    align-items: center;
    flex-grow: 1;
    background-color: #f7f9fc;
    border: 2px solid #6d9194;
    border-radius: 30px;
    padding: 5px 15px;
    max-width: 250px;
    margin-left: auto;
    margin-top: -35px;
    box-shadow: 0px 0px 20px 5px rgb(196 215 170);
}

.vision img {
    margin-top: -50%;
    width: 180px;
}

.search-box-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-box-img img {
    width: 170px;
    margin-top: -88%;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    flex-grow: 1;
    padding: 5px 0;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    fill: #000;
    cursor: pointer;
}

.search-button.intercity-port {
    height: 44px;
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: -9px;
}

.scroll-text {
    left: 50%;
}

img.box-img-slide-top {
    position: absolute;
    z-index: 5;
    margin-top: 36px;
}

.carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    background-color: #fff;
    /* สีปกติ */
    border: 1px solid #000;
    /* ขอบ (ถ้าอยากให้เห็นชัด) */
    opacity: 0.5;
    /* ความโปร่งใสปกติ */
    transition: opacity 0.3s, transform 0.3s;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5% !important;
}

.br-top {
    width: 100%;
    height: 20px;
    display: block;
    background: linear-gradient(360deg, #00968f, #004955);
}

/*fotter*/
.footer-one {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 50px 70px;
    color: #0b4275;
}

.footer-one a {
    color: #0b4275;
}

.text-footer-one,
.text-footer-two,
.text-footer-three {
    display: flex;
    margin: 20px 0 20px 0;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    align-items: center;
}

.footer-link {
    display: flex;
    flex-direction: column;
    font-size: 30px;
    width: 500px;
}

.link-footer-two {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    margin-left: 8%;
    gap: 20px;
    margin-top: 15px;
}

.link-footer-two a {
    text-decoration: unset;
}

.footer-ma {
    margin-top: 5%;
    display: flex;
    flex-direction: column;
    gap: 5%;
}

.footer-two {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #4a80d4;
}

/* สำหรับหน้าจอขนาดกลาง (แท็บเล็ต, 768px ขึ้นไป) */
@media (max-width: 1024px) {
    .header-section {
        height: auto;
        padding: 20px;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-logo {
        width: 100px;
        margin-right: 0;
    }

    .header-text-left {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .header-text-right {
        margin-top: 10px;
        flex-direction: row;
        gap: 10px;
    }

    .header-box-contact {
        margin-left: 0;
        justify-content: center;
    }

    .header-title-th {
        font-size: 40px;
    }

    .header-title-en {
        font-size: 20px;
        margin-top: -8px;
    }

    .header-login-title,
    .header-register-title {
        font-size: 18px;
        padding: 5px 15px;
    }

    .search-bar-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-button {
        width: 100%;
    }

    .search-box {
        max-width: 100%;
    }

    .search-button.intercity-port {
        width: 100%;
    }
}

/* สำหรับหน้าจอขนาดเล็ก (โทรศัพท์มือถือ, 480px ลงไป) */
@media (max-width: 767px) {
    .header-section {
        padding: 15px;
    }

    .header-container {
        gap: 10px;
    }

    .header-logo {
        width: 80px;
    }

    .header-title-th {
        font-size: 30px;
    }

    .header-title-en {
        font-size: 16px;
        margin-top: -5px;
    }

    .header-contact {
        text-align: center;
    }

    .header-contact-item {
        font-size: 12px;
    }

    .header-box-contact-tel {
        /* ซ่อนเบอร์โทรศัพท์สำหรับหน้าจอมือถือ */
        display: none;
    }

    .header-box-flag {
        width: 100%;
        margin: 5px 0;
    }

    .tfone a {
        color: #212565;
        text-decoration: auto;
    }

    .tfone {
        display: flex;
        gap: 10px;
    }

}