@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,900&display=swap");
:root {
  --primary: #36863f;
  --primary-light: #3a893e0d;
  --secondary: #7ab83b;
  --secondary-light: #7ab83b25;
  --white: #fff;
  --btn-border-radius: 14px;
  --input-border-radius: 10px;
  --border-radius: 20px;
  --dark-text: #000;
  --text: #323232;
  --light-text: #717171;
  --border-color: #88c587;
  --orange-light: hsla(29, 90%, 57%, 0.157);
  --purple-light: hsla(250, 84%, 71%, 0.157);
  --pink-light: hsla(329, 82%, 65%, 0.157);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  /* transition-duration: 0.3s; */
  list-style-type: none;
  border: none;
  outline: none;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  /* border: 1px solid red; */
}
a {
    color: #201515; 
     text-decoration: none; 
}
ol, ul, dl {
    margin-top: 0;
    margin-bottom: 0rem;
}
ol, ul {
     padding-left: 0rem;
}
body {
  width: 100vw;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}
@media screen and (min-width: 400px) and (max-width: 1030px) {
  body {
    font-size: 18px;
  }
}

p {
  font-size: 1rem;
  line-height: 1.5;
}

.con {
  width: 90vw;
  /* background-color: red; */
  margin: 0 auto;
}

@media screen and (min-width: 1024px) {
  .con {
   /* width: 1000px;*/
  }
}

.page-top {
  width: 100%;
/*  border-radius: var(--border-radius);*/
  box-shadow: 0px 4px 14px rgba(189 182 182 / 66%);
  padding-bottom: 1em;
  position: fixed;
  left: 0;
  top: 0;
  background-color: var(--white);
  z-index: 3;
}

.default-page {
  margin-top: 6em;
  margin-bottom: 5.5em;
}
/* ---------------------------- main header style --------------------------- */
header.main-header {
  width: 100%;
}

header.main-header .top {
  width: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1em;
  position: relative;
}

header.main-header .top > .logo {
  height: 45px;
}

header.main-header .top h5 {
  font-size: 1.2rem;
  font-weight: 500;
}

header.main-header .top > .center {
  font-size: 1.2rem;
  font-weight: 500;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

header.main-header .top .right {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
 header.main-header .top .right a > img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
/*header.main-header .top .right > img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}*/

header.main-header .bottom {
  width: inherit;
  display: flex;
  gap: 1em;
  margin-top: 1em;
}

header.main-header .bottom .search {
  width: 100%;
}

header.main-header .bottom .home-tabs {
  display: flex;
  align-items: center;
  width: fit-content;
  background-color: var(--primary-light);
  border-radius: var(--btn-border-radius);
  padding: 0.3em;
}

header.main-header .bottom .home-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--btn-border-radius);
}

header.main-header .bottom .home-tabs a .white {
  display: none;
}

header.main-header .bottom .home-tabs a.active {
  background-color: var(--primary);
}

header.main-header .bottom .home-tabs a.active .white {
  display: block;
}

header.main-header .bottom .home-tabs a.active .green {
  display: none;
}

