* {
  margin: 0;
  padding: 0;
  font-family: system-ui;
}
html:not(.lang-ready) body {
  visibility: hidden;
}
html.lang-ready body {
  visibility: visible;
}
:root {
  --PrimaryColor: rgba(209, 14, 14, 1);
  --blueColor: rgba(0, 37, 158, 1);
}
#Header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 6px;
  /* border-bottom: 1px solid; */
}
#Header .social img {
  width: 25px;
}
#Header .social a {
  text-decoration: none;
}
#Header .social .face {
  margin-left: 8px;
}
#Header .logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
}
#Header .logo img {
  margin: 0 15px;
  width: 80px;
}
#Header .logo h3 {
  font-size: 22px;
  font-weight: 500;
}
#Header .gmail {
  display: flex;
  align-items: end;
}
#Header .gmail a {
  text-decoration: none;
  color: black;
  margin: 0 10px;
  font-size: 18px;
  font-weight: 500;
  transition-duration: 0.2s;
}
#Header .gmail a:hover{
  color: var(--blueColor);
  transition: 0.2s;
}
#Header .gmail img {
  width: 22px;
}
/* Header 2 */
#Header2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-top: 1px solid rgba(90, 90, 90, 1);
}
#Header2 .navBar ul {
  width: 246px;
  display: flex;
  justify-content: space-between;
  list-style: none;
}
#Header2 .navBar .active {
  /* margin: 0 20px; */
  border-bottom: 2px solid var(--PrimaryColor);
}
#Header2 .navBar a {
  text-decoration: none;
  color: black;
}
#Header2 .navBar li {
  padding: 4px 0;
  transition-duration: 0.3s;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}
#Header2 .navBar li:hover {
  transition: 0.3s;
  border-bottom: 2px solid var(--PrimaryColor);
}
#Header2 div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#Header2 .headerActions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(4px, 1.2vw, 8px);
  justify-content: flex-end;
  flex-shrink: 1;
  min-width: 0;
}
#Header2 button,
#Header2 .donateBtn,
#hero button,
#hero .donateBtn {
  cursor: pointer;
  border-radius: 42px;
  background-color: var(--PrimaryColor);
  color: white;
  font-weight: 600;
  border: none;
  outline: none;
  text-decoration: none;
  transition-duration: 0.3s;
  box-sizing: border-box;
}
#Header2 .langBtn {
  margin: 0;
  padding: clamp(5px, 1.1vw, 6px) clamp(8px, 2vw, 16px);
  font-size: clamp(10px, 2.8vw, 14px);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  border-radius: clamp(20px, 8vw, 42px);
  min-height: clamp(32px, 8vw, 38px);
}
#Header2 button:hover,
#Header2 .donateBtn:hover,
#hero button:hover,
#hero .donateBtn:hover {
  background: rgb(209 14 14 / 73%);
  transition: 0.3s;
}
.donateButtons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#Header2 .donateButtons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(4px, 1.2vw, 6px);
  flex-shrink: 1;
  min-width: 0;
}
#Header2 .donateBtn,
#hero .donateBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#Header2 .donateBtn {
  padding: clamp(5px, 1.1vw, 6px) clamp(7px, 1.8vw, 12px);
  font-size: clamp(10px, 2.8vw, 13px);
  gap: clamp(2px, 0.8vw, 4px);
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  border-radius: clamp(20px, 8vw, 42px);
  min-height: clamp(32px, 8vw, 38px);
}
#Header2 .donateBtn span,
#hero .donateBtn span {
  color: inherit;
}
#Header2 .donateBtn img {
  width: clamp(11px, 3vw, 16px);
  height: auto;
  margin: 0;
  flex-shrink: 0;
}
#hero .donateBtn {
  padding: clamp(8px, 2vw, 8px) clamp(12px, 3vw, 20px);
  font-size: clamp(13px, 3.5vw, 16px);
  gap: clamp(4px, 1vw, 6px);
  border-radius: clamp(24px, 8vw, 42px);
  min-height: clamp(40px, 10vw, 48px);
  white-space: nowrap;
}
#hero .donateBtn img {
  width: clamp(16px, 4vw, 22px);
  height: auto;
  margin: 0;
  flex-shrink: 0;
}
/* Hero Section */
#hero {
  width: 100%;
}
#hero > img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}
#hero .container {
  width: min(95%, 1100px);
  margin: 20px auto;
  padding: 0 12px;
  box-sizing: border-box;
}
#hero .container p,
#hero .container .span {
  line-height: 1.7;
  font-weight: 400;
  font-size: 17px;
}
#hero .container h2 {
  margin: 15px 0;
  line-height: 1.4;
}
#hero .container .donateGoal {
  margin: 35px 0 30px;
  line-height: 1.45;
}
#hero .container .video{
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
#hero .container .video video{
  margin-bottom: 20px;
  width: min(55%, 720px);
  max-width: 100%;
  border-radius: 40px;
}
#hero .container .imgDonate {
  width: 100%;
  display: flex;
  gap: 2%;
  justify-content: space-between;
}
#hero .container .imgDonate img {
  width: 49%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}
