:root {
    --tmpblue: #01579b;
    --tmpbluea: #01589b8e;
    --tmpblue1: #004e89;
    --tmpblue2: #50b6b4;
    --tmpblue3: #50b6b4a4;

    --tmpcolor1: #000080;
    --tmpcolor2: #38593e;
    --tmpcolor3: #588157;
    --tmpcolor4: #a1b089;
    --tmpcolor5: #e9e6f289;
    --tmpcolor6: #e6eaf28f;
    --tmpcolor7: #e4e6ee94;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding: 2px;
    color: var(--tmpcolor1);
}

.row {
    width: 100%;
    margin-left: 0 !important;
}

.align-item-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-brand {
    color: var(--tmpcolor1);
}

.nav-link {
    border-radius: 3px;
    color: var(--tmpcolor1);
    border-bottom: 4px solid var(--tmpcolor5);
}

.nav-link.active {
    border-color: white;
    background-color: var(--tmpcolor1);
    color: white !important;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    border-color: white;
    color: white;
    background-color: var(--tmpcolor1);
    transition: 0.4s;
}


.topnav {
    background-color: var(--tmpblue);
    /* opacity: 0.97; */
    display: flex;
    position: relative;
    top: 0;
    z-index: 9999;
}

.top-navbar-nav {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 0 !important;
    margin-top: 0;
}

.top-nav-link {
    margin-top: 0 !important;
    color: white;
    text-decoration: none;
    padding: 5px;
    border-radius: 10px;
    transition: 0.1s;
}

.top-navbar-hide {
    transition: opacity 0.1s ease;
    opacity: 1;
}


.top-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--tmpcolor1);
}

li {
    list-style: none;
}

nav {
    /* position: relative; */
    color: var(--tmpcolor1);
    padding: 5px;
    background-color: white;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    position: sticky !important;

    top: 0;
    z-index: 9999;
}

.card {
    height: 100% !important;
    padding: 3px;
    /* background: linear-gradient(100deg, var(--tmpcolor6), var(--tmpcolor7), var(--tmpcolor5), var(--tmpcolor6), var(--tmpcolor7)); */
}

.servive-card-img {
    border-radius: 50%;
    height: 100px;
    width: 100px;
    border: #004e8978 solid 1px;
    margin-bottom: 15px;
    background-color: var(--tmpblue);
}

.navbar-toggler {
    position: absolute;
    top: 5px;
    right: 5px;
}

.form-select {
    background-color: rgba(255, 255, 255, 0.67);
}

.bi-search {
    background-color: white;
    border-radius: 5px;
    padding: 5px;
    color: gray;
    font-size: 20px;
}

.nav-logo-sec-hide1 {
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    height: 30px;
    padding: 0 35px 0 0;
    display: none;
}

.nav-logo-sec-hide {
    margin-top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    height: 30px;
    padding: 0 35px 0 0;
}

.img-logo {
    height: 100px;
    width: auto;

}

.lang {
    font-size: x-small;
    display: inline-block;
    border: var(--tmpblue) solid 1px;
}

.lang:hover {
    border-color: white;
    color: var(--tmpblue);
}

.lang.active {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--tmpblue);
    border: white solid 1px;
}

.hero-slide {
    margin: 0;
    padding: 0;
    position: relative;
}

.card-title-product {
    color: var(--tmpblue);

}

.card-text-product {
    color: white;
}

.more-link {
    font-size: x-small;
    color: var(--tmpblue);

}


.btn-primary {
    background-color: var(--tmpcolor1);
    border-color: white;
    border-radius: 30px;
}

.search-input {
    min-width: 100px !important;
    margin-right: 5px !important;
    font-size: medium;
    border: none;
    border-radius: 3px;
}

.res-h {
    color: var(--tmpcolor1);
}

a>p {
    color: black;
}

.card {
    border: none;

}


.res-tel {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto;
    margin-left: 5%;
    width: 90%;
    border: red solid 8px;
    border-radius: 70px;
    text-decoration: none;
    box-shadow: 0 8px 7px rgba(0, 0, 0, 0.2);
}

.res-tel:hover {
    background-color: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);

}

.box-shadow-tmp {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.sticky-bottom {
    display: none;
}

.ul-link {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    border-radius: 15px;
    background-color: var(--tmpblue);
    padding: 5px;
    margin-top: -11px;
}

.li-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: white solid 1px;
    border-radius: 50%;
}

.swiper-slide-hero {
    height: 600px !important;
}

.img-png-hero-r {
    position: absolute;
    bottom: -10px;
    right: -100px;
    height: 93%
}

.img-png-hero-l {
    position: absolute;
    top: 0;
    left: -80px;
    width: 93%;
}


.img-png-hero-r1 {
    position: absolute;
    top: 20px;
    right: 0;
    height: 90%
}

.img-png-hero-l1 {
    position: absolute;
    top: 0;
    left: 0;
    height: 110%;
}

.p-box-detail {
    margin-top: 17%;
    width: 80%;
    margin-left: 10%;
    flex-direction: column;
    align-items: center;
    display: flex;
    font-size: x-large;
}

