/********** Template CSS **********/
:root {
    --primary: #C19A6B;
    --secondary: #525368;
    --light: #fff8e7;
    --dark: #C19A6B;
    --light-hover: #ebcb81;
    --gray: #959595;
}

/*** Single Page Start ***/
.pagination, .lover-pagination, .perview-pagination, .news-pagination {
    display: inline-block;
}
.pagination a.disabled, .lover-pagination a.disabled, .perview-pagination a.disabled, .news-pagination a.disabled  {
    pointer-events: none;
    color: #aaa;
}
.cart-perview-item.disable {
    background-color: unset;
    cursor: unset;
}
.pagination a, .lover-pagination a, .perview-pagination a, .news-pagination a {
    color: var(--bs-dark);
    padding: 10px 16px;
    text-decoration: none;
    transition: 0.5s;
    border: 1px solid rgb(251, 207, 174) !important;
    margin: 0 4px;
}

.pagination a.active , .lover-pagination a.active, .perview-pagination a.active, .news-pagination a.active{
    background-color: var(--light-hover);
    color: var(--bs-light);
    border: 1px solid var(--light-hover) !important;
}

.pagination a:hover:not(.active), .lover-pagination a:hover:not(.active), .perview-pagination a:hover:not(.active), .news-pagination a:hover:not(.active) {
    background-color: var(--light-hover);
}
.tooltip-container {
    height: 100%;
    position: relative;
    display: inline-block;
    cursor: pointer;
}
/* The tooltip itself */
.tooltip-text {
    visibility: hidden;
    max-width: 500px;
    width: 100%;
    background-color: var(--light);
    color: var(--secondary);
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    bottom: 50%; /* Position above the <p> tag */
    left: 120%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show tooltip when hovering */
.tooltip-container:hover .tooltip-text{
    visibility: visible;
    opacity: 1;
}

.news-date {
    color: var(--gray);
}
.news-toc a {
    color: rgb(3, 3, 3);
}
.tags {
    padding-left: 0.8rem;
    color: var(--gray);
}
.tags:hover {
    color: var(--primary);
}
.toc li {
    list-style: none;
}
.tag {
    font-weight: 600;
}
.news-toc a:hover {
    color: var(--dark);
}

.facebook-url {
    cursor: pointer;
    text-decoration: underline;
    color: rgb(56, 56, 247);
}

a:hover {
    cursor: pointer;
    color: rgb(56, 56, 247);
}
.color-black {
    color: black !important;
}

.hover-cursor:hover {
    cursor: pointer !important;
}
.gallery-detail-carousel .carousel-control-prev,
.gallery-detail-carousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; /* Adjust the button width if needed */
    height: 50px; /* Adjust the button height if needed */
    z-index: 1; /* Ensure it stays on top */
    background: none; /* Remove any default background */
}

.gallery-detail-carousel .carousel-control-prev {
    left: -60px; /* Move the button further to the left */
}

.gallery-detail-carousel .carousel-control-next {
    right: -60px; /* Move the button further to the right */
}

.gallery-detail-carousel .carousel-control-prev-icon,
.gallery-detail-carousel .carousel-control-next-icon {
    width: 30px; /* Customize the size of the icons */
    height: 30px;
    background-size: 100%; /* Ensure the icons fit properly */
}
.gdm {
    flex-wrap: wrap;
}

.gdim {
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.inner-img img {
    max-width: 80vw;
    max-height: 80vh;
    transition: unset !important;
}

.inner-img {
    justify-content: center;
    align-items: center;
    transition: unset !important;
}

.background-blur {
    filter: blur(5px);
}

.dropdown-menu .child-dropdown {
    display: none !important;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    top: 0 !important;
    left: 100% !important;
    margin-top: -1px;
}

/* Positioning for the level 2 dropdown */
.dropdown-menu .dropdown-menu {
    
}

/* Ensure the level 2 dropdown appears on hover */
.dropdown-submenu:hover>.dropdown-menu {
    display: block !important;
}

/* Styling to make submenu items consistent */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}
.signature {
    float: right;
    font-style: italic;
    color: #555;
    margin-top: 20px;
}
.logo-box {
    height: 70px; /* Height of the container */
    width: 250px; /* Width of the container */
    overflow: hidden; /* Ensure no overflow outside the container */
}

.logo {
    display: flex;
    align-items: center; /* Vertically centers the content */
    justify-content: center; /* Horizontally centers the content */
    height: 100%; /* Full height of the container */
}

.logo-lg img {
    height: 65%; /* Make the image height fill the container */
    width: auto; /* Keep the aspect ratio of the image */
    max-width: 65%; /* Ensure the image does not exceed the container's width */
    object-fit: contain; /* Ensure the image fits within the container without cropping */
}

.sticky {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 50px; 
}

.pl-2 {
    padding-left: 1rem;
}

.related-news a {
    color: var(--secondary);
}

.border-right {
    border-right: solid 1px var(--secondary);
}

.border-left {
    border-left: solid 1px var(--secondary);
}

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

