@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&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');

* {
    font-family: 'Kanit', sans-serif;
    transition: all 0.3s;
    scroll-behavior: smooth;
}

.text-overflow {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.overflow-2 {
    -webkit-line-clamp: 2;
}

.overflow-3 {
    -webkit-line-clamp: 3;
}

.overflow-4 {
    -webkit-line-clamp: 4;
}

.overflow-5 {
    -webkit-line-clamp: 5;
}

iframe {
    margin-bottom: -5px;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

p {
    font-size: 22px;
}

#navbar li.nav-item {
    border-radius: 5px;
    margin-left: 10px;
    margin-right: 10px;
}

#navbar li.nav-item > a.nav-link {
    color: whitesmoke;
    font-size: 20px;
}

#navbar li.nav-item.active {
    background-color: #ffecd1;
}

#navbar li.nav-item.active > a.nav-link {
    color: #231F20;
}

select.form-select {
    color: gray;
}

img#BackToTop {
    position: fixed;
    right: 15px;
    bottom: 15px;
    opacity: 0.5;
    height: 50px;
    transition: all 0.3s;
}

img#BackToTop:hover {
    opacity: 1;
}

.table td.fit,
.table th.fit {
    white-space: nowrap;
    width: 1%;
}

th, td {
    vertical-align: middle !important;
}

a.navbar-brand > img {
    height: 35px;
}

.text-main {
    color: #EBCFA7;
}

.bg-main {
    background-color: #EBCFA7;
}

.btn.bg-main:hover {
    background-color: #231F20;
    color: whitesmoke;
    border: solid whitesmoke 1px;
}

.btn-light:hover {
    background-color: #EBCFA7;
    border: solid #ffe8c7 1px;
}

.bg-main.bg-btn-search:hover {
    background-color: #231F20;
}

.bg-main.bg-btn-search:hover > button, .bg-main.bg-btn-search:hover > button > i {
    color: white;
}

.btn-main {
    background-color: #EBCFA7;
    border: solid #ffe8c7 1px;
    color: #231F20;
}

.btn-main:hover {
    background-color: #231F20;
    border: solid white 1px;
    color: white;
}

.radius-25 {
    border-radius: 25px !important;
}

section.home-header {
    min-height: 100vh;
    background-image: url('./images/bg-white.jpg'), url('./images/object-bg-home.svg'), url('./banners/home-header-bg.jpg');
    background-repeat: no-repeat;
    background-size: 100% 10%, 30% auto, cover;
    background-position: bottom center, 15% 90%, center;
}

.intro-text h2 {
    line-height: 50px;
}

.intro-text a.btn {
    border-radius: 25px;
    font-weight: bold;
}

#carouselHomePlateIndicators .carousel-indicators, #carouselHomePlateIndicators .carousel-control-prev, #carouselHomePlateIndicators .carousel-control-next {
    position: relative;
}

#carouselHomePlateIndicators .carousel-control-prev, #carouselHomePlateIndicators .carousel-control-next {
    opacity: 1;
    color: rgb(212, 212, 212);
    margin-left: 15px;
    margin-right: 15px;
}

#carouselHomePlateIndicators .carousel-control-prev:hover, #carouselHomePlateIndicators .carousel-control-next:hover {
    opacity: 1;
    color: gray;
}

#carouselHomePlateIndicators .carousel-indicators [data-bs-target] {
    width: 20px;
    height: 20px;
    opacity: 1;
    background-color: rgb(240, 240, 240);
    border: solid rgb(212, 212, 212) 1px;
    border-radius: 50%;
    margin-top: 25px;
}

#carouselHomePlateIndicators .carousel-indicators .active {
    background-color: gray;
}

.form-search-plate {
    position: absolute;
    bottom: 7%;
    width: 100%;
    margin: 0;
}

.form-search-plate > .row {
    --bs-gutter-x: 0
}

form.horo-search {
    background-color: #231F20;
    border-radius: 25px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 25px 120px;
}

.horo-home {
    background-image: url('./images/bg-horo-home.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 50px;
    padding-bottom: 150px;
}

.horo-home h5 {
    text-indent: 60px;
}

.table-horo {
    margin-top: -150px;
    font-size: 25px;
}

.table-horo tbody {
    border-top: none !important;
}

.table-horo th, .table-horo td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.table-horo > thead > tr {
    background-color: #EBCFA7;
    border-bottom: 0;
}

.table-horo > tbody > tr:first-child > td {
    border-top: 0;
}

.table-horo > tbody > tr.row-striped {
    background-color: #ffecd1;
}

.table-horo thead tr th {
    border-bottom: 0;
}

.table-horo thead tr th:last-child, .table-horo tbody tr td:last-child {
    border-left-color: white;
    border-left-width: 3px;
}

.table-horo thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

.table-horo thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

.table-horo tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
    border-bottom: 0;
}

.table-horo tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
    border-bottom: 0;
}

.table-horo tbody tr:last-child td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.table-horo-2 {
    font-size: 25px;
}

.table-horo-2 th {
    padding-top: 7px;
    padding-bottom: 7px;
}

