/********** Template CSS **********/
:root {
    --primary: #65B530;
    --secondary: #9B9B9B;
    --light: #F5F5F5;
    --dark: #161616;
}

.fw-medium {
    font-weight: 500 !important;
}

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

.fw-black {
    font-weight: 900 !important;
}

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

.back-to-top1 {
    position: fixed;
    display: none;
    left: 45px;
    bottom: 45px;
    z-index: 99;
}

.back-to-top2 {
    position: fixed;
    display: none;
    left: 45px;
    bottom: 100px;
    z-index: 99;
    background-color: blue;
}

/*** 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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.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 {
    height: 75px;
    margin-top: 18px;
}

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

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

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

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

.navbar .btn:hover {
    color: #FFFFFF !important;
    background: var(--primary) !important;
}


/*** Header ***/

.header-carousel .owl-carousel-item {
    position: relative;
    height: 600px; /* You can adjust this value */
    overflow: hidden;
}

/* Universal image styling (not just mobile) */
.header-carousel .owl-carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-carousel .carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(22, 22, 22, .7);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        height: 500px; /* smaller height on mobile */
    }
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

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

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(22, 22, 22, .7), rgba(22, 22, 22, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

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


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-item {
    border-color: rgba(9, 141, 41, 0.3) !important;
}

.service-item .btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 38px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

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


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


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

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

.portfolio-inner {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.portfolio-inner img {
    transition: .5s;
}

.portfolio-inner:hover img {
    transform: scale(1.1);
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.portfolio-inner:hover .portfolio-text {
    bottom: 0;
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 22, 22, .7);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    opacity: 0;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    border-radius: 60px;
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    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(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.service-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.brand-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: #f9f9f9;
    padding: 20px 0;
}

.brand-track {
    display: flex;
    width: calc(250px * 10);
    /* Adjust width for total logos * width */
    animation: scroll 30s linear infinite;
}

.brand-logo {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

.brand-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s ease;
}

.brand-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.box {
    max-width: 100%;
    width: 400px;
    font-family: sans-serif;
}

.box h2 {
    color: #fff;
    background: #65B530;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: 700;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: 0;
}

.box ul {
    background: #fff;
    padding: 0;
    margin: 0;
}

.box ul li {
    list-style: none;
    padding: 12px 15px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, background 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px;
    border-radius: 6px;
}

.box ul:hover li {
    opacity: 0.6;
}

.box ul li:hover {
    transform: scale(1.05);
    background: #65B530;
    color: #fff;
    opacity: 1;
    z-index: 10;
    position: relative;
}

.box ul li span {
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    background: #65B530;
    color: #fff;
    display: inline-block;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}

.box ul li:hover span {
    background: #fff;
    color: #65B530;
}

.container-fluid {
    padding: 20px;
}

.image-section {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.image-section img {
    width: 100%;
    display: block;
    padding: 20px;
}

.image-text {
    padding: 20px;
}

.image-text h1 {
    color: #65B530;
    margin-bottom: 5px;
}

.image-text p {
    color: #6c757d;
    margin-bottom: 10px;
}

.contact-section {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.contact-section h3 {
    color: #212529;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.9rem;
    color: #495057;
}

.lead-background {
    background: linear-gradient(to right, #faf8f8, #fafafa);
    /* Light golden gradient */
    color: #000000 !important;
    /* Adjust text color for contrast */
    padding: 10px 20px;
    /* Adjust padding for height and some internal spacing */
    border: 2px solid #65B530;
    /* Solid blue outer border */
    position: relative;
    /* For pseudo-elements or clip-path positioning */
    clip-path: polygon(10px 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 10px 100%, 0% 50%);
    /* Create angled ends */
    border-radius: 5px;
    /* Optional: Add a slight rounding to the inner corners */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    /* Optional: Add a subtle shadow for depth */
    font-size: 20px;
    font-weight: bold;
}

/* Optional: To enhance the beveled effect using pseudo-elements */
.lead-background::before,
.lead-background::after {
    content: '';
    position: absolute;
    background-color: #65B530;
    opacity: 0.7;
    /* Adjust for desired bevel intensity */
}

.lead-background::before {
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: calc(100% - 4px);
    clip-path: polygon(8px 0%, calc(100% - 18px) 0%, calc(100% - 20px) 2px, 10px 2px);
}

.lead-background::after {
    bottom: 2px;
    left: 2px;
    right: 2px;
    top: calc(4px);
    clip-path: polygon(10px calc(100% - 2px), calc(100% - 20px) calc(100% - 2px), calc(100% - 18px) 100%, 8px 100%);
}


.image-container img {
    width: 100%;
    /* Or any fixed width */
    height: 100%;
    /* Or the same fixed height */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 5px;
}

.recent-posts {
    font-family: sans-serif;
    padding: 20px;
}

.recent-posts h2 {
    color: #65B530;
    /* Blue color for the title */
    margin-bottom: 20px;
    border-bottom: 2px solid #65B530;
    padding-bottom: 10px;
}

.post-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.post-item img {
    width: 80px;
    /* Adjust image width as needed */
    height: 60px;
    /* Adjust image height as needed */
    object-fit: cover;
    margin-right: 15px;
    border-radius: 5px;
    /* Optional: Rounded corners for images */
}

.post-content {
    flex-grow: 1;
}

.post-title {
    font-size: 1.1rem;
    color: #333;
}

.post-title:hover {
    color: #65B530;
    text-decoration: underline;

}

.post-date {
    font-size: 0.9rem;
    color: #777;
}

.video-section {
    background: linear-gradient(135deg, #9defa6, #c3efb8);
    /* Light blue gradient background */
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* To contain potential background elements */
}

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    /* Adjust opacity for the desired effect */
    pointer-events: none;
    /* Allows clicks to pass through */
}

.security-camera {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 150px;
    /* Adjust size as needed */
    transform: rotate(-15deg);
}

.security-guard-shirt {
    position: absolute;
    bottom: 10%;
    right: 10%;
    font-size: 6em;
    /* Adjust text size */
    font-weight: bold;
    opacity: 0.4;
    transform: rotate(10deg);
}

.play-button-container {
    position: relative;
    margin-bottom: 20px;
}

.play-button {
    background-color: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: blink 1.5s infinite alternate;
    /* Blinking animation */
}

.play-icon {
    border-left: 20px solid #007bff;
    /* Blue play icon */
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
}

.video-text-heading {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.video-description {
    font-size: 1em;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

@keyframes blink {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.7;
    }
}