#hero .content {
  margin: 35px 0 10px;
}
#hero .content .todayGoal {
  font-weight: 800;
  font-size: 20px;
}
#hero .notePar {
  text-align: center;
  color: var(--blueColor);
}
#hero .btnDonate {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 13px 0;
}
#hero .btnDonate .donateButtons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(6px, 2vw, 10px);
}
/* signDonatet.html */
form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 540px;
  margin: 30px auto;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

label {
  width: 150px;
  font-size: 16px;
}

input {
  /* flex: 1; */
  font-size: 16px;
  width: 300px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 1);
  outline: none;
  box-shadow: 0 4px 4px 0px rgba(0, 0, 0, 0.25);
}

textarea {
  font-size: 16px;
  width: 300px;
  height: 110px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 1);
  outline: none;
  box-shadow: 0 4px 4px 0px rgba(0, 0, 0, 0.25);
}

#hero form .submitDiv {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0;
}
#hero form .submitDiv button {
  width: 140px;
  background-color: var(--blueColor);
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
  padding: 5px 0;
}

.message-container {
    position: fixed; /* لجعل الرسائل تظهر فوق الصفحة */
    top: 20px;
    left: 50%;
    transform: translateX(-50%); /* محاذاة الرسائل في منتصف الصفحة */
    width: 80%;
    max-width: 400px;
    z-index: 9999;
}

/* رسالة النجاح */
.message.success {
    background-color: #28a745;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
}

/* رسالة الخطأ */
.message.error {
    background-color: #dc3545;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
}

/* عند وجود عدة أخطاء في القائمة */
.message.error ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.message.error ul li {
    margin-bottom: 5px;
}
.message {
    opacity: 1;
    transition: opacity 1s ease-out; /* تأثير تلاشي الرسالة */
}

/* عند إخفاء الرسالة */
.message.hidden {
    opacity: 0;
    display: none;
}

.has-error input, .has-error textarea {
    border: 2px solid #dc3545;
}

.has-error .error-message {
    color: #dc3545;
    font-size: 12px;
}
/* media */
@media (max-width: 1024px) {
  #Header2 {
    padding: 16px 24px;
  }

  #hero .container .video video {
    width: min(75%, 640px);
    border-radius: 28px;
  }

  #hero .container .imgDonate img {
    height: auto;
  }
}

@media (max-width: 768px) {
  #Header {
    gap: 12px;
    padding: 12px 16px;
    justify-content: center;
    text-align: center;
  }

  #Header .social,
  #Header .gmail {
    order: 2;
  }

  #Header .logo {
    order: 1;
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  #Header .logo img {
    width: 64px;
    margin: 0 10px;
  }

  #Header .logo h3 {
    font-size: 18px;
  }

  #Header .gmail {
    align-items: center;
  }

  #Header .gmail a {
    font-size: 14px;
    margin: 0 6px;
    word-break: break-all;
  }

  #Header2 {
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
  }

  #Header2 .navBar {
    width: 100%;
  }

  #Header2 .navBar ul {
    width: 100% !important;
    max-width: 360px;
    margin: 0 auto;
    gap: 12px;
    justify-content: center;
  }

  #Header2 .navBar li {
    font-size: 17px;
  }

  #Header2 > div {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  #Header2 .headerActions {
    width: 100%;
    justify-content: center;
  }

  #hero > img {
    height: auto;
  }

  #hero .container {
    width: 100%;
    padding: 0 16px;
  }

  #hero .container p,
  #hero .container .span {
    font-size: 16px;
    line-height: 1.65;
  }

  #hero .container h2 {
    font-size: 22px;
  }

  #hero .container .video video {
    width: 100%;
    border-radius: 20px;
  }

  #hero .container .imgDonate {
    flex-direction: column;
    gap: 12px;
  }

  #hero .container .imgDonate img {
    width: 100%;
    height: auto;
  }

  form {
    width: 100%;
    max-width: 540px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .form-group {
    display: block;
  }

  label {
    width: 100%;
    margin-bottom: 6px;
    display: block;
  }

  input,
  textarea {
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    box-sizing: border-box;
  }

  #hero form .submitDiv button {
    width: min(100%, 180px);
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  #Header .logo img {
    width: 56px;
  }

  #Header .logo h3 {
    font-size: 16px;
  }

  #Header .gmail a {
    font-size: 13px;
  }

  #Header2 .navBar li {
    font-size: 15px;
  }

  #Header2 .headerActions {
    gap: 4px;
    padding: 0 2px;
  }

  #Header2 .langBtn,
  #Header2 .donateBtn {
    font-size: 10px;
    padding: 5px 6px;
    min-height: 32px;
  }

  #Header2 .donateBtn img {
    width: 11px;
  }

  #hero > img {
    height: auto;
  }

  #hero .container h2 {
    font-size: 20px;
  }

  #hero .container .imgDonate img {
    height: auto;
  }
}
