/* تنظیمات پایه */
body {
  font-family: 'Tahoma', sans-serif;
  margin: 0;
  background-color: #f7f8f9;
  color: #222;
  line-height: 1.8;
  direction: rtl;
}

/* هدر */
header {
  background-color: #004d26;
  color: white;
  text-align: center;
  padding: 30px 10px;
}

header h1 {
  margin-bottom: 15px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 15px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.3s;
}

nav a:hover,
nav a.active {
  background-color: #00994d;
}

/* همکاران ویژه زیر هدر */
.partners-top {
  background-color: #e9f7ef;
  padding: 20px 10px;
  text-align: center;
}

.partners-top h2 {
  margin-bottom: 15px;
  color: #006633;
}

.partners-top ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.partners-top ul li a {
  text-decoration: none;
  color: #004d26;
  font-weight: bold;
  padding: 8px 12px;
  background-color: #d4f0df;
  border-radius: 6px;
  transition: background 0.3s;
}

.partners-top ul li a:hover {
  background-color: #b0e6c7;
}

/* ساختار اصلی */
.container {
  display: flex;
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 15px;
  gap: 25px;
}

/* سایدبار */
.sidebar {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  height: fit-content;
}

.sidebar h3 {
  margin-bottom: 10px;
  color: #006633;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar a {
  text-decoration: none;
  color: #004d26;
  display: block;
  margin: 8px 0;
}

.sidebar a:hover {
  color: #00aa55;
}

/* محتوای اصلی */
.content {
  flex: 3;
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.content h2 {
  color: #006633;
  margin-bottom: 20px;
}

/* فرم تماس */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00994d;
  box-shadow: 0 0 5px rgba(0,153,77,0.3);
  outline: none;
}

.contact-form button {
  width: 200px;
  padding: 10px;
  background-color: #004d26;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #006633;
}

/* اطلاعات تماس */
.contact-info {
  margin-top: 30px;
  background-color: #f3fff7;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-info h3 {
  color: #006633;
  margin-bottom: 10px;
}

/* فوتر */
footer {
  background-color: #004d26;
  color: white;
  text-align: center;
  padding: 25px 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: inline-flex;
  gap: 20px;
}

.footer-links a {
  color: #b8ffd1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

/* واکنش‌گرا */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .partners-top ul {
    flex-direction: column;
    align-items: center;
  }
  .contact-form button {
    width: 100%;
  }
}
