html, body {
  height: 100%;
  margin: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
body {
  padding: 0;
  direction: rtl;
  background: #f9f9f9;
  color: #333;
  margin: 0;
  font-family: 'Vazir', sans-serif;
  //direction: rtl;
  background-color: #f9f9f9;
}

header {
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 10px 100px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 80px;
}

.logo span {
  font-size: 1.6em;
  font-weight: bold;
  color: #2c3e50;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 25px;
  margin: 0;
  padding: 0;
padding-top:10px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 4px;
}

nav a:hover {
  background-color: #007bff;
  color: white;
}

.page-header {
  background-image: url('../images/banner.jpg'); /* آدرس تصویر */
  background-size: cover;
  background-position: center;
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
}

.page-header .overlay {
  background-color: rgba(0, 0, 0, 0.5); /* تیرگی روی تصویر */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header h1 {
  color: white;
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  margin: 0;
}



main {
  padding: 50px 20px;
  text-align: center;
  background-color: #fafafa;
}

.main-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #444;
}

.main-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.complaint-form {
  max-width: 600px;
  margin: 50px auto;
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  direction: rtl;
  text-align: right;
}

.complaint-form h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.4em;
}

.complaint-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #555;
}

.complaint-form input,
.complaint-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1em;
  box-sizing: border-box;
}

.complaint-form button {
  background-color: #007bff;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.complaint-form button:hover {
  background-color: #0056b3;
}

.tracking-form {
  max-width: 500px;
  margin: 50px auto;
  background-color: #fdfdfd;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  direction: rtl;
  text-align: right;
}

.tracking-form h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.3em;
}

.tracking-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #555;
}

.tracking-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1em;
  box-sizing: border-box;
}

.tracking-form button {
  background-color: #28a745;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tracking-form button:hover {
  background-color: #218838;
}


footer {
  background-color: #333;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-menu li a {
  color: #ddd;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s;
}

.footer-menu li a:hover {
  color: #fff;
}

footer p {
  margin: 0;
  font-size: 0.9em;
}

 
    @media (max-width: 600px) {
        nav ul {
    flex-direction: column;
    align-items: center;
  }
    }
.rules-section {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  direction: rtl;
  text-align: right;
}

.rules-section h2 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.rules-content p {
  font-size: 1.05em;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
}

