/* @import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;1,100;1,200;1,600&family=Prompt:wght@300&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@100;200;300;400;500;600;700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

body {
    /* font-family: 'Kanit', sans-serif !important; */
    font-family: "Sarabun", sans-serif;
    letter-spacing: 0.01em !important;
    font-size: 16px !important;
    font-weight: 200;
    font-style: normal;
    /* line-height: 1.6; */
}

p {
    letter-spacing: 0.01em;
    font-size: 1rem;
    /* ค่าเริ่มต้นทั่วไป */
}

@media (max-width: 576px) {
    p {
        font-size: 1.5rem;
        /* ขยายเฉพาะมือถือ */
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0.02em !important;
    font-weight: 400 !important;
}

label {
    font-size: 1rem;
    font-weight: 400 !important;
    padding-bottom: 0.5rem !important;
}

@media (max-width: 576px) {
    label {
        font-size: 1.2rem;
        font-weight: 400 !important;
        padding-bottom: 0.5rem !important;
    }
}

a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: underline !important;
}

a li {
    color: #fff;
}

nav {
    padding: 10px !important;
}

.nav-link {
    color: #fff !important;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
}

a.btn-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #F8C80B;
    border-radius: 0;
    border: 0;
    padding: 30px;
    flex: 1;
    border: 1px solid #DBAF00;
    color: #000 !important;
}

/* ขยายขนาด iconify-icon */
a.btn-menu iconify-icon {
    font-size: 48px;
    /* ขนาดใหญ่ขึ้น ปรับได้ตามชอบ */
    margin-bottom: 12px;
    /* เว้นห่างจากข้อความ */
}

/* ข้อความหัวข้อใหญ่ขึ้นหน่อย (ถ้าต้องการ) */
.btn-menu-title {
    font-weight: bold;
    font-size: 18px;
    /* ปรับขนาดตามต้องการ */
    margin: 0 0 8px 0;
}

/* รายละเอียดข้อความ */
.btn-menu-detail {
    font-size: 14px;
    line-height: 1.3;
    margin: 2px 0;
    /* font-weight: bolder; */
    font-weight: 500;
}


.d-flex.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

a.btn-menu {
    font-weight: bold;
    cursor: pointer;
    /* เพิ่มเคอร์เซอร์เป็น pointer */
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    /* เพิ่ม transition */
}

a.btn-menu:hover,
a.btn-menu:focus {
    /* สีพื้นหลังเมื่อ hover */
    background-color: #FDD947;
    border-color: #DBAF00;
    /* ขอบเข้มขึ้น */
    /* color: #ffffff !important; */
    color: #004374 !important;
    /* สีข้อความคงเดิม */
    text-decoration: none;
    /* ป้องกันลิงก์มีเส้นใต้ */
}

a.btn-menu {
    flex: 1;
    min-width: 0;
}

/* Mobile (จอเล็กกว่า 768px) */
@media (max-width: 767.98px) {
    a.btn-menu {
        flex: 0 0 50%;
        /* ครึ่งหนึ่งพอดี */
        max-width: 50%;
        box-sizing: border-box;
        padding: 30px;
        /* เก็บ padding เดิมตามที่มี */
        border-right: 1px solid #DBAF00;
        /* กรณีอยากให้มีเส้นแบ่งขอบขวา ถ้าไม่เอาก็ลบได้ */
        border-bottom: 1px solid #DBAF00;
        /* เส้นแบ่งด้านล่างถ้าต้องการ */
    }

    /* เมนูสุดท้าย แถวสุดท้ายให้เต็ม */
    .d-flex.flex-wrap a.btn-menu:nth-child(5) {
        flex: 0 0 100%;
        max-width: 100%;
        border-right: none;
        /* ลบขอบขวาแถวสุดท้าย */
    }

    /* ลบเส้นขอบขวาให้เมนูที่อยู่ขวาสุดของแต่ละแถว (2,4) */
    .d-flex.flex-wrap a.btn-menu:nth-child(2),
    .d-flex.flex-wrap a.btn-menu:nth-child(4) {
        border-right: none;
    }
}

.text-title {
    color: #0769dc;
    font-weight: bold;
    padding: 2px;
    flex: 1;
}

.text-title-2 {
    color: #0769dc;
    font-weight: bold;
    padding: 2px;
    flex: 1;
}

