@import url('https://fonts.googleapis.com/css2?family=Playwrite+IT+Moderna:wght@100..400&family=Playwrite+MX:wght@100..400&family=Playwrite+ZA:wght@100..400&display=swap');

/* Cover Section */
.cover {
    height: 600px; /* Set fixed height */
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
    border: none;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
    background-color: rgba(54, 94, 50, 0.4);
}

.overlay-content-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row; /* Align items horizontally by default */
}

.overlay-logo {
    margin-right: 20px; /* Space between logo and text */
}

.overlay-logo img {
    width: 280px; /* Enlarge logo image */
    height: auto;
}

.overlay-text {
    color: #fff; /* Text color */
    text-align: center; /* Align text to the center */
}

.overlay-text h2 {
    font-size: 3rem; /* Default font size */
    margin-bottom: 10px; /* Adjust spacing */
    font-weight: bolder;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Add text shadow */
    overflow: hidden; /* Ensures the text is hidden while typing */
    white-space: nowrap; /* Prevents the text from wrapping */
    border-right: 0.15em solid; /* Creates the typing cursor effect */
    animation: typing 4s steps(40, end), blink 0.75s step-end 4s, removeCursor 4s 4s forwards; /* Typing and blinking cursor animation */
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes removeCursor {
    to {
        border-right: none;
    }
}

.overlay-text p {
    font-size: 2rem; /* Default font size */
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-family: "Playwrite IT Moderna", cursive;
    animation: formalAnimation 5s ease-in-out infinite;
}

@keyframes formalAnimation {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.overlay-text a {
    padding: 10px 30px;
    background-color: #365e32;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.overlay-text a:hover {
    background-color: #379237;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.diagonal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 3;
    /* Ensure the diagonal overlay is above the green overlay */
}

/* Media Queries for Responsiveness */
@media (max-width: 1240px) {
    .overlay-content-inner {
        flex-direction: column; /* Stack items vertically on smaller screens */
        text-align: center; /* Center-align text */
    }

    .overlay-logo {
        margin-right: 0;
        margin-bottom: 20px; /* Space between logo and text */
    }

    .overlay-logo img {
        width: 200px; /* Adjust logo size on smaller screens */
    }

    .overlay-text {
        order: 2; /* Move text below logo on smaller screens */
    }

    .overlay-text h2 {
        font-size: 2rem; /* Adjust font size for smaller screens */
    }

    .overlay-text p {
        font-size: 1.8rem; /* Adjust font size for smaller screens */
    }
}

@media (max-width: 768px) {
    .overlay-logo img {
        width: 150px; /* Further adjust logo size on smaller screens */
    }

    .overlay-text h2 {
        font-size: 1.3rem; /* Adjust font size for tablets */
    }

    .overlay-text p {
        font-size: 1.2rem; /* Adjust font size for tablets */
    }
}

@media (max-width: 576px) {
    .overlay-logo img {
        width: 120px; /* Further adjust logo size on smaller screens */
    }

    .overlay-content-inner {
        padding: 15px; /* Add padding for better spacing */
    }

    .overlay-logo {
        order: 1; /* Move logo above text */
        margin-bottom: 20px; /* Add space between logo and text */
    }

    .overlay-logo img {
        width: 100px; /* Further adjust logo size on smaller screens */
    }

    .overlay-text {
        order: 2; /* Move text below logo */
    }

    .overlay-text h2 {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
    }

    .overlay-text p {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }
}

body.dark-mode .diagonal-overlay {
    background-color: #0C0C0C;
}

.carousel .header{
    margin-top: 80px;
    margin-bottom:  30px;
    font-size:  4rem;
    font-weight: 1000;
}

.carousel-container {
    margin: 0 200px; /* Top and bottom margin 50px, left and right margin 100px */
    box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 8px 24px,
    rgba(17, 17, 26, 0.1) 0px 16px 48px;
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

.carousel-inner {
    position: relative;
    height: 500px; /* Set carousel height to 500px */
    overflow: hidden;
    border-radius: 10px;
}

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(54, 94, 50, 0.3); /* Semi-transparent black background */
    z-index: 1; /* Ensure it is above the image */
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 0; /* Ensure it is below the overlay */
}

    .carousel-caption {
        position: absolute;
        bottom: 20%; /* Adjust distance from bottom */
        left: 0;
        width: 100%;
        text-align: center;
        padding: 0 20px; /* Adjust padding as needed */
    }

    .carousel-caption h1 {
        color: white; /* Text color */
        font-size: 2.5rem; /* Font size */
        margin-bottom: 10px; /* Bottom margin for spacing */
    }

.carousel-caption h1 a {
    display: inline-block;
    padding: 10px 30px; /* Button padding */
    background-color: rgba(161, 221, 112, 0.3); 
    color: black;
    text-decoration: none; /* Remove underline */
    border-radius: 50px; /* Rounded corners */
    border:  4px solid #365E32;
    font-size: 2rem; /* Inherit font size from parent */
    transition: all 0.3s ease; /* Smooth background color transition */
    font-weight: bolder;
}

.carousel-caption h1 a:hover {
    border:  4px solid #294B29;
    background-color: #50623A; /* Darker green on hover */
    transform: scale(1.1);
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .carousel-caption h1 a {
        padding: 8px 18px; /* Adjust padding for smaller screens */
        font-size: 0.9rem; /* Adjust font size */
    }
}

@media (max-width: 992px) {
    .carousel-caption h1 a {
        padding: 7px 16px; /* Adjust padding for smaller screens */
        font-size: 0.9rem; /* Adjust font size */
    }
     .carousel .header{
        font-size: 3rem;
    }  
}

@media (max-width: 768px) {
    .carousel-caption h1 a {
        padding: 6px 14px; /* Adjust padding for smaller screens */
        font-size: 0.8rem; /* Adjust font size */
    }
     .carousel .header{
        font-size: 2.5rem;
    }  

    .carousel-caption{
        bottom: 30%;
    }

}

@media (max-width: 576px) {
    .carousel-caption h1 a {
        padding: 5px 12px; /* Adjust padding for smaller screens */
        font-size: 0.7rem; /* Adjust font size */
    }
     .carousel .header{
        font-size: 2rem;
    }

}


/* Media Queries for Carousel Responsiveness */
@media (max-width: 1200px) {
    .carousel-container {
        margin: 50px 80px; /* Adjusted margin for medium screens */
    }
}

@media (max-width: 992px) {
    .carousel-container {
        margin: 50px 50px; /* Adjusted margin for smaller screens */
    }
}

@media (max-width: 768px) {
    .carousel-container {
        margin: 50px 20px; /* Adjusted margin for tablets and mobiles */
    }

    .carousel-inner {
        height: auto; /* Auto height for smaller screens */
        max-height: 500px; /* Maximum height for consistency */
    }
}

@media (max-width: 576px) {
    .carousel-container {
        margin: 30px 10px; /* Adjusted margin for smaller mobile screens */
    }

    .carousel-inner {
        max-height: 400px; /* Maximum height for very small screens */
    }
}

/*TESTIMONIALS */
.container .header{
    margin-top: 80px;
    font-size:  4rem;
    font-weight: 1000;
}

@media (max-width: 992px) {
     .container .header{
        font-size: 3rem;
    }  
}

@media (max-width: 768px) {
    .containerl .header{
        font-size: 2.5rem;
    }  

}

@media (max-width: 576px) {
    .container .header{
        font-size: 2rem;
    }

}


.shadow-effect {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #ECECEC;
    box-shadow: 0 19px 38px rgba(0,0,0,0.10), 0 15px 12px rgba(0,0,0,0.02);
}

#customers-testimonials .shadow-effect p {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 17px 0;
    font-weight: normal;
}

.shadow-effect h5{
    font-weight: bold;
}

.testimonial-name {
    margin: -17px auto 0;
    display: table;
    width: auto;
    background-color: #365e32;
    padding: 9px 35px;
    border-radius: 5px;
    text-align: center;
    color: #fff;
    box-shadow: 0 9px 18px rgba(0,0,0,0.12), 0 5px 7px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.testimonial-name:hover {
    background-color: #379237;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.testimonial-name:hover{
    text-decoration: none;
    color: #fff;
}

#customers-testimonials .item {
    text-align: center;
    padding: 50px;
    opacity: .2;
    transform: scale3d(0.8, 0.8, 1);
    transition: all 0.3s ease-in-out;
}

#customers-testimonials .owl-item.active.center .item {
    opacity: 1;
    transform: scale3d(1.0, 1.0, 1);
}

.owl-carousel .owl-item img {
    transform-style: preserve-3d;
    max-width: 90px;
    margin: 0 auto 17px;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    border: 4px solid #000;
}

/* Owl Carousel Dots */
#customers-testimonials.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot span {
    background: #C3FF93; /* Change dot color */
    display: inline-block;
    height: 10px;
    width: 10px;
    border-radius: 50%; /* Make dots circle */
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot.active span,
#customers-testimonials.owl-carousel .owl-dots .owl-dot:hover span {
    background: #1A4D2E; /* Change active/hover dot color */
}

body.dark-mode .shadow-effect {
    background: #000;
    border: none;
}
