/********** Template CSS **********/
:root {
    --primary: #34AD54;
    --secondary: #FF9933;
    --light: #F6FFF2;
    --dark: #263A4F;
}

.btn {
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
    font-weight: 700;
    transition: .5s;
}

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

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 0;
    z-index: 99;
}

.navbar-dark .navbar-nav .nav-link {
    padding: 17px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background: var(--secondary);
    color: #fff;
}

.btn.btn-primary.btn-square.rounded-circle {
    padding: 5px;
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px;
    }

    .carousel-inner {
        min-height: 500px;
        background-color: #34AD54;
    }

    .carousel-caption {
        margin-top: 100%;
    }

    #header-carousel .carousel-caption .w-75 {
        width: 100% !important;
    }

    #header-carousel .carousel-caption .caption-text .text-start {
        max-width: 100% !important;
    }

    #header-carousel {
        margin-bottom: 40px;
    }

    .carousel-caption h3 {
        font-size: 24px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 32px;
        font-weight: 600 !important;
    }
}

@media (max-width: 576px) {
    .carousel-inner {
        min-height: 500px;
        background-color: #34AD54;
    }

    .carousel-caption {
        margin-top: 100%;
    }

    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h3 {
        font-size: 22px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 28px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.bg-hero {
    background: url(../img/about.png) top right no-repeat;
    background-size: cover;
}

@media (min-width: 991.98px) {
    .banner {
        position: relative;
        margin-top: -70px;
        z-index: 1;
    }
}

.bg-vegetable {
    background: linear-gradient(rgba(52, 173, 84, .2), rgba(52, 173, 84, .2)), url(../img/farmer.png) bottom right no-repeat;
    background-size: contain;
}

.bg-vegetable h3,
.bg-vegetable p {
    max-width: 375px;
}

.bg-fruit {
    background: linear-gradient(rgba(255, 153, 51, .2), rgba(255, 153, 51, .2)), url(../img/vendor.png) bottom right no-repeat;
    background-size: contain;
}

.bg-fruit h3,
.bg-fruit p {
    max-width: 375px;
}

.service-item {
    box-shadow: 0 0 45px #EDEDED;
    transition: .5s;
}

.about i,
.service-item i {
    background-image: linear-gradient(var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: .5s;
}

.service-item:hover {
    color: var(--light);
    background: var(--primary) !important;
}

.service-item:hover i {
    background-image: linear-gradient(var(--light), var(--secondary));
}

.service-item:hover h4 {
    transition: .5s;
}

.service-item:hover h4 {
    color: var(--light);
}

.product-item {
    padding: 0 30px 30px 30px;
}

.product-item .btn-action {
    position: absolute;
    width: 100%;
    bottom: -40px;
    left: 0;
    opacity: 0;
    transition: .5s;
}

.product-item:hover .btn-action {
    bottom: 0;
    opacity: 1;
}

.product-item h5 {
    transition: .5s;
}

.product-item:hover h5 {
    opacity: 0;
}

.product-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 55%;
    bottom: 0;
    left: 0;
    background: url(../img/bg-product-1.png) left bottom no-repeat, url(../img/bg-product-2.png) right bottom no-repeat;
    background-size: contain;
    background-color: var(--primary);
    z-index: -1;
}

.product-carousel .owl-nav {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.product-carousel .owl-nav .owl-prev,
.product-carousel .owl-nav .owl-next {
    position: relative;
    width: 55px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.product-carousel .owl-nav .owl-prev:hover,
.product-carousel .owl-nav .owl-next:hover {
    color: var(--secondary);
}

.bg-testimonial {
    background: url(../img/testimony.png) top center no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    background: rgba(52, 173, 84, .7);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 46px);
    height: 46px;
    top: calc(50% - 23px);
    left: -23px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--secondary);
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
}

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

.blog-item:hover img {
    transform: scale(1.2);
}

.blog-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(52, 173, 84, 0), rgba(52, 173, 84, 1));
    z-index: 1;
}

.bg-footer {
    background: linear-gradient(rgba(52, 173, 84, .7), rgba(52, 173, 84, .5)), url(../img/fc-footer.png) center bottom no-repeat;
    background-size: contain;
}

@media (min-width: 991.98px) {
    .bg-footer {
        margin-top: 90px !important;
    }
}

.form-wrapper {
    width: 100%;
    perspective: 1200px;
    position: relative;
    min-height: 550px;
}

.form-wrapper .login-register-container {
    min-height: 600px;
}

.form-wrapper .form_container {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}


#flipper_checkbox:checked+.form_container {
    transform: rotateY(180deg);
}

.form-wrapper .card {
    position: absolute;
    top: 0;
    left: 0;
    border: none !important;
    width: 100%;
    background: #fff;
    backface-visibility: hidden;
    padding: 30px;
    overflow-y: auto;
    max-height: 800px;
}


.form-wrapper .card.back {
    transform: rotateY(180deg);
}

.register-switch-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.switch-label {
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.switch-toggle {
    position: relative;
    display: flex;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.switch-btn {
    position: relative;
    z-index: 2;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    margin: 0;
    border-radius: 50px;
    user-select: none;
}

.switch-btn.active {
    color: #fff;
}

.switch-btn.active {
    background: var(--secondary, #5c8d5c);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.switch-btn:not(.active):hover {
    color: #333;
}

@media screen and (max-width: 768px) {
    .form-wrapper .login-register-container {
        min-height: 1200px;
    }

    .form-wrapper {
        min-height: 1200px;
    }

    .form-wrapper .card {
        max-height: 1200px;
        padding: 30px 10px;
    }
}

.alert-custom-absolute {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9999;
    min-width: 260px;
    animation: fadeFromLeft 1s ease-out forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-custom-absolute ul {
    margin-bottom: 0 !important;
}

@keyframes fadeFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media screen and (max-width: 768px) {
    .alert-custom-absolute {
        top: auto;
        bottom: 150px;
        left: 0;
    }
}


/* Header-Shine-Button */
.shine-btn {
    position: relative;
    overflow: hidden;
    background: #28a745; 
    color: #fff;
    border: 5px solid #fff;
    border-radius: 6px;
}

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

.shine-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shine 2.2s infinite;
}

@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

/* App Banner */
.app-banner {
  width: 80%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  box-sizing: border-box;
  border-radius: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: 
    linear-gradient(
      rgba(52, 173, 84, 0.85),
      rgba(52, 173, 84, 0.85)
    ),
    url("../img/app-bg.jpg");
  background-size: cover;
  background-position: center;

  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

/* LEFT CONTENT */
.app-banner .banner-text h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
}

.app-banner .banner-text p {
  margin: 10px 0 18px;
  font-size: 16px;
  max-width: 520px;
  opacity: 0.95;
}

.app-banner .banner-text .cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--secondary);
  color: #000;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.app-banner .banner-text .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* RIGHT QR */
.app-banner .qr-box {
  background: rgba(255,255,255,0.95);
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.app-banner .qr-box img {
  width: 130px;
  height: 130px;
  display: block;
}

.app-banner .qr-box span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #333;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 1240px) {
  .app-banner {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .app-banner {
    flex-direction: column;
    height: auto;
    text-align: center;
    gap: 20px;
  }
}