

/* إعدادات أساسية */
*{
  text-decoration: none;
  list-style: none;
}
a {
  text-decoration: none;
}
body {
  font-family: "Tahoma", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fdfaf6;
  color: #222;
  line-height: 1.6;
  direction: rtl;
  font-family: "Amiri", serif;
  font-style: normal;




}


header {
  background-color: #4e342e;
  color: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

header .logo {
  font-size: 24px;
  font-weight: bold;
  font-family: 'Cairo', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.icon{
  position: absolute;
  left: 30px;
  align-items: center;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  cursor: pointer;
}
header nav {
  position: absolute;
  left: 20px;
  margin-left:20px ;
  justify-content: center;
  align-items: center;
}

header nav ul {
  margin-left: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  align-items: center;
}


header nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

header nav a:hover {
  text-decoration: none;
  color: #ccc;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 974px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  header nav ul {
    flex-direction: column;
    gap: 30px;
  }
  .icon.list{
    display: block;
    top: 40px;
  }
  .icon.x{
    /* display: block; */
    top: 40px;
  }
  header nav {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
  }

  header nav a {
    padding: 5px 0;
  }
}

.hero {
  height: calc(100vh - 79.92px);
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* تظليل بسيط للوضوح */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  overflow: hidden;

}

.hero-content {
  text-align: center;
  color: white;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: 'Cairo', sans-serif;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-btn {
  background-color: #6d4c41;
  padding: 12px 24px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: #5d4037;
}
.hero-img img{
  position: relative;
  max-width: 500px;
  max-height: 500px;
  overflow: hidden;
  border-radius: 20px;
  flex: start;
  animation: up-and-down 5s linear infinite;

}

@media (max-width: 768px) {
  .hero .hero-overlay{
    flex-direction: column;
  }
  .hero-content{
    display: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
  .hero-img img{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50% , -50%);
    animation: none;
}
}



/* about section */
.about {
  background-color: #fffaf1;
  padding: 3rem 2rem;
  text-align: center;
  
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #8b5e3c;
}
.about p {
  font-size: 25px;
}
/* stories section */
.stories {
  background-color: #f7f4ef;
  padding: 3rem 2rem;
  text-align: center;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.story {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
}

.story h3 {
  margin: 1rem 0 0.5rem;
  color: #8b5e3c;
}

.story a {
  text-decoration: none;
  color: #8b5e3c;
  font-weight: bold;
}

/* events section */
.events {
  background-color: #fffaf1;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
}

.events h2 {
  color: #8b5e3c;
}
.events img {
  width: 1000px;
  height:600px;
  border-radius: 10px;
} 
@media (max-width:768px) {
  .events img{
    width: 500px;
    height: 500px;
  }
}

/* join section */
.join,
.contact {
  padding: 3rem 2rem;
  background-color: #f7f4ef;
  text-align: center;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

input, textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

button {
  padding: 0.75rem;
  background-color: #8b5e3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #6e452b;
}

/* footer */
footer {
  background-color: #4e342e;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.social-media h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 20px;
  margin-bottom: 15px;
  color: #fbe9e7;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.social-icons a {
  font-size: 18px;
  color: white;
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
}

.social-icons .facebook { background-color: #3b5998; }
.social-icons .twitter { background-color: #1da1f2; }
.social-icons .instagram { background-color: #e1306c; }
.social-icons .email { background-color: #6d4c41; }

.social-icons a:hover {
  opacity: 0.85;
}

.footer-copy {
  font-size: 14px;
  color: #d7ccc8;
}

@media (max-width: 600px) {
  .social-icons {
    gap: 12px;
  }
}


@keyframes up-and-down {
  0%,
  100% {
    top: 0;
  }
  50% {
    top: -25px;
  }
}