header.main-header .community-blog-location {
  margin-top: 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.location {
  display: flex;
  align-items: center;
  color: var(--primary);
}

.location img {
  width: 12px;
  margin-right: 0.3em;
}

.location p {
  font-size: 1rem;
}

header.main-header .community-blog-location .change {
  padding: 0.5em 1em;
  border-radius: var(--input-border-radius);
  background-color: var(--primary-light);
  color: var(--primary);
}

header.main-header .user-card {
  display: flex;
  align-items: center;
  gap: 1em;
}

header.main-header .user-card img {
  width: 40px;
  height: 40px;
}

header.main-header .user-card .info h5 {
  font-size: 1.1rem;
  color: var(--dark-text);
  font-weight: 600;
}

header.main-header .user-card p {
  font-size: 0.9rem;
  color: var(--light-text);
}

/* ----------------------------- botom navigator ---------------------------- */
.bottom-navbar {
  width: 100%;
  height: auto;
  background: linear-gradient(0deg, var(--white) 3.01%, transparent 96.18%);
  position: fixed;
  z-index: 3;
  left: 0;
  bottom: 0;
}

.bottom-navbar nav {
  width: 100%;
  margin-top: calc(calc(-25px - 2em) / 2);
  margin-bottom: 1em;
  border-radius: 50px;
  padding: 0.5em;
  background: linear-gradient(
    0deg,
    var(--primary) 3.01%,
    var(--secondary) 96.18%
  );
}

.bottom-navbar ul {
  display: flex;
  justify-content: space-between;
}

.bottom-navbar ul li a {
  display: flex;
  align-items: center;
  padding: 0.5em;
  border-radius: 50px;
}

.bottom-navbar ul li a:hover,
.bottom-navbar ul li a.active {
  background-color: #ffffff2a;
}

.bottom-navbar ul li a.active {
  padding-left: 1em;
  padding-right: 1em;
}

.bottom-navbar ul li a img {
  width: 25px;
}

.bottom-navbar ul li a span {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
  display: none;
  margin-left: 0.5em;
}

.bottom-navbar ul li a.active span {
  display: block;
}

/* ------------------------- search component styles ------------------------ */
.search-con {
  width: 100%;
  border: 1px solid var(--border-color);
  height: fit-content;
  padding: 0.3em;
  display: flex;
  align-items: center;
  border-radius: var(--btn-border-radius);
}

.search-con > img {
  width: 22px;
}

.search-con input {
  width: calc(100% - calc(65px));
  font-size: 1rem;
  color: var(--text);
  margin: 0 0.5em;
   background-color: transparent;

}

/* -------------------------- custom button styles -------------------------- */
.custom-btn {
  padding: 0.5em 1em;
  height: 50px;
  height: fit-content;
  font-size: 1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.custom-btn img {
  margin-right: 0.3em;
  width: 18px;
}

.custom-btn.primary {
  background: linear-gradient(
    5.55deg,
    var(--primary) 6.01%,
    var(--secondary) 97.18%
  );
  color: var(--white);
}

.custom-btn.border {
  border: 2px solid var(--primary);
  background-color: var(--white);
  color: var(--primary);
}

.icon-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-light);
  border-radius: var(--btn-border-radius);
  background-color: transparent;
}

.icon-btn.btn-border {
  border-color: #b1e9ad;
}

.icon-btn.btn-green {
  border-color: transparent;
  background: linear-gradient(
    5.55deg,
    var(--primary) 6.01%,
    var(--secondary) 97.18%
  );
}

.icon-btn img {
  width: 50%;
}

/* --------------------------- custom form styles --------------------------- */
form.custom-form {
  width: 100%;
  height: auto;
}

/*form.custom-form .flex {
  display: flex;
  gap: 1em;
}*/

form.custom-form .flex .field input,
form.custom-form .flex .field textarea,
form.custom-form .flex .field select {
  max-width: calc(50% - 0.5em);
}

@media screen and (max-width: 325px) {
  form.custom-form .flex {
    display: block;
    gap: 0;
    margin-bottom: 1.5em;
  }
}

form.custom-form .field {
  width: 100%;
  margin-bottom: 1.5em;
}
form.custom-form .field:last-of-type {
  margin-bottom: 0;
}
form.custom-form .field label {
  display: flex;
  font-size: 0.85rem;
  color: var(--light-text);
  font-weight: 600;
  margin-bottom: 0.3em;
}
form.custom-form .field label img {
  width: 17px;
  margin-right: 0.5em;
}

form.custom-form .field input,
form.custom-form .field textarea,
form.custom-form .field select {
  background-color: var(--white);
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  height: 45px;
  padding: 0 1em;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--input-border-radius);
}

form.custom-form .field input:focus,
form.custom-form .field textarea:focus,
form.custom-form .field select:focus {
  border-color: var(--primary) !important;
}

form.custom-form .field textarea {
  padding: 0.5em 1em;
  height: 100px;
}

@media screen and (min-width: 400px) and (max-width: 1030px) {
  form.custom-form .field label {
    font-size: 1rem;
    text-transform: capitalize;
  }
  form.custom-form .field label img {
    width: 22px;
  }

  form.custom-form .field input,
  form.custom-form .field textarea,
  form.custom-form .field select {
    height: 50px;
  }

  form.custom-form .field textarea {
    padding: 0.5em 1em;
    height: 200px;
  }
}