.visit-box-detail {
    font-size: x-large;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visit-box-detail-p {
    width: 80%;
}

.col12-p {
    font-size: x-large;
}

.page-text-index {
    margin-left: 4% !important;
    text-underline-offset: 5px;
    margin-bottom: -10px;
}

.service-name {
    font-size: x-large;
}

.visit-hero {
    position: relative;
    width: 100%;
}

.visit-hero img {
    width: 100%;
    height: auto;
}

.call-btn {
    position: absolute;
    left: -6%;
    bottom: 2%;
    z-index: 999;
    border-radius: 150px;
    width: 51%;
    height: auto;

}

.call-btn:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.review-name {
    color: white;
    margin-top: 10px;
    margin-left: 10px;
}

.review-img-tmp {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.card-review{
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 1280px) {
    .img-png-hero-r1 {
        height: 80%
    }

    .p-box-detail {
        margin-top: 17%;
        width: 80%;
        margin-left: 10%;
        flex-direction: column;
        align-items: center;
        display: flex;
        font-size: medium;
        padding: 0;
    }
}

@media screen and (max-width: 1024px) {
    .dashboard-right {
        top: 2%;
    }

    .res-p {
        font-size: xx-small;
    }

    .nav-logo-sm-hide {
        display: none;
    }

    .swiper-slide-hero {
        height: 480px !important;
    }

    .img-png-hero-l {
        left: -30px;
    }

    .img-png-hero-r1 {
        height: 70%;
        top: 15%;
    }

    .p-box-detail {
        margin-top: 15%;
        width: 90%;
        margin-left: 5%;
    }

}

@media screen and (max-width: 930px) {
    .img-logo {
        display: block;
    }

    .navbar-brand {
        font-size: xx-large;
        display: inline;
    }

    .navbar-toggler {
        margin-top: 8px;
    }

    .navbar-expand-lg {
        margin-top: 0 !important;
    }

    .nav-link {
        width: 300px;
        padding-left: 60px;
    }

    .topnav {
        display: none !important;
    }

    .top-nav-item {
        display: flex;
        justify-content: center;
    }

    .top-nav-link {
        display: flex;
        width: 90%;
        justify-content: center;
        font-size: small !important;
    }

    .top-navbar-nav {
        padding: 0 !important;
    }

    .nav-item {
        display: flex;
        justify-content: flex-end;
        flex-direction: row;
    }

    .dashboard-left {
        background-color: rgba(0, 0, 0, 0.371);
        border-radius: 30px;
        width: 90%;
        top: 1%;
        left: 5%;
    }

    .dashboard-right {
        top: 16%;
        width: 86%;
        right: 7%;
    }

    .col-12 h2 {
        font-size: large !important;
    }

    .col-12 p {
        font-size: small !important;
    }

    .hero-slide-img {
        object-fit: cover;
    }

    .nav-logo-sec {
        display: flex;
        justify-content: flex-start;
        margin-top: 0;
    }

    .card-title-product {
        font-size: small;
    }

    .card-text-product {
        font-size: x-small;
    }

    .product-btn {
        width: 100%;
        justify-content: center;
        font-size: x-small !important;
    }

    .res-h {
        font-size: x-small !important;
    }

    .res-p {
        font-size: xx-small !important;
    }

    .res-tel {
        font-size: medium !important;
    }

    .top-navbar-hide {
        display: none;
    }

    .map-vis {
        display: flex;
        justify-content: center;
    }

    .sticky-bottom {
        display: flex;

    }

    .map-hide {
        margin-top: 10px;
        padding: 10px;
    }

    .swiper-slide-hero {
        height: 380px !important;
    }

    .nav-logo-sec-hide1 {
        display: flex;
    }

    .img-png-hero-r {
        position: absolute;
        bottom: -20px;
        right: -50px;
        height: 93%
    }



    .p-box-detail {
        margin-top: 0;
    }

    .col12-p {
        font-size: medium;
    }

}

@media (max-width: 768px) {
    .call-btn h2 {
        font-size: 20px;
        /* ปรับขนาด font ให้เล็กลงในหน้าจอเล็ก */
    }

    .call-btn i {
        font-size: 18px;
        /* ปรับขนาดไอคอนให้เล็กลงในหน้าจอเล็ก */
    }

    .visit-box-detail-p {
        width: 100%;
        font-size: medium;
    }
}

@media screen and (max-width: 640px) {
    .map-hide {
        display: none !important;
    }

    .top-nav-link {
        display: flex;
        font-size: xx-small !important;
        border: white solid 1px;
        margin-bottom: 3px;
    }

    .top-nav-item {
        padding: 0;
    }

    .dashboard-left {
        top: 5%;
        width: 96%;
        left: 2%;
    }

    .dashboard-left h2 {
        font-size: medium !important;
    }

    .dashboard-left p {
        font-size: small !important;
    }

    .dashboard-right {
        top: 20%;
        width: 100%;
        right: 0;
    }

    .siren1 {
        width: 40px !important;
        height: 40px !important;
        padding: 10px;
    }

    .res-tel {
        border: red solid 4px;
    }

    .img-visita {
        margin-top: 0 !important;
    }

    .swiper-slide-hero {
        height: 280px !important;
    }

    .servive-card-img {
        border-radius: 50%;
        height: 80px;
        width: 80px;
    }

    .img-png-hero-r {
        position: absolute;
        bottom: -10px;
        right: -20px;
        height: 93%
    }

    .img-png-hero-l {
        position: absolute;
        top: 0;
        left: 0;
        width: 93%;
    }

    .img-logo {
        height: 60px;
        width: auto;
    }

    .p-box-detail {
        font-size: medium;
        padding: 0 !important;
    }

    .col12-p {
        font-size: medium;
    }

    .our-service-box {
        margin-top: -50px !important;
    }

    .service-name {
        font-size: medium;
    }        
}