@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.solution-card, .card.recently {
    opacity: 0;
    /* ป้องกันการแสดงก่อน animation */
    animation: fadeInUp 1s ease-out forwards;
}

.highlighted-text {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.contact-us-nm {
    margin: auto;
    height: 101vh;
    background-image: linear-gradient(rgba(0, 123, 255, 0.5), rgba(0, 123, 255, 0.5)), url('/src/images/bg-contact-us.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nav44 {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(106.64deg, #024059 -18.19%, #000A41 105.04%);
    transition: background 0.3s ease-in-out;
    z-index: 1000;
    padding: 10px 20px;
}

.nav44.scrolled {
    background: rgba(18, 39, 75, 0.9);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.logo-container {
    text-align: center;
    height: auto;
}

.mx-auto {
    margin: auto;
    padding-top: 10px !important;
}

/* Search Bar (Desktop Only) */
.search-box {
    width: 250px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid white;
    background: transparent;
    color: white;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Buttons */
.btn-gold {
    background-color: gold;
    border: none;
    padding: 8px 15px;
    font-weight: bold;
    border-radius: 5px;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

/* Hamburger Button */
.hamburger {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(18, 39, 75);
    border-radius: 10px;
    padding: 15px;
    width: 250px;
}

.mobile-menu.active {
    display: block;
}

/* Mobile Menu Links */
.mobile-menu .nav-link {
    color: #0d6efd;
    padding: 10px;
    display: block;
    text-decoration: none;
}

.mobile-menu .btn-gold {
    background-color: gold;
    border: none;
    padding: 10px;
    width: 100%;
}

.nav-tabs .nav-link.active {
    background-color: #012D56;
    color: #CAAA79 !important;

}

.link-nounder {
    text-decoration: none;
    color: inherit;
}

.u44herobg {
    height: auto;
    background: linear-gradient(106.64deg, #024059 -18.19%, #000A41 105.04%);
    border-bottom-right-radius: 100px;
    border-bottom-left-radius: 100px;
}

@media (max-width: 768px) {
    .u44herobg {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        padding-top: 0px;
        height: auto;
    }

    .logo-container {
        height: auto !important;
    }

    .logo-container img {
        width: 100px;
    }

    .mx-5 {
        display: contents;
    }

    .mx-5 img {
        width: 50px;
    }
}

.u44productswiper-bg {

    height: 644px;
    padding-top: 50px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.116), rgba(0, 0, 0, 0.295)), url(/src/images/pexels-cookiecutter-1148820.png);

}

body {
    font-family: "Open Sans", sans-serif;
    font-family: "Noto Sans Thai", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.swiper-container {
    width: 100%;
    /* กำหนดให้เต็มหน้าจอ */
    max-width: 100%;
    /* ไม่เกิน 100% ของหน้าจอ */
    overflow: hidden;
    /* ป้องกันเนื้อหาหลุดออกนอกจอ */
    border-bottom-right-radius: 100px;
    border-bottom-left-radius: 100px;
}

.body {
    opacity: 0;
    transition: opacity 1s ease-in;
    /* ใช้ transition เพื่อสร้าง effect */
}


body {
    background: whitesmoke;
    border-bottom-right-radius: 100px;
    border-bottom-left-radius: 100px;
}

.vision-container {
    background-image: url('../images/bgabout.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 65vh;
}

.vision-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    /* เงาดำจาง */
}

/* เอฟเฟกต์เรืองแสง */
.glow-effect {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    /* แสงสีขาว */
}

.icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.icon-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.icon-foreground {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 37%;
    z-index: 2;
}

.btn-menu {
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.row-solution {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}

.card-img-fill {
    width: 100%;
    height: auto;
    /* เปลี่ยนจาก 100% เป็น auto */
    max-width: 100%;
    /* เพิ่ม max-width */
    object-fit: contain;
    /* เปลี่ยนจาก cover เป็น contain */
    display: block;
    /* เพิ่ม display: block เพื่อกำจัด whitespace */
}


.img-card {
    height: 200px;
    object-fit: cover;
}

.gallery-image {
    cursor: pointer;
    margin-bottom: 15px;
    border-radius: 5px;
    transition: transform 0.2s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.swiper-container img {
    width: 100%;
    height: auto;
}

.object-fit-cover {
    object-fit: cover;
    /* ให้ภาพเต็มพื้นที่ */
    height: 100%;
    /* ปรับความสูงให้เต็ม */
}

.search-container {
    position: relative;
    width: 300px;

}

.search-container input {
    width: 100%;
    padding: 10px 35px 10px 10px;
    /* เผื่อพื้นที่สำหรับไอคอน */
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 16px;
}

.btn:hover {
    transform: scale(1.1);
    /* ขยายขนาดของปุ่มเล็กน้อย */
    transition: transform 0.3s ease;
    /* เพิ่มการเปลี่ยนแปลงขนาดอย่างนุ่มนวล */
}

.card:hover {
    transform: scale(1.1);
    /* ขยายขนาดของปุ่มเล็กน้อย */
    transition: transform 0.3s ease;
    /* เพิ่มการเปลี่ยนแปลงขนาดอย่างนุ่มนวล */
}

.custom-rounded {
    border-radius: 40px;
    /* ปรับขอบให้มน */
}

.custom-rounded2 {
    border-radius: 50px;
    /* ปรับขอบให้มน */
}

.custom-rounded3 {
    border-radius: 15px;
    /* ปรับขอบให้มน */
}

.custom-rounded4 {
    border-radius: 10px;
    /* ปรับขอบให้มน */
}

.custom-rounded5 {
    border-radius: 100px;
    /* ปรับขอบให้มน */
}

.btn-rounded {
    border-radius: 70px;
}

.btn-gold {
    background-color: #CAAA79 !important;
    /* เปลี่ยนสีพื้นหลัง */
    color: white !important;
    /* เปลี่ยนสีข้อความ */
    border-color: #CAAA79 !important;
    /* เปลี่ยนสีเส้นขอบ */
}

.btn-gold:hover {
    background-color: rgba(202, 170, 121, 0.95) !important;
    /* สีเมื่อ hover */
    border-color: rgba(202, 170, 121, 0.95) !important;
    /* เส้นขอบเมื่อ hover */
}

.btn-default {
    background-color: #2947A9 !important;
    /* เปลี่ยนสีพื้นหลัง */
    color: white !important;
    /* เปลี่ยนสีข้อความ */
    border-color: #2947A9 !important;
    /* เปลี่ยนสีเส้นขอบ */
}

.btn-default:hover {
    background-color: rgba(41, 71, 169, 0.95) !important;
    /* สีเมื่อ hover */
    border-color: rgba(41, 71, 169, 0.95) !important;
    /* เส้นขอบเมื่อ hover */

}

.form-control {
    border: none;
    border-bottom: 2px solid #000;
    border-color: grey;
    border-radius: 0;
    /* ลบมุมโค้ง */
    box-shadow: none;
    /* ลบเงาของ input */
    background-color: transparent;
    /* ลบสีพื้นหลัง */
}

.form-control:focus {
    outline: none;
    border-bottom: 2px solid #012D56;
    /* เส้นใต้เมื่อโฟกัส */
    box-shadow: none;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* จำนวนบรรทัดที่ต้องการแสดง */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card {
    width: 19rem;
    height: 25rem;
    border-radius: 9px;
    margin-top: 80px;
    margin-bottom: 20px;
    position: relative;
    background: white;
    background: linear-gradient(160.76deg, #012D56 21.75%, #72004E 44.09%, #C3005B 59.17%, #CAAA79 89.09%);
}


.card-img-top-b {
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: -70px;
    /* ดึงรูปขึ้นไปครึ่งหนึ่งของความสูงรูป */
    left: 50%;
    transform: translateX(-50%);
}

.card-body-b {
    margin-top: 300px;
    text-align: center;
    padding: 20px;
}

.image-wrapper {
    position: absolute;
    left: 50%;
    padding-bottom: 295px;
}

/* ปรับแต่งเส้นขาวให้ชัดเจนขึ้น */
.white-line {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* เพิ่มเงาให้เส้นดูชัดขึ้น */
}

.search-container .icon {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
    pointer-events: none;
    /* ป้องกันไอคอนบังการคลิกใน Textbox */
}

.custom-card {
    width: 20rem;
    height: 20rem;
    /* กำหนดความสูงคงที่ */
    position: relative;
}

.custom-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* จัดให้เนื้อหาภายในกระจายเต็มพื้นที่ */
    height: calc(100% - 100px);
    /* ลดพื้นที่สำหรับรูปด้านบน */
}

.custom-card img {
    width: 60%;
    /* ปรับขนาดของรูปไอคอน */
}

.custom-card .icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    margin-top: 20px;
    /* เว้นระยะด้านบน */
}

.custom-card .btn {
    margin-top: auto;
}

.tag-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.tag {
    background-color: white;
    color: black;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 20px;
}

.card_drop {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.card_drop-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.card_drop-body {
    padding: 1rem;
}