/* --------------------------- upload item styles --------------------------- */
.upload-item {
  width: 100%;
  height: auto;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 2px dashed rgba(8, 99, 66, 0.5);
/*  padding: 1em;*/
  border-radius: var(--border-radius);
}

.upload-item img {
  width: 50px;
  margin-bottom: 1em;
}
.upload-item p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-text);
}

.upload-item span {
  font-size: 1rem;
  color: var(--light-text);
}

.form-con {
  text-align: left;
  background-color: var(--white);
  width: 100%;
  height: auto;
  padding: 1em;
  border-radius: var(--border-radius);
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.08);
}

.form-con h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1em;
}

.post {
  width: 100%;
  background-color: var(--white);
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius);
  padding: 1em;
  margin-bottom: 1em;
}

.post .top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1em;
}

.post .top .user {
  display: flex;
  align-items: center;
}

.post .top .user > img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin-right: 1em;
}

.post .top .user .info > p {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.post .top .date {
  display: flex;
  align-items: center;
}

.post .top .date img {
  width: 15px;
  margin-right: 0.3em;
}

.post .top .date p {
  font-size: 0.9rem;
  color: var(--light-text) !important;
}

/*.post .img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: 1em;
}

 
.post .img img {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius);
    object-fit: cover;
    object-position: center;
    margin-right: 1em;
}*//*
.post .img img {
    width: 100%;
    height: 200px;
    object-position: center;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.post .img img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}*/

.post .content p {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1em;
      overflow-y: auto;
}

.post .content p span.tag {
  color: var(--primary);
}

.post .bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.post .bottom .option {
  display: flex;
  align-items: center;
}

.post .bottom .option {
  margin-right: 1em;
  padding-right: 1em;
  border-right: 1px solid #ddd;
}

.post .bottom .option img {
  width: 15px;
  margin-right: 0.5em;
}

/* ------------------------------ modal styles ------------------------------ */
.modal-con {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
}

.modal-con .overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.26);
}

.modal-con .modal {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  background-color: var(--white);
  padding: 0.5em 5vw 1em 5vw;
}

.modal-con .modal .bar {
  width: 50px;
  height: 4px;
  background-color: #ccc;
  margin: 0 auto;
  margin-bottom: 0.5em;
}

.modal-con .modal .content h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.5em;
  font-weight: 600;
}

.modal-con .modal .content form button {
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0.7em 1em;
  margin-top: 2em;
}

.modal-con .modal .content .chat-add-flex {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2em 0;
}

.modal-con .modal .content .chat-add-flex .sub {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal-con .modal .content .chat-add-flex .sub .icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  margin-bottom: 0.5em;
}

.modal-con .modal .content .chat-add-flex .sub .icon.gallery {
  background-color: var(--orange-light);
}

.modal-con .modal .content .chat-add-flex .sub .icon.camera {
  background-color: var(--purple-light);
}

.modal-con .modal .content .chat-add-flex .sub .icon.location {
  background-color: var(--pink-light);
}

.modal-con .modal .content .chat-add-flex .sub .icon img {
  width: 35%;
}

.modal-con .modal .content .chat-add-flex .sub p {
  font-size: 1rem;
  color: var(--text);
}

/* ----------------------------- sidebar styles ----------------------------- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9;
  width: 0;
  height: 100vh;
  background-color: var(--white);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1em 0;
  transition-duration: 0.3s;
}

.sidebar.show {
  width: 250px;
  transition-duration: 0.3s;
}
.sidebar .close {
  position: sticky;
  left: calc(100% - 3em) !important;
  top: 1em;
  width: 30px;
  height: 30px;
  background-color: #eee;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sidebar nav {
  width: 100%;
  height: auto;
  /* padding-top: 30px; */
  padding: 0 1em;
  padding-bottom: 10em;
}

.sidebar nav li {
  width: 100%;
  padding: 0.5em 0;
  border-bottom: 1px solid #5ca13d8f;
}

.sidebar nav li a {
  display: block;
  padding: 0.5em;
  background-color: transparent;
  border-radius: var(--btn-border-radius);
  color: var(--text);
/*  font-weight: 600;*/
  cursor: pointer;
}

#sidebar-overlay {
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.493);
  z-index: 8;
  width: 100vw;
  height: 100vh;
  display: none;
}

#sidebar-overlay.show {
  display: block;
}
