/*** Spinner Start ***/
body{
    background-color: #edf7e1;
}


#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

#back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1, h2, h3, .h1, .h2, .h3 {
    font-weight: 400 !important;
    font-family: sans-serif !important;
}

h4, h5, h6, .h4, .h5, .h6 {
    font-weight: 600 !important;
    font-family: 'Open Sans', sans-serif !important;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    /* padding-top: 6rem; */
    padding-bottom: 6rem;
}

.wow,
.animated {
    animation-duration: 2s !important;
}

/*** Button Start ***/
.btn.btn-primary {
    border: 0;
}

.btn.btn-primary:hover {
    background: #004d00 !important; /* Darker green */
    color: #ffffff !important;
}

.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 38px;
    height: 38px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
/*** Button End ***/

/*** Navbar Start ***/
.nav-bar {
    background: #6f9a37; /* Light green */
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.navbar .navbar-nav .nav-link {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 17px;
    transition: .5s;
}
.h-100 {
    height: 135% !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #004d00; /* Darker green */
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
    
    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        opacity: 1;
    }
}

.dropdown .dropdown-menu a:hover {
    background: #004d00; /* Darker green */
    color: #ffffff;
}

#searchModal .modal-content {
    background-color: rgba(255, 255, 255, .95);
}
/*** Navbar End ***/

/*** Events Start ***/
.event .tab-class .nav-item a.active {
    background: #004d00 !important; /* Darker green */
}

.event .event-img .event-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 100, 0, 0.7); /* Green overlay */
    border-radius: 8px;
    transition: 0.5s;
    opacity: 0;
    z-index: 1;
}
.event-img img {
    width: 100%;
    height: auto; 
}


.event .event-img:hover .event-overlay {
    opacity: 1;
}
/*** Events End ***/

/*** service start ***/
.service .service-item {
    position: relative;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    bottom: auto;
    background: #004d00; /* Darker green */
    border-radius: 8px;
    transition: 1s;
}

.service-item:hover .service-content::after {
    height: 100%;
    opacity: 1;
}

.service-item .service-content-icon {
    position: relative;
    z-index: 2;
}

.service-item .service-content-icon i,
.service-item .service-content-icon p {
    transition: 1s;
}

.service-item:hover .service-content-icon i {
    color: #003300 !important; /* Dark green */
}

.service-item:hover .service-content-icon p {
    color: #ffffff;
}

.service-item:hover .service-content-icon a.btn-primary {
    background: #ffffff;
    color: #003300;
}

.service-item .service-content-icon a.btn-primary {
    transition: 1s !important;
}
/*** Services End ***/

/*** Menu Start ***/
.menu .nav-item a.active {
    background: #004d00 !important; /* Darker green */
}

.menu .menu-item .border-bottom {
    border-bottom-style: dashed !important;
}
/*** Menu End ***/

/*** Youtube Video start ***/
.video {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(rgba(0, 128, 0, 0.1), rgba(0, 128, 0, 0.1)), url(../img/fact.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #004d00; /* Darker green */
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid #003300; /* Dark green */
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}
/*** Youtube Video End ***/

/*** Blog Start ***/
.blog-item {
    position: relative;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.blog-item:hover {
    border: 1px solid #004d00; /* Darker green */
}

.blog-item h5 {
    font-weight: 600;
}

.blog-item p {
    margin-bottom: 15px;
}
/*** Blog End ***/

/*** Testimonial Start ***/
.testimonial-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.testimonial-item:hover {
    border: 1px solid #004d00; /* Darker green */
}

.testimonial-item p {
    font-size: 16px;
}

.testimonial-item .img-fluid {
    margin: 0 auto 20px;
    display: block;
    border-radius: 50%;
}
/*** Testimonial End ***/

/*** Footer Start ***/
.footer {
    background: #004d00; /* Darker green */
    color: #ffffff;
}

.footer .footer-links a {
    color: #ffffff;
    transition: .5s;
}

.footer .footer-links a:hover {
    color: #c0e0c0; /* Light green */
}

.footer .footer-newsletter input {
    background: #ffffff;
    color: #004d00;
}
/*** Footer End ***/

/*** Others Start ***/
.accordion .card {
    border: 1px solid rgba(0, 0, 0, .125);
}

.accordion .card-header {
    background: #e6f9e6; /* Light green */
}

.accordion .card-body {
    background: #ffffff;
}

.accordion .card-header .btn {
    padding: 0;
    font-weight: 600;
    text-align: left;
    color: #004d00; /* Darker green */
}

.accordion .card-header .btn:hover {
    color: #003300; /* Dark green */
}

.accordion .card-header .btn:focus {
    box-shadow: none;
}
@media (max-width: 768px) {
    .container-fluid {
        padding: 20px 0;
    }
    .content-overlay {
        padding: 20px;
        text-align: center;
    }
    h1.display-1 {
        font-size: 2.5rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .background-image {
        background-position: top center;
        min-height: 400px; /* Ensures the background covers properly on small screens */
    }
    h1.display-1 {
        font-size: 2rem;
    }
    .content-overlay {
        padding: 10px;
        padding-left: 0;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Specific adjustments for 412px width (Samsung, etc.) */
@media (max-width: 412px) {
    .container-fluid {
        padding: 15px 0;
    }
    .background-image {
        min-height: 450px; /* Ensure background image fits */
    }
    h1.display-1 {
        font-size: 1.8rem; /* Decrease font size */
    }
    .btn {
        padding: 7px 15px;
        font-size: 0.85rem;
    }
}
@media (max-width: 412px) {
    video {
        width: 100%; /* You can also set this to a specific width like 400px */
        height: auto; /* To maintain aspect ratio */
    }
}

/*** Others End ***/