.img-news-lastest {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card-news-lastest {
    width: 100%;
    flex-wrap: wrap;
    cursor: pointer;
    color: #0F66A4;
}

.img-news {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.flex-card {
    width: 25%;
}

.card-news {
    flex: 1;
    flex-wrap: wrap;
    cursor: pointer;
    color: #0F66A4;
    margin: 0px 20px;
}

.card-activities {
    border-radius: 9px;
    border: 1px solid #DDD;
    background: #FFF;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
    flex-wrap: wrap;
    /* flex: 1; */
    margin: 0px 20px;
    color: #0F66A4;
    /* cursor: pointer; */
    height: 480px;
    position: relative;
    margin-bottom: 5px;
    overflow: hidden;
}

.card-activities h6,
.card-activities .title {
    line-height: 1.3rem;
}

.card-activities .title {
    padding: 0;
    margin: 0;
    margin-bottom: 0.5rem;
}

.card-activities>.card-description {
    height: 198px;
    overflow: hidden;
}

.card-tourist {
    border-radius: 9px;
    border: 1px solid #DDD;
    background: #FFF;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
    flex-wrap: wrap;
    flex: 1;
    margin: 0px 20px;
    color: #0F66A4;
    cursor: pointer;
    height: 400px;
    /* max-width: 460px; */
    position: relative;
    overflow: hidden;
}

.card-tourist h6 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3rem;
}

.card-activities:hover {
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.20);
}

.img-act {
    width: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.card-2 {
    border-radius: 11px;
    background: linear-gradient(0deg, #EEEFF1 0%, #EEEFF1 100%), #EEEFF1;
    padding: 20px;
    flex: 1;
    align-items: center;
}

.img-place {
    width: 100%;
    /* height: 180px !important; */
    object-fit: cover;
    border-radius: 9px;
}

.card-news-page {
    object-fit: cover;
    height: 100%;
    overflow: hidden;
}


.cursor {
    cursor: pointer;
}

.card-news-page:hover {
    transform: scale(1.2);
}

.img-overlay {
    opacity: 40%;
}

.btn-yellow {
    background-color: #FDD947 !important;
}

.btn-yellow:hover {
    background-color: #F8C80B !important;
}

.waiting-status {
    background-color: #FDD947;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
}

.success-status {
    background-color: #4FC978;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #FFF;
    border-radius: 10px;
}

.unsuccess-status {
    background-color: #ff0000;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    border-radius: 10px;

}

.w-news {
    width: 60%;
}

.modal-dialog {
    width: 40% !important;
    max-width: 40% !important
}

.card-login {
    border-radius: 9px;
    border: 1px solid #DDD;
    background: #FFF;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
    flex-wrap: wrap;
    margin: 0px 20px;
    color: #0F66A4;
    width: 30%;
}

.card-reg {
    border-radius: 9px;
    border: 1px solid #DDD;
    background: #FFF;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
    flex-wrap: wrap;
    margin: 0px 20px;
    color: #0F66A4;
    width: 80%;
}

.padding-card {
    color: #0F66A4;
    border-right:
        2px solid #C9C9C9;
    padding-right: 100px;
}

#table {
    border-collapse: collapse;
    width: 100%;
    border-radius: 1em !important;
}

#table td,
#table th {
    border: 1px solid #fff;
    padding: 8px;
}

#table tr {
    background-color: #fff;
}

#table tr:hover {
    background-color: #ddd;
}

#table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #0F66A4;
    color: white;
}

.padding-section {
    padding: 50px 150px;
}

.text-line {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    /* -webkit-line-clamp: 5; */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3rem;
}

.img-qrcode {
    margin-bottom: -50px;
    max-width: 600px;
}

.img-about {
    width: 80%;
}

.padding-login {
    padding: 120px;
}

.w-yt {
    width: 100%;
}

.dropdown-menu>a {
    color: #FFF;
}

.nav-link {
    color: #fff;
}

#footer {
    background-color: #0F66A4;
}

.btn-menu>p.btn-menu-title {
    font-size: 1.7rem;
    font-weight: 500;
}

.btn-menu>.btn-menu-detail {
    font-size: 1rem;
}

@media only screen and (max-width: 1700px) {
    .card-activities {
        height: 430px;
    }

    .card-tourist {
        height: 280px;
    }
}

