/* Heading Area */

/* Heading Area */

/*** Navbar ***/

:root {
    --primary: #86b817;
    --secondary: #fe8800;
    --light: #f5f5f5;
    --dark: #14141f;
}

.navbar-light .collapse .navbar-nav .nav-item .nav-link {
    font-family: "Nunito", sans-serif;
    position: relative;
    margin-right: 25px;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 150;
    outline: none;
    transition: color 0.5s, font-weight 0.5s;
}

/* Style when nav-item is active */

.navbar-light .collapse .navbar-nav .nav-item.active .nav-link {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Hover effect for nav-links */

.navbar-light .collapse .navbar-nav .nav-item:hover .nav-link {
    color: var(--primary) !important;
    /* Đổi màu khi hover */
}

/* Style for sticky nav (optional if needed) */

.sticky-top.navbar-light .collapse .navbar-nav .nav-link {
    padding: 5px 0;
    color: var(--dark) !important;
    /* Màu sắc khi navbar ở trạng thái sticky */
}

.navbar-light .collapse .navbar-brand img {
    max-height: 60px;
    transition: 0.5s;
}

.sticky-top.navbar-light .collapse .navbar-brand img {
    max-height: 45px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: #ffffff;
    }
    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #dddddd;
    }
    .navbar-light .navbar-collapse .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-collapse .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }
    .navbar-light .navbar-collapse .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, 0.1);
        z-index: 999;
    }
    .sticky-top.navbar-light {
        position: fixed;
        background: #ffffff;
    }
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: 0.5s;
    }
    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }
    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

.mobile-nav img {
    height: 40px;
}

/* Home Slider */

.slider .item {
    position: relative;
    height: 540px;
    transition: all 0.5s ease;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.slider .item .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: #454545;
}

.slider .text {
    position: relative;
    z-index: 99999;
    height: 100%;
}

.slider .text .container,
.slider .text .row {
    height: 100%;
}

.slider .text-wrapper {
    height: 100%;
    position: relative;
    display: table;
}

.slider .text-content {
    display: table-cell;
    vertical-align: middle;
    height: auto;
}

.slider .text h2 {
    font-size: 56px;
    color: #fff;
    font-weight: 700;
    margin: 0;
    margin-bottom: 15px;
}

.slider .text p {
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.7;
}

.slide-carousel.owl-carousel .owl-nav .owl-prev,
.slide-carousel.owl-carousel .owl-nav .owl-next {
    position: absolute;
    text-align: center;
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 45px;
    font-size: 18px;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
}

.slide-carousel.owl-carousel .owl-nav .owl-prev {
    top: 47%;
    left: 0;
    margin-left: 40px;
}

.slide-carousel.owl-carousel .owl-nav .owl-next {
    top: 47%;
    right: 0;
    margin-right: 40px;
}

.slide-carousel.owl-carousel .owl-nav .owl-prev:hover,
.slide-carousel.owl-carousel .owl-nav .owl-next:hover {
    color: #229b5d;
    border: 2px solid #229b5d;
}

@media (max-width: 1310px) {
    .slider .text {
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media (max-width: 767px) {
    .slider .item {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

@media (max-width: 560px) {
    .slider .item {
        height: auto;
    }
    .slider .text-wrapper {
        display: block;
    }
}

/*** Testimonial ***/

.container .testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

.container .testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

@media (min-width: 768px) {
    .container .testimonial-carousel::before,
    .container .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .container .testimonial-carousel::before,
    .container .testimonial-carousel::after {
        width: 300px;
    }
}

.container .testimonial-carousel .owl-item .testimonial-item,
.container .testimonial-carousel .owl-item.center .testimonial-item * {
    transition: 0.5s;
}

.container .testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.container .testimonial-carousel .owl-item.center .testimonial-item * {
    color: #ffffff !important;
}

.container .testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.container .testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #cccccc;
    border-radius: 15px;
    transition: 0.5s;
}

.container .testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.footer .container {
    width: calc(100vw - 20px);
    max-width: 100%;
    padding-left: 15px;
}

.main_btn_readmore {
    padding: 0px 25px;
    background: transparent;
    z-index: 222;
    display: inline-block;
    text-align: center;
    color: #222222;
    font-size: 12px;
    font-weight: 500;
    line-height: 48px;
    border: 1px solid #229b5d;
    border-radius: 0px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    cursor: pointer;
}

.main_btn_readmore img {
    position: absolute;
    width: auto !important;
    top: 50%;
    right: -30px;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.main_btn_readmore:hover {
    background: #229b5d;
    color: #222222;
    border: 1px solid #229b5d;
}

.main_btn_readmore:hover img {
    right: -38px;
}

