/********** Template CSS **********/

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3,
.display-4, .display-5, .display-6 {
  font-family: 'Bai Jamjuree', sans-serif;
}
html, body, .tooltip, .popover {
  font-family: 'Bai Jamjuree', sans-serif
}
code, kbd, pre, samp, .text-monospace {
  font-family: 'Bai Jamjuree', monospace
}
button, input, optgroup, select, textarea {
  font-family: inherit
}

:root {
    --primary: #BA0018;
    --secondary: #A07E3F;
    --light: #E8F5E9;
    --dark: #372C2E;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}



/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** topbar ***/
c1 {
    float: left;
    right: 25px;
    font-size: 15px;
    letter-spacing: 2px;
    padding-right: 10px;
    background-color: #A98845;
    font-weight: 600;
    align-items: right;
    color: white;

}
@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}


/*** Button ***/
.btn2 {
    transition: .5s;
    font-weight: 400;
    background-color: #A07E3F;
    border-radius: 5px;
   font-size: 16px;
   font-weight: 700;
   color: #FFFFFF;
   letter-spacing: 5px;
   padding-top: 15px;
   padding-bottom:15px;
   padding-left: 20px;
   padding-right: 20px;

}

.btn2 a {
    font-size: 16px;
    background-color: #A07E3F;
    text-shadow: 3px 2px rgb(4, 6, 7);
    color: #FFFFFF;
}


.btn2 a:hover {
    font-size: 16px;
    background-color: #bd0202;
    text-shadow: 3px 2px rgb(90, 222, 245);
    color: #e40303;
    
}

.btn-square {
    width: 38px;
    height: 38px;
    color: #e40303;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
    color: #e40303;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    color: #e40303;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    color: #e40303;
}


/*** Navbar ***/

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
    font-family: 'Bai Jamjuree', sans-serif
 
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 70px;
    font-family: 'Bai Jamjuree', sans-serif
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    letter-spacing: 0.1dvh;
    position: relative;
    font-family: 'Bai Jamjuree', sans-serif

    
}

.navbar .navbar-nav .nav-link.active {
    color: var(--secondary);
    font-family: 'Bai Jamjuree', sans-serif

}
.navbar .navbar-nav .nav-link:hover{
    color: #A98845;   
    font-family: 'Bai Jamjuree', sans-serif
    
}
.navbar .dropdown-toggle ::after {
    border: none;
    content: "\f107";
    font-family: 'Bai Jamjuree', sans-serif

}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 0px solid #EEEEEE;

}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;

    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}
}

#b1 {
    color: #FFFFFF;
}



/*ปุ่มเลือก ภาษา*/
 .nav1 {
    background: #BA0018;
    font-weight: 600;
    display: flex;
    font-size: 13px;
    color: #A07E3F;
    float: left;
    align-items: center;
    flex-wrap: nowrap;
    margin: 4px;
  }
  .nav1 a {

    font-size: 14px;
    color: #A07E3F;
    font-weight: 700;
    position: relative;
    list-style: none;
    transition-duration: 0.5s;

    
  }
  
 .nav1 a:hover {
    cursor: pointer;
    font-weight: 700;
    color:#ffffff;
    text-decoration: none;

  }

/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.466);
    z-index: 1;
    color: #ffffff;
}
.carousel-caption h1{
    font-family: inherit;
    font-size: 40px;
    font-weight: 600;
    text-shadow: 3px 2px rgba(0, 0, 0, 0.651);
    line-height: 1.4;
    letter-spacing: 2px;
    color: #ffffff;
}
.carousel-caption h3{
    font-family: inherit;
    font-size: 30px;
    font-weight: 600;
    text-shadow: 3px 2px rgba(0, 0, 0, 0.685);
    line-height: 1.4;
    letter-spacing: 2px;
    color: #ffffff;
    
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(66, 15, 15, 0.6), rgba(66, 15, 15, 0.6)), center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}

/* about*/

/*** Facts & Quote ***/
.head-img1{
    image-rendering: auto;
	background-position: relative;
	background-size: cover;
	background-origin: content-box;
	height: 433px;
	background-position: center bottom;
	border-image: fill 0
    linear-gradient(rgba(0, 0, 0, 0.76),#08080805); /* gradient here */
}
.facts,
.quote {
    background: rgba(12, 9, 1, 0.315);
}
.f1{
    font-size: medium;
    font-weight: 600;
    color: #EEEEEE;
}
.display-t1 {
    font-size: 17px;
    text-align: left;
  }
.h5 {
      line-height: 1.5;
      color: #A07E3F;
}
.h4 {
    line-height: 1.5;
    color: #A07E3F;
    font-size: 18px;
}

#bg5 {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: url(img2/bg3.jpg);
}
.page-content img {
    max-width: 100%;
    height: auto !important;
    margin-bottom: 25px;
}



/*** Service ***/

.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item:hover .service-text {
    background: rgba(233, 192, 105, 0.418);
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}


/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--dark);
    border-color: var(--dark);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(206, 0, 0, 0.411);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}
.f22 {
    font-size: 15px;
    font-weight: 600;
    color: #A07E3F;
}
.f21 {
    font-size: 15px;
    font-weight: 600;
    color: #a30202;
}
.f20 {
    font-size: 15px;
    font-weight: 600;
    color: #777777;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item img {
    width: 400px;
    height: 400px; 
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.V2{
    text-align: justify;
    font-size: 22px;
    color: #A07E3F;
}
.v1{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 700;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #690103;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}

