/********** Template CSS **********/
:root {
    --primary: #8A9A5B;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #D6A74F;
}
  .modal-body img {
  height: 350px; /* adjust height as needed */
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
    color: #D6A74F;
}

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(--light);
}

.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(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #6DCEDC;
}

.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;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(44, 110, 145, 0.6);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: #6DCEDC;
    border: 10px solid #6DCEDC;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(44, 110, 145, 0.6), rgba(44, 110, 145, 0.6)), url(../img/companion\ planting.webp) 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);
}
.aquaponics {
    background: linear-gradient(rgba(44, 110, 145, 0.6), rgba(44, 110, 145, 0.6)), url(../img/aquaponics.2.webp) center center no-repeat !important;
    background-size: cover;
    width: 100%;
}
.aquaponics .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}
.aquaponics .breadcrumb-item,
.aquaponics .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}
.garden {
    background: linear-gradient(rgba(44, 110, 145, 0.6), rgba(44, 110, 145, 0.6)), url(../img/Forest\ or\ Garden\ Path1.webp) center center no-repeat !important;
    background-size: cover;
    width: 100%;
}
.garden .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}
.garden .breadcrumb-item,
.garden .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(44, 110, 145, 0.6);
}
.form-control:focus{
box-shadow: 0 0 0 0.25rem rgba(54, 135, 144, 0.4) !important;
}

/*** 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-item .service-text {
     background: rgba(44, 110, 145, 0.6);
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    color: #FFFFFF;
    transition: .3s;
}

.service-item:hover .service-text {
     background: rgba(112, 164, 193, 0.6);
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}
.service-item .service-text h4 {
    color: #FFFFFF;
}
.service-item:hover .service-text h4 {
    color: #FFFFFF;
}


.service-item:hover .service-text p {
    color: var(--light);
}

.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(44, 110, 145, 0.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(--dark);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: #2E7481;
    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: #FFFFFF;
    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);
}

.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 .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: #8A9A5B;
    background: #EAF8FA;
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: #6DCEDC;
    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: #FEF2EF;
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}



.custom-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  min-width: 280px;
  text-align: center;
  border-left: 6px solid #6DCEDC;
}

.custom-popup.success {
  border-left-color: #8A9A5B;
}

.custom-popup.error {
  border-left-color: #dc3545;
}

.popup-content {
  font-size: 16px;
  font-weight: 500;
}

.custom-popup.show {
  display: block;
  animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Default for small screens — no shift */
.carousel-item img {
  width: 100%;
  height: auto; /* Allow image to flow naturally */
  object-fit: cover;
  object-position: center;
}

/* Apply custom styling only on larger screens */
@media (min-width: 992px) {
  .carousel-item img {
    height: 90vh;
    object-fit: cover;
    object-position: 0 50%; /* or try 0 60%, etc. */
  }
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
   top: 70px; /* Push down to sit below navbar */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 90%;
  width: 700px;
  padding: 20px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-weight: bold;
}
.close-btn:hover {
  color: red;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 0px; /* move it left to avoid overlapping */
  z-index: 9999; /* make sure it's above everything */
}

.d-none {
  display: none;
}
.modal-content {
  background-color: var(--light);
  color: var(--dark);
  border: none;
}
.modal-title {
  color: var(--primary);
  font-weight: bold;
}

.modal-dialog {
  margin: 0 auto !important; /* force equal left/right space */
}
.modal.show .modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 95%; /* adapt to screen size */
  max-width: 700px;
}
@media (max-width: 576px) {
  .modal-content {
    width: 100% !important;  /* full width on phones */
    max-width: 100% !important; /* with tiny side spacing */
  }
}
/* Very small phones (portrait) */
@media (max-width: 575.98px) {
  .top-bar{
    display: none;
}
}

/* Phones up to small tablets */
@media (max-width: 767.98px) {
  .top-bar{
    display: none;
}
}
      @media (max-width: 767.98px) {
  .modal-body.row {
    flex-direction: column; /* stack items neatly */
  }

  .modal-body .col-md-6 {
    width: 100%; /* full width for both sides */
  }

  .modal-body img {
    max-height: 300px; 
    object-fit: cover;
    width: 100%;
  }

  .modal-body h4 {
    margin-top: 1rem;
    font-size: 1.2rem;
  }

  .modal-body p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .modal-body .d-flex {
    flex-direction: column;
    gap: 10px;
  }

  .modal-body .d-flex .btn {
    width: 100%; /* buttons span full width on phones */
  }
  .modal-body {
  max-height: 70vh; /* 70% of viewport height */
  overflow-y: auto;
}

}