.h-banner {
    height: 500px !important;
}
.ml-2 {
    margin-left: 1rem;
}
.w-20 {
    width: 20% !important;
}
.text-secondary {
    color: var(--secondary);;
}

.gallery-detail-img {
    border-radius: 25px;
    transition: transform 0.3s ease-in-out;
}

.testimonial-img {
    border-radius: 25px;
    transition: transform 0.3s ease-in-out;
}

.gallery-name:hover {
    cursor: pointer;
}

.gallery-img:hover {
    cursor: pointer;
}

.gallery-detail-img:hover {
    transform: scale(1.2); /* Zooms in 20% */
}
.contact-info {
    background-color: var(--light);
    border-radius: 5px;
    border: 2px solid var(--secondary) !important;
}
.nav-light-color {
    background-color: var(--light) !important;
}
.icon-color {
    background-color: var(--light);
    border: 1px solid var(--light);
}
.d-ruby {
    display: ruby;
}
.contact-info:hover {
    background-color: var(--light) !important;
    cursor: pointer;
}

.news-content img {
    width: 50% !important;
}

.price-content img {
    width: 50% !important;
}

.gallery-content img {
    width: 50% !important;
}

.gallery-category-content img {
    width: 50% !important;
}

.price-info {
    padding: 40px 30px 20px;
    border-radius: 5px;
    border: 2px solid var(--secondary);
    line-height: 30px;
    font-size: 18px;
}

.list-style-none {
    list-style: none;
}

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

.messager-icon {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 280px;
    z-index: 99;
}

.instagram-icon {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 180px;
    z-index: 99;
}

.phone-icon {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 130px;
    z-index: 99;
}

.facebook-icon {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 230px;
    z-index: 99;
}

.tiktok-icon {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 80px;
    z-index: 99;
}

.float-icon:hover {
    cursor: pointer;
    background-color: var(--light-hover);
    border-color: var(--light-hover);
}

.center-text {
    text-align: center;
}
.footer-color {
    background-color: var(--dark);
}

.dark-background-color {
    background-color: var(--dark) !important;
    border-color: var(--dark) !important;
}
.btn-light:hover {
    color: #000;
    background-color: #ebcb81 !important;
    border-color: #ebcb81 !important;
}
.light-background-color {
    background-color: var(--light) !important;
    border-color: var(--light) !important;
}

.secondary-color {
    color: var(--secondary) !important;
}

.light-color {
    color: var(--light) !important;

}
h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** 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;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--secondary);
}

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

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

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

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


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--light);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

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

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

    .d-sm-block-custom {
        display: inline-block !important;
    }
}

@media (min-width: 992px) {
    .about-us-card {
        margin: 1rem 10rem;
    }

    .about-us-card-body {
        padding: 1rem 3rem;
    }

    .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;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}
.top-101 {
    transition: .5s;
    top: -100px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.home-slide {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
}

#header-carousel .carousel-item img{
    max-height: 2048px !important;
}

.my-price p {
    font-size: calc(1.275rem + .3vw);
}

.page-header {
    background: linear-gradient(rgba(15, 66, 41, .6), rgba(15, 66, 41, .6)), url(../img/carousel-1.jpg) 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;
    }
}

/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(255, 248, 231, .6)
}


/*** 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-text {
    height: 400px;
    width: 100%;
}
.gallery-detail-image {
    width: 100%;
}
.service-text p {
    padding-top: 200px;
    color: var(--light);
}

.service-text .news-h4 {
    padding-top: 150px !important;
    color: var(--primary);
}

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

.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(255, 248, 231, .6);
}

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

.service-item:hover .service-text h4 {
    color: var(--secondary);
}

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

.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(255, 248, 231, .6);
    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;
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: var(--light);
    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);
}

.truncate-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 300px; /* Set the desired width */
}

.single-line-ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Giới hạn văn bản tối đa 2 dòng */
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
}

/*** Testimonial ***/
.testimonial-carousel:hover {
    cursor: pointer;
}

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

.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 ***/
.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: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

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

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

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}
.logo-text {
    text-align: center;
}

@media (max-width: 768px) {
    .logo-box .logo-text {
        text-align: unset;
    } 
    .display-5 {
        font-size: 1.4rem !important;
    }
    .my-price p {
        font-size: 1rem;
    }
    .my-price .p-5 {
        padding: unset !important;
    }
    .my-price .service-text {
        height: 10px;
    }
    .my-price .service-text p{
        padding-top: 100px;
    }
    .my-price {
        aspect-ratio: 1 / 1;
    }
    .mt-5-custom {
        margin-top: 0px !important;
    }
    .mb-5-custom {
        margin-bottom: 0px !important;
    }
    .home-slide {
        background-size: contain;
        height: 100%;
    }
    .facts {
        /* background-size: contain !important;
        background-repeat: no-repeat !important;
        height: 100%; */
    }
    #header-carousel .carousel-item {
        position: relative;
        min-height: 215px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .gallery-detail-image {
        width: 50%;
    }
}