@media only screen and (max-width: 1400px) {
    .card-activities {
        height: 450px;
    }

    .card-activities>.card-description {
        height: 242px;
    }

    .text-line {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        /* -webkit-line-clamp: 5; */
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .padding-section {
        padding: 40px;
    }

    .flex-responsive {
        /* flex-direction: column !important; */
    }

    .card-tourist {
        height: 280px;
    }

    .text-center-res {
        text-align: center;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }
}

@media only screen and (max-width: 990px) {
    .padding-login {
        padding: 30px 10px;
    }

    .card-login {
        width: 70%;
    }

    .flex-card {
        width: 50%;
    }

    .card-activities {
        height: 400px;
        margin: 5px;
    }

    .card-activities>h6,
    .card-activities>.title {
        height: 63px;
        overflow: hidden;
    }

    .card-activities>.card-description>.text-line {
        display: none !important;
    }

    .text-line {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .padding-section {
        padding: 20px;
    }

    .flex-responsive {
        /* flex-direction: column; */
    }

    .card-tourist {
        height: 300px;
    }

    .text-center-res {
        text-align: center;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

    .img-qrcode {
        margin-bottom: 0;
        max-width: 450px;
    }

    .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }
}

@media only screen and (max-width: 830px) {
    .card-activities {
        height: 350px;
        margin: 10px;
    }

    .text-line {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .padding-section {
        padding: 20px;
    }

    .flex-responsive {
        /* flex-direction: row; */
    }

    .flex-column-ipad {
        /* flex-direction: row !important; */
    }

    .card-tourist {
        height: 300px;
    }

    .text-center-res {
        text-align: center;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

    .card-activities>.card-description {
        height: 86px;
    }
}

@media only screen and (max-width: 780px) {
    .card-tourist {
        height: 320px;
    }

    .title-all {
        width: 100%;
        margin-bottom: 5px;
        display: contents;
    }

    .card-login {
        width: 80%;
    }

    .w-news {
        width: 100%;
    }

    .flex-column-mobile {
        /* flex-direction: column; */
    }

    .mobile-none {
        display: none;
    }

    .flex-column-ipad {
        /* flex-direction: row !important; */
    }

    .card-activities {
        height: 400px;
        margin: 10px;
    }

    .text-line {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .padding-section {
        padding: 20px;
    }

    .flex-responsive {
        flex-direction: column;
    }

    .text-center-res {
        text-align: center;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

    .img-qrcode {
        margin-bottom: 0;
        max-width: 450px;
    }
}

@media only screen and (max-width: 720px) {
    h4 {
        font-size: 1rem !important;
    }

    .btn-menu>p.btn-menu-title.text-sm {
        font-size: 0.9rem !important;
        font-weight: 500 !important;
    }

    .btn-menu>p.btn-menu-title {
        font-size: 1rem !important;
        font-weight: 500 !important;
    }

    .display-block {
        display: block !important;
    }

    .justify-end {
        justify-content: end;
    }

    .container,
    .container-sm {
        max-width: 720px !important;
    }

    .padding-card {
        color: #0F66A4;
        border-right:
            2px solid #C9C9C9;
        padding-right: 20px;
    }

    .card-activities {
        height: 400px;
        margin: 20px;
    }

    .card-activities>.card-description {
        height: 198px;
    }

    .card-activities>.card-description>.text-line {
        display: block !important;
    }

    .w-yt {
        max-width: 700px;
    }

    .overflow-mobile {
        width: 100%;
        overflow: scroll;
    }

    .card-tourist {
        height: 320px;
    }
}

@media only screen and (max-width: 660px) {
    h5 {
        font-size: 1rem !important;
    }

    .fs-5 {
        font-size: 1rem !important;
    }

    .logo-ppnr {
        width: 50px !important;
    }

    .card-login {
        width: 90%;
    }

    .card-activities {
        height: 406px;
        margin: 10px;
    }

    .flex-card {
        width: 45%;
    }

    .overflow-mobile {
        width: 100%;
        overflow: scroll;
    }

    .card-tourist {
        height: 280px;
    }
}

@media only screen and (max-width: 570px) {
    .card-activities {
        height: auto;
    }

    .card-activities>.card-description {
        height: auto;
    }

    .card-tourist {
        /* height: 428px; */
        height: auto;
    }
}

@media only screen and (max-width: 500px) {

    .flex-tour {
        flex-direction: row;
    }

    .card-activities {
        height: auto;
        margin: 10px;
    }

    .card-activities>.card-description {
        height: auto;
    }

    .card-activities>.card-description>.text-line {
        display: block !important;
    }

    .flex-card {
        width: 100%;
    }

    .img-qrcode {
        margin-bottom: 0;
        max-width: 250px;
    }

    .card-tourist {
        height: auto;
        margin: 10px;
    }

    .w-yt {
        max-width: 500px;
    }

    .padding-section {
        padding: 20px !important;
    }

    .m-10-mobile {
        margin: 10px;
    }

    .overflow-mobile {
        width: 100%;
        overflow: scroll;
    }

    .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }
}

.content-area img {
    width: auto;
    max-width: 100%;
    margin: auto;
}

.attach {
    padding: 30px 50px;
}

.attach>li {
    list-style: circle;
}

a.text-decoration-none:hover {
    text-decoration: none !important;
}

.btn-login {
    padding: 0 !important;
}

.theme-1 section,
.theme-2 section {
    background-color: black !important;
}

.theme-1 section .text-title-2,
.theme-1 section .title-all a {
    color: #FFF !important;
}

.theme-1 .text-title,
.theme-1 .card-news,
.theme-1 .card-news-lastest,
.theme-1 .content-area,
.theme-1 i {
    color: #FFF !important;
}

.theme-2 section .text-title-2,
.theme-2 section .title-all a {
    color: #FDEE1C !important;
}

.theme-2 .text-title,
.theme-2 .card-news,
.theme-2 .card-news-lastest,
.theme-2 .content-area,
.theme-2 i {
    color: #FDEE1C !important;
}


.text-size-small {
    font-size: 0.9rem !important;
}

.text-size-small h3 {
    font-size: 1.65rem !important;
}

.text-size-small h4,
.text-size-small .btn-menu>p.btn-menu-title {
    font-size: 1.4rem !important;
}

.text-size-small h5 {
    font-size: 1.15rem !important;
}

.text-size-small h6,
.text-size-small .btn-menu>.btn-menu-detail {
    font-size: 0.9rem !important;
}

.text-size-small .fs-5 {
    font-size: 1.15rem !important;
}

.text-size-small .fs-6 {
    font-size: 0.9rem !important;
}

.text-size-small .nav-link {
    font-size: 15px !important;
}

.text-size-large {
    font-size: 1.1rem !important;
}

.text-size-large h3 {
    font-size: 1.85rem !important;
}

.text-size-large h4,
.text-size-large .btn-menu>p.btn-menu-title {
    font-size: 1.6rem !important;
}

.text-size-large h5 {
    font-size: 1.35rem;
}

.text-size-large h6,
.text-size-large .btn-menu>.btn-menu-detail {
    font-size: 1.1rem !important;
}

.text-size-large .fs-5 {
    font-size: 1.35rem !important;
}

.text-size-large .fs-6 {
    font-size: 1.1rem !important;
}

.text-size-large .nav-link {
    font-size: 17px !important;
}

.w-10 {
    width: 10% !important;
}

.w-15 {
    width: 15% !important;
}

.w-85 {
    width: 85% !important;
}

.w-40 {
    width: 40% !important;
}

.text-light {
    color: #FFF;
}

.memberProfile {
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 200px;
    margin: auto;
    margin-bottom: 5px;
    ;
}

.hide {
    display: none;
}

.text-primary {
    color: #0769dc !important;
}

ol {
    counter-reset: item
}

ol>li {
    display: block
}

ol>li:before {
    content: counters(item, ".") " ";
    counter-increment: item
}

a:hover {
    text-decoration: none !important;
}

/* bootstrap process step */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.step-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: var(--bs-secondary);
    transition: .4s;
}

.step-button[aria-expanded="true"] {
    width: 60px;
    height: 60px;
    background-color: var(--bs-primary);
    color: #fff;
}

.done {
    background-color: var(--bs-primary);
    color: #fff;
}

.step-item {
    z-index: 10;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.step-item .step-title {
    margin-top: 5px;
    font-size: 14px;
}

#progress {
    -webkit-appearance: none;
    position: absolute;
    width: 95%;
    z-index: 5;
    height: 10px;
    margin-left: 18px;
    margin-bottom: 18px;
}

#progress::-webkit-progress-value {
    background-color: var(--bs-primary);
    transition: .5s ease;
}

#progress::-webkit-progress-bar {
    background-color: var(--bs-secondary);

}

.logo-container {
    position: relative;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4d03f, #f39c12);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), inset 0 -8px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.logo-container img {
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 5%;
    left: 5%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .logo-container {
        width: 50px;
        height: 50px;
    }
}

.banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* ป้องกันรูปล้น */
    color: white;
}

.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* สำคัญมาก: ทำให้ภาพเต็มและไม่บิด */
    object-position: center;
    /* จัดตำแหน่งกลางภาพ */
    z-index: 0;
}


