/* Main footer container */
#footer {
  width: 100%;
  height: 400px;
  display: flex;
  margin-top: 20svh;
  position: relative;
  overflow: hidden;
  background-color: #bac59f;
  padding-top: 15px;
}

/* Decorative plant images (absolute positioning behind content) */
#plante_footer,
#plante_footer2,
#plante_footer3 {
  position: absolute;
  z-index: 0;
}
#plante_footer3{
  opacity: 0.6;
}


#plante_footer {
  width: 25%;
  top: 0;
}

#plante_footer2 {
  width: 25%;
  bottom: 0;
  right: 0;
  transform: rotate(-180deg);
}

#plante_footer3 {
  width: 30%;
  top: 0;
  left: 40%;
}

/* Left & right sections (main footer columns) */
#right_footer,
#left_footer {
  width: 40%;
  height: 100%;
  text-align: center;
  z-index: 1;              /* Above background plants */
  position: relative;
}

#right_footer {
  margin-left: 10%;
}

#left_footer {
  margin-right: 10%;
}

/* Underline element for titles */
.border_bot {
  border-bottom: 1px solid rgba(0, 0, 0, 0.233);
  width: fit-content;
  margin: auto;
}

.second_line_left {
  margin-top: 6%;
}

.margin_under {
  margin-top: 1%;
}

/* Newsletter area */
#news {
  width: 70%;
  text-align: center;
  margin: auto;
}

#new_input {
  width: 80%;
  display: flex;
  margin: auto;
  margin-top: 2%;
}

#text_footer_input {
  height: 30px;
  font-size: clamp(15px, 1.1vw, 25px);
  outline: none;
  border: 1px solid rgba(0, 0, 0, 0.541);
  box-shadow: none;
}

#ok_btn {
  cursor: pointer;
  background-color: #5c624d;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#admin {
  margin-top: 5%;
}

/* ---------- Responsive adjustments ---------- */

@media (max-width: 1366px) {
  #text_footer_input {
    height: 25px;
  }
  #input_news {
    height: 35px;
  }
}

@media (max-width: 1280px) {
  #footer {
    height: fit-content;
    padding-bottom: 2%;
  }
}
@media (max-width: 1176px) {
  #text_footer_input {
    height:20px;
  }
}
@media (max-width: 800px) {
  #text_footer_input {
    height: 20px;
  }
  #ok_btn {
    font-size: 12px;
  }
}

@media (max-width: 800px) {
  #footer {
    flex-direction: column;
  }
  #right_footer,
  #left_footer {
    width: 100%;
    margin-left: 0;
  }

  /* Rework plant decorations for mobile */
  .plante_img_foot {
    position: absolute;
  }

  #plante_footer {
    width: 100%;
    opacity: 0.2;
    left: -30%;
    top: 0;
  }

  #plante_footer2 {
    display: none;
  }

  #plante_footer3 {
    width: 100%;
    opacity: 0.25;
    bottom: -10%;
    top: unset;
  }

  #news {
    margin-top: 5%;
  }

  .border_bot {
    color: white !important;
  }
}

@media (max-width: 500px) {
  #text_footer_input{
    font-size: clamp(12px, 1.1vw, 25px);
  }
}
