/* ---------- جدول ---------- */
table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  padding: 8px;
  border: 1px solid black;
}
.center {
  margin-left: auto;
  margin-right: auto;
}
.border0 {
  border: none;
}
.border1 {
  border: 1px solid black;
}

/* ---------- بدنه ---------- */
body {
  background-color: #000;
  color: #333;
  font: normal 12px "B Nazanin", Tahoma, sans-serif;
  margin: 0;
}

h1, h2, h3, p, li {
  text-align: right;
}

a {
  background-color: inherit;
  color: #333;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- نقل‌قول ---------- */
blockquote {
  font: italic 12px "Tahoma", serif;
  width: 70%;
  margin: 5px auto;
  padding: 10px 50px;
  position: relative;
  color: #690;
}
blockquote:before {
  content: "\201c";
  font: bold 120px "Tahoma", serif;
  position: absolute;
  left: -20px;
  top: -10px;
  color: #690;
}

/* ---------- زمینه‌های بالای صفحه ---------- */
#pseudo-wrap1,
#pseudo-wrap2 {
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
}
#pseudo-wrap1 {
  background: linear-gradient(to bottom, #80bc00 1%, #8fc800 78%);
  height: 195px;
  top: 15px;
}
#pseudo-wrap2 {
  background: linear-gradient(to bottom, #88b503 0%, #000 98%);
  height: 190px;
  top: 211px;
}

/* ---------- لایه‌بندی ---------- */
#wrap {
  width: 80%;
  background-color: #fff;
  padding: 0;
  margin: 30px auto 15px auto;
}

/* ---------- هدر ---------- */
#header {
  background: linear-gradient(to bottom, #7fb50c 0%, #61a810 50%, #4ea800 51%, #568e07 100%);
  color: #fff;
  height: 200px;
  box-shadow: 0px 40px 20px -15px #c4d9a3;
  border: 10px solid #fff;
  border-bottom: 1px solid #fff;
}
#header h1 {
  text-align: center;
  margin: 80px auto 0;
}
#header a {
  color: #fff;
}
#header p {
  text-align: center;
  margin: 0 auto;
}

/* ---------- محتوا ---------- */
#content {
  text-align: right;
  width: 90%;
  padding: 0 25px 10px 25px;
  margin: 0 auto;
}
#content h2, #content h3 {
  margin: 0;
}
#content h3 {
  color: #690;
  font: bold 12pt Arial, sans-serif;
}
#content p {
  line-height: 24px;
  text-align: justify;
}
#content p.center {
  text-align: center;
}
#content span.author {
  font: normal 8pt Arial, Helvetica, sans-serif;
  color: #666;
}
#content span.author a {
  color: #999;
  padding: 0 3px;
}
#content span.author a:hover {
  background-color: #690;
  color: #fff;
}
#content p a {
  color: #690;
  text-decoration: underline;
}

/* ---------- فوتر ---------- */
#footer {
  background: linear-gradient(to bottom, #7fb50c 0%, #61a810 50%, #4ea800 51%, #568e07 100%);
  color: #fff;
  height: 40px;
  text-align: center;
  font-size: 12px;
  border: 10px solid #fff;
}
#footer a {
  color: #fff;
}
#footer .notice {
  color: #eee;
  line-height: 40px;
}

/* ---------- لوگو ---------- */
.logo {
  height: 115px;
  width: 263px;
  margin: 20px auto 0;
  background: url(logo.png);
}

/* ---------- منو ---------- */
nav {
  margin: 45px auto;
  text-align: center;
}
nav ul {
  background: #f1f4f7;
  box-shadow: 0 0 9px rgba(0,0,0,0.15);
  padding: 0 20px;
  border-radius: 10px;
  list-style: none;
  display: inline-table;
  position: relative;
}
nav ul:after {
  content: "";
  display: block;
  clear: both;
}
nav ul li {
  float: right;
  font-weight: bold;
  position: relative;
}
nav ul li a {
  display: block;
  padding: 10px;
  color: #4e4e4e;
}
nav ul li:hover {
  background: #a70101;
}
nav ul li:hover a {
  color: #fff;
}
nav ul ul {
  display: none;
  position: absolute;
  background: #8fc800;
  top: 100%;
  right: 0;
  width: 200px;
}
nav ul li:hover > ul {
  display: block;
}
nav ul ul li {
  float: none;
  border-top: 1px solid #940000;
  border-bottom: 1px solid #940000;
}
nav ul ul li a {
  padding: 5px;
  color: #fff;
}
nav ul ul li a:hover {
  background: #112f44;
}
nav ul ul ul {
  right: 100%;
  top: 0;
}

/* ---------- دکمه‌ها ---------- */
button {
  background-color: #007bff !important;
  color: #fff !important;
  cursor: pointer;
  border: none !important;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #0056b3 !important;
}

/* ---------- فونت‌ها ---------- */
@font-face {
  font-family: 'B Nazanin';
  src: url('../../fonts/B Nazanin.woff2') format('woff2'),
       url('../../fonts/B Nazanin.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'B Nazanin';
  src: url('../../fonts/B Nazanin Bold.woff2') format('woff2'),
       url('../../fonts/B Nazanin Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'B Nazanin';
  src: url('../../fonts/B Nazanin Italic.woff2') format('woff2'),
       url('../../fonts/B Nazanin Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
}

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 768px) {
  html {
    font-size: 15px !important;
  }
  body {
    padding: 1rem !important;
  }
  h1 {
    font-size: 1.8rem !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px !important;
  }
  h1 {
    font-size: 1.5rem !important;
  }
  h2 {
    font-size: 1.3rem !important;
  }
  nav, footer {
    text-align: center !important;
  }
}