.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.banner-content {
    position: relative;
    text-align: center;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 198, 255, 0.4), rgba(6, 105, 220, 0.4));
    /* Gradient + โปร่งแสง */
    backdrop-filter: blur(8px);
    /* เบลอเพิ่มความลึก */
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.banner-content h1 {
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s ease forwards;
}

.banner-content h1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60%;
    height: 4px;
    border-radius: 2px;
    background: white;
}

/* Animation Effect */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-input-group {
    border: 2px solid transparent;
    /* border: 2px solid rgb(224, 224, 224); */
    border-radius: 12px;
    padding: 6px 12px;
    background-color: #f3f6f9;
    display: flex;
    align-items: center;
    transition: border 0.3s ease;
    font-size: 1rem;
}

.custom-input-group i {
    color: #6c757d;
    margin-right: 8px;
}

.custom-input-group input,
.custom-input-group select,
.custom-input-group textarea {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    padding: 2px 0;
    font-weight: 200;
    /* text-overflow: */
}

.custom-input-group input::placeholder {
    color: #363e4e;
    font-weight: 200 !important;
}

/* แสดงขอบสีม่วงเมื่อ input ได้ focus */
.custom-input-group:has(input:focus),
.custom-input-group:has(select:focus),
.custom-input-group:has(textarea:focus) {
    border-color: #0669DC;
}