.table-horo td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.table-horo-2 > thead > tr, .table-horo-2 > tfoot > tr {
    background-color: #EBCFA7;
    border-bottom: 0;
}

.table-horo-2 > tbody > tr:first-child > td {
    border-top: 0;
}

.table-horo-2 > tbody > tr.row-striped {
    background-color: #ffecd1;
}

.table-horo-2 thead tr th:last-child, .table-horo-2 tbody tr td:last-child, .table-horo-2 tfoot tr th:last-child {
    border-left-color: white;
    border-left-width: 3px;
}

.table-horo-2 thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
    border-bottom: 0;
}

.table-horo-2 thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
    border-bottom: 0;
}

.table-horo-2 tbody, .table-horo-2 tfoot {
    border-top: none !important;
}

.table-horo-2 tfoot tr:first-child th:first-child {
    border-bottom-left-radius: 10px;
    border-bottom: 0;
}

.table-horo-2 tfoot tr:first-child th:last-child {
    border-bottom-right-radius: 10px;
    border-bottom: 0;
}

footer {
    border-top: solid #EBCFA7 10px;
    background-color: #231F20;
    color: white;
    font-size: 24px;
}

footer #articles ul {
    margin-left: 30px;
}

.about-header {
    background-image: url('./banners/home-header-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.about-details {
    padding-top: 50px;
}

.about-details h4 {
    text-indent: 60px;
}

.about-icon img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 25px;
}

#carouselAboutControls .carousel-indicators, #carouselAboutControls .carousel-control-prev, #carouselAboutControls .carousel-control-next {
    position: relative;
}

#carouselAboutControls .carousel-control-prev, #carouselAboutControls .carousel-control-next {
    opacity: 1;
    color: rgb(212, 212, 212);
    margin-left: 15px;
    margin-right: 15px;
}

#carouselAboutControls .carousel-control-prev:hover, #carouselAboutControls .carousel-control-next:hover {
    opacity: 1;
    color: gray;
}

section.products-header {
    min-height: 100vh;
    background-image: url('./images/bg-white.jpg'), url('./images/object-bg-home.svg'), url('./banners/products-header-bg.png');
    background-repeat: no-repeat;
    background-size: 100% 10%, 30% auto, cover;
    background-position: bottom center, 15% 90%, center;
    position: relative;
}

section.products-header.mobile-active {
    min-height: auto;
}

section.products-search {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
}

.horo-result div.plate {
    width: auto;
    height: auto;
    border-radius: 8px;
}

.horo-result div.plate > p.plate-title {
    line-height: normal;
}

div.plate {
    text-align: center;
    background-size: 100% 100%;
    width: 135px;
    height: 60px;
    padding: 12px 0;
    border-radius: 5px;
}

div.plate > p.plate-title {
    font-size: 18px;
    margin-bottom: 0;
    line-height: 1;
}

div.plate > p.plate-province {
    font-size: 15px;
}

div.plate-bike {
    text-align: center;
    background-size: 100% 100%;
    width: 135px;
    height: 90px;
    padding: 12px 0;
    border-radius: 5px;
}

div.plate-bike > p.plate-title {
    font-size: 25px;
    margin-bottom: 0;
    line-height: 1;
}

div.plate-bike > p.plate-province {
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1;
}

div.plate-bike > p.plate-last {
    font-size: 25px;
    line-height: 1;
}

section.lead-form {
    background-image: url('./images/bg-lead-form.png');
    background-size: cover;
    background-position: center;
}

section.product-details-header {
    background-image: url('./images/bg-product-details.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.product-details {
    border: solid #EBCFA7 1px;
    border-radius: 15px;
}

.product-details div.plate {
    margin: 0;
    padding-bottom: 25px;
}

section.horoscope-header {
    background-image: url('./images/bg-horo.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

section.horoscope-header-details {
    background-image: url('./images/bg-horo.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

section.horoscope {
    background-image: url('./images/bg-horo-object.svg');
    background-repeat: no-repeat;
    background-size: 90% auto;
    background-position: right top;
}

.horo-result .plate > p.plate-title {
    font-size: 70px;
}

.horo-result .plate > p.plate-province {
    font-size: 30px;
}

.horo-result h3 {
    font-size: 70px;
}

.review-header {
    background-image: url('./images/bg-articles.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.articles-header {
    background-image: url('./images/bg-articles.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.contact-header {
    background-image: url('./images/bg-articles.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.contact-text h5 {
    text-indent: 60px;
    line-height: 35px;
}

@media only screen and (max-width: 767px) {
    .form-search-plate {
        position: static;
        bottom: auto;
        width: 100%;
    }

    .fa-5x {
        font-size: 2em;
    }

    form.horo-search {
        background-color: #231F20;
        border-radius: 25px;
        margin-top: 15px;
        margin-bottom: 15px;
        padding: 25px;
    }

    .table-horo, .table-horo-2 {
        font-size: 18px;
    }

    .navbar-toggler {
        background-color: white;
    }

    .horo-result .plate > p.plate-title {
        font-size: 60px;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .table-plate {
        font-size: 12px;
    }
}