@import url("https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap");
:root {
  --primary-color: #ffffff;
  --secondary-color: #c8a877;
  --accent-color: #007565;
  --text-color: #1e1e1e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  text-align: center;
}

.to-padding-content {
  padding: 0 20px;
}

nav {
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  height: 80px;
  padding: 10px 0;
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: #f6f6f6 !important;
  }
  nav{
    background-color: #ffffff !important;
  }
}
.logo {
  width: 45%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/*=============== hero======= */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-section img {
  width: 100%;
  height: auto;
  height: 200px;
  object-fit: cover;
}

.hero-section h2 {
  width: 100%;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  background-color: var(--secondary-color);
  color: white;
  font-weight: 700;
}

@media (min-width: 500px) {
  .hero-section h2 {
    font-size: 18px;
  }
  .hero-section img {

    height: 300px;
    object-fit: cover;
  }
  .logo {
    width: 30%;
/* padding: 16px 0; */
  }
  
}

/* ======Description section ================= */
.descriotion-section {
  padding: 20px;
}

.descriotion-section h2 {
  color: #007565;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

.descriotion-section p {
  color: var(--text-color);
  font-size: 16px;
  margin: auto;
}

.required-amount {
  background-color: var(--accent-color);
  font: 12px;
  color: white;
  width: fit-content;
  margin: 0 auto;
  padding: 9px 8px 9px 8px;
  border-radius: 8px;
  margin-top: 20px;
}

.required-amount span {
  font-weight: 700;
}

@media (min-width: 640px) {
  .descriotion-section h2 {
    font-size: 20px;
  }

  .descriotion-section p {
    max-width: 90%;
    font-size: 18px;
  }

  .required-amount {
    font: 16px;
  }
}

/* ===========progress bar ================ */
.progress-container {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  background-color: #eeeeee;
  border-radius: 162px;
  overflow: hidden;
  font-weight: 600;
  height: 16px;
}

.raised {
  padding: 5px 0;
  display: flex;
  justify-content: center;
  width: 38%;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 162px;
}

.left {
  padding: 4px 0;
  display: flex;
  justify-content: center;
  width: 62%;
  color: white;
}

.required-amount-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.required-amount-details span {
  font-weight: 700;
}

/* Buttons container */
.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.buttons-container .button-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.buttons-container .button-group .button {
  display: inline-block;
  outline: none;
  border: none;
  background-color: var(--accent-color);
  color: white;
  font-size: 12px;
  padding: 10px;
  border-radius: 7px;
  flex: 1;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s linear;
}

.buttons-container .button-group.secondary a {
  background-color: #c9a161;
}

.buttons-container .button-group .button:hover,
.buttons-container .button-group .button:focus {
  background-color: #005b4f;
  color: #ffffff;
  text-decoration: none;
}
.buttons-container .button-group.secondary a:hover {
  background-color: var(--secondary-color);
}

.buttons-container .button-group .button.secondary:hover,
.buttons-container .button-group .button.secondary:focus {
  background-color: #b08c53;
  color: #ffffff;
  text-decoration: none;
}

/* User permissions */
.user-permissions {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  gap: 20px;
  padding: 10px 20px;
  font-size: 12px;
}

.custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid white;
  background-color: transparent;
  display: inline-block;
  border-radius: 2px;
  vertical-align: middle;
  cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: transparent;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  background-color: white;
}

.checkmark svg {
  display: none;
  width: 14px;
  height: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark svg {
  display: block;
}

footer {
  border-top: 1px solid #e6e5e7;
  margin-top: 15px;
  font-size: 14px;
  color: #7b868c;
  width: 100%;
}
.card-initiative {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 85%;
  margin: 20px auto;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.card-initiative::before {
  position: absolute;
  content: "";
  top: 0.9px;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: #D2691E; */
  background-color: #DAA520;
  /* background-color: #007565; */
  border-radius: 20px;
  box-shadow: inset 10px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1;
  opacity: var(--before-opacity, 0);
  transition: opacity 0.3s ease;
}
.card-initiative h2 {
  color: white;
  background-color: #005b4f;
  z-index: 2;
  padding: 10px;
  font-size: 16px;
}
.img-container-initiative {
  width: 100%;
  opacity: 1;
  height: 200px;
  text-align: center;
  z-index: 2;
}
.card-initiative img {
  width: 100%;
  height: 100.5%;
  object-fit: cover;
  border-top-left-radius: 130px;
}
@media (min-width: 600px) {
  .required-amount-details {
    font-size: 14px;
  }

  .buttons-container .button-group .button {
    font-size: 16px;
  }

  footer {
    font-size: 16px;
  }

  .user-permissions {
    font-size: 14px;
  }

  footer img {
    cursor: pointer;
  }
  .img-container-initiative {
    height: 250px;
  }
  .card-initiative h2 {
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .to-desktop {
    margin-bottom: 30px !important;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
  }
}

.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background-color: #005b4f;
  border: 1px solid #888;
  width: fit-content;
  max-width: 300px;
  text-align: center;
  opacity: 0;
  margin: auto;
  position: relative;
  transform: translateY(-50px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  box-sizing: border-box;
}

.modal-content.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-links a {
  display: block;
  margin: 7px 0;
}

.icon-modal {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.modal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal a {
  display: flex;
  flex-direction: row-reverse;
  text-decoration: none !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  gap: 20px;
  padding: 0px 10px;
  color: white;
}

.modal-content li {
  border: 10px solid white;
}
/* ===============loading ============== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}


.loader.show {
  visibility: visible;
  opacity: 1;
}

.spinner {
  border: 6px solid #cccbcb;
  border-radius: 50%;
  border-top: 6px solid #005b4f;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