select:invalid {
    color: #6c757d;
}

.custom-input-group input[readonly],
.custom-input-group select[readonly],
.custom-input-group textarea[readonly] {
    color: #8d9296;
    cursor: not-allowed;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .custom-input-group {
        border: 2px solid transparent;
        /* border: 2px solid rgb(224, 224, 224); */
        border-radius: 12px;
        padding: 6px 12px;
        background-color: #f3f6f9;
        display: flex;
        align-items: center;
        transition: border 0.3s ease;
        font-size: 1.5rem;
    }

    .custom-input-group input[readonly],
    .custom-input-group select[readonly],
    .custom-input-group textarea[readonly] {
        color: #8d9296;
        cursor: not-allowed;
        font-size: 1rem;
    }
}


.btn-toggle {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 6px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.btn-check:checked+.btn-toggle {
    border-color: #0669DC;
    background-color: #0669DC;
    color: white;
}

.btn-check+.btn-toggle:hover {
    border-color: #0669DC;
}

.custom-checkbox {
    transform: scale(2);
    margin: 40px 15px 0 0;
}

.card-hover {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
}

.card-hover:hover::before {
    animation: shine 1s ease forwards;
}

@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

.custom-submit-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #359532, #0968DB);
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    background: linear-gradient(135deg, #359532, #0968DB);
}

.back-home-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e6a236, #C27C0D);
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #e6a236, #C27C0D);
}

/* card list mobile */
.custom-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 5px;
    box-shadow: #000;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 800px;
}

.custom-card:hover {
    transform: translateY(-4px);
}

.custom-image-container {
    width: 40%;
    overflow: hidden;
    position: relative;
    /* -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%); */
    /* mask-image: linear-gradient(to right, black 60%, transparent 100%); */
}

.custom-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.custom-card:hover .custom-image-container img {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.custom-card-content {
    width: 60%;
    padding: 24px;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.custom-card-title {
    color: #3f80ff;
    letter-spacing: -0.5px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 6px;
}

.custom-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #3f80ff, #764ba2);
    border-radius: 2px;
}

.custom-card-description {
    font-size: 0.95rem;
    color: #000;
    line-height: 1.5;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 2rem 0;
    gap: 1rem;
    /* flex-wrap: nowrap; */
    /* overflow-x: auto; */
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 4px;
    background: #ddd;
    z-index: 0;
}

.timeline-item {
    position: relative;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1;
    width: auto;
    line-height: 1.8rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    /* background: #4CAF50; */
    border: 3px solid #fff;
    border-radius: 50%;
    /* box-shadow: 0 0 0 2px #4CAF50; */
    z-index: 2;
}

.timeline-item.done::before {
    background: #4CAF50;
    /* เขียว */
    box-shadow: 0 0 0 2px #4CAF50;
}

.timeline-item.pending::before {
    background: #aaa;
    /* เทา */
    box-shadow: 0 0 0 2px #aaa;
}

.timeline-item.in-progress::before {
    background: #ffc107;
    /* เหลือง */
    box-shadow: 0 0 0 2px #ffc107;
}


.timeline-title {
    margin-bottom: 0.5rem;
}

.timeline-date {
    margin-bottom: 0.5rem;
}

.timeline-summary-date {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #2c2c2c;
}

.timeline-circle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #4CAF50;
    color: white;
    font-weight: bold;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px #4CAF50;
}


