/* عمومی */
body {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: Tahoma, sans-serif;
  line-height: 1.6;
  color: white;
  background-color: #111;
}

/* هدر */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: #0b3d91;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .logo {
  font-size: 1.8rem;
  font-weight: bold;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
header nav ul li a:hover {
  color: #ffd700;
}

/* Hero */
.hero {
  background-image: url(img/2.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;/* 100vh بود */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* متن بالا، دکمه پایین */
  text-align: center;
  align-items: center;
  padding: 20px 20px;/*  اولی 50 بود*/
}

.hero-text h1 {
  font-size: 3rem;
  color: black ;

}
.hero-text p {
  font-size: 1.5rem;
  color: rgb(36, 37, 37);
}
.hero-buttons {
    display: flex;
    gap: 8px;   /* فاصله‌ی کم بین دکمه‌ها */

}
.hero .btn {
  padding: 12px 25px;
  background: #ffd700;
  color: #000;
  text-decoration: none;
  border-radius: 8px;

  transition: 0.3s;
}
.hero .btn:hover {
  background: #ffc200;
}
.hero .btn-secondary {
  background: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
}
.hero .btn-secondary:hover {
  background: #ffd700;
  color: #000;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;   /* فاصله بین دکمه‌ها */
  margin-top: 20px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;   /* فاصله بین دکمه‌ها */

}



/* درباره ما */
.about {
  padding: 60px 20px;
  background: #1e1e2f;
  text-align: center;
}
.about h2 {
  color: #ffd700;
  margin-bottom: 20px;
}

/* دوره‌ها */
.courses {
  padding: 60px 20px;
  background: #0b3d91;
  text-align: center;
}
.courses h2 {
  margin-bottom: 40px;
  color: #ffd700;
}
.course-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.card {
  background: #1e1e2f;
  padding: 20px;
  width: 250px;
  border-radius: 12px;
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}
.card h3 {
  margin-bottom: 10px;
  color: #ffd700;
}

/* تماس با ما */
.contact {
  padding: 60px 20px;
  background: #1e1e2f;
  text-align: center;
}
.contact h2 {
  color: #ffd700;
  margin-bottom: 20px;
}
.contact form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
}
.contact input,
.contact textarea {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}
.contact button {
  padding: 12px;
  border: none;
  background: #ffd700;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.contact button:hover {
  background: #ffc200;
}

/* فوتر */
footer {
  padding: 30px 20px;
  background: #0b3d91;
  text-align: center;
}
footer .social a {
  color: #ffd700;
  margin: 0 10px;
  text-decoration: none;
}