@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 1rem;
    }

    .timeline-container::before {
        content: '';
        position: absolute;
        left: 25px;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        background: #ddd;
    }

    .timeline-item {
        width: 85%;
        margin-left: 2.5rem;
        text-align: left;
    }

    .timeline-item::before {
        top: 50%;
        left: -35px;
        transform: none;
    }

    .timeline-circle {
        top: 50%;
        left: -40px;
        transform: translateY(-50%);
    }

}

.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    /* บังคับให้พอดีกับ viewport จริง */
    max-width: 100%;
    background: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 9999;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.bottom-navbar .container {
    padding-left: 0;
    padding-right: 0;
}

.bottom-navbar .nav-item {
    flex: 1;
    text-align: center;
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.bottom-navbar .nav-item .icon {
    font-size: 22px;
}

.bottom-navbar .nav-item .text {
    font-size: 13px;
    margin-top: 4px;
}

.bottom-navbar .nav-item.active {
    color: #007bff;
    font-weight: bold;
}

.bottom-navbar .nav-item:hover {
    background: #f8f9fa;
    border-radius: 6px;
    transition: 0.2s ease;
}

@media (min-width: 768px) {
    .bottom-navbar {
        display: none;
    }
}

/* ========== GLOBAL ========== */

.timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
}

/* เส้น timeline ตรงกลาง (เปลี่ยนทิศตามขนาดจอ) */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    background: #ccc;
    z-index: 0;
}

@media (max-width: 767.98px) {
    .timeline-wrapper::before {
        width: 2px;
        top: 0;
        bottom: 0;
        left: calc(100px + 20px);
        /* 80px (เวลา) + 20px (ครึ่งของวงกลม) */
    }
}

@media (min-width: 768px) {
    .timeline-wrapper {
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
    }

    .timeline-wrapper::before {
        height: 2px;
        top: 28px;
        /* กึ่งกลางหมุด */
        left: 0;
        right: 0;
    }
}

/* ========== FLIGHT ROW ========== */

.flight-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

@media (min-width: 768px) {
    .flight-row {
        flex-direction: column;
        align-items: center;
        width: 180px;
    }
}

/* ========== TIME ========== */

.flight-time {
    width: 85px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #000;
}

@media (min-width: 768px) {
    .flight-time {
        text-align: center;
        width: auto;
        margin-bottom: 0.5rem;
    }
}

/* ========== CIRCLE ========== */

.flight-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    position: relative;
}

.flight-circle-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

/* ========== INFO BOX ========== */

.flight-info {
    flex: 1;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
    transition: box-shadow 0.2s ease;
    line-height: 1.5;
}

.flight-info:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .flight-info {
        width: 100%;
        max-width: 200px;
        text-align: center;
        border-left: none;
        border-top: 4px solid #007bff;
        margin-top: 0.5rem;
    }
}

.flight-info h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem !important;
    color: #007bff;
    font-weight: 600 !important;
}

.flight-info p {
    margin: 0.2rem 0;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #444;
}

.flight-duration {
    color: #888;
    font-weight: 400 !important;
    font-size: 1rem;
}

.flight-duration i {
    margin-right: 5px;
}

/* ========== NOTES ========== */

.note.ok {
    background: #e6f9e6;
    color: #2e7d32;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}


/* ========== FOOTER STYLES ========== */

/* CSS Variables for consistent styling */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-yellow: #fbbf24;
    --dark-blue: #1e293b;
    --light-bg: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Organization Info Section */
.org-info-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.org-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
}

.org-logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(15px);
    transition: var(--transition);
}

.org-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.org-logo i {
    font-size: 2.5rem;
    color: white;
}

.org-logo img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
}

.org-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.org-subtitle-main {
    font-size: 1.25rem;
    text-align: center;
    opacity: 0.9;
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    width: 24px;
    color: var(--accent-yellow);
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

/* Responsive Footer Styles */
@media (max-width: 768px) {
    .org-info-section {
        padding: 80px 0;
    }

    .org-title {
        font-size: 1.75rem;
    }

    .org-subtitle-main {
        font-size: 1.1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .org-info-section {
        padding: 60px 0;
    }

    .org-title {
        font-size: 1.5rem;
    }

    .org-subtitle-main {
        font-size: 1rem;
    }

    .contact-info {
        padding: 1rem;
        margin: 0 1rem;
    }

    .contact-item {
        font-size: 0.85rem;
    }
}