/* === تنظیمات عمومی === */
* {
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}

body {
  background: #e9f3fb;
  margin: 0;
  direction: rtl;
  color: #222;
  line-height: 1.8;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

/* === هدر === */
header {
  background: #fff;
  border-bottom: 2px solid #dce7f2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 0;
}

header nav a {
  color: #004085;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}

header nav a:hover {
  color: #007bff;
}

/* === بخش اصلی === */
main {
  padding: 20px 0;
}

.line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
 .line img {
  width: 100%;
}
/* === کارت مقاله === */
.articles .col {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  width: 31%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
}

.articles .col:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.articles article img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.articles h3 {
  font-size: 17px;
  margin: 8px 0;
}

.articles h3 a {
  color: #003366;
  text-decoration: none;
}

.articles h3 a:hover {
  color: #007bff;
}

.articles p {
  color: #444;
  font-size: 15px;
  text-align: justify;
}

/* === فوتر === */
footer {
  background: #004085;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  font-size: 14px;
  border-top: 3px solid #0062cc;
}

/* === ریسپانسیو === */
@media (max-width: 992px) {
  .articles .col {
    width: 47%;
  }
}

@media (max-width: 600px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .articles .col {
    width: 100%;
  }
 
  .articles article img {
    width: 100%;
  }
}

/* article part */

.article-page article {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 20px;
  line-height: 2;
}

.article-page h1 {
  color: #003366;
  font-size: 22px;
  margin-bottom: 15px;
}

.article-page .meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.article-page .article-body img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 10px auto;
}

.article-page .tags {
  margin-top: 30px;
}

.article-page .tags a {
  display: inline-block;
  background: #eef3fa;
  color: #004085;
  padding: 4px 10px;
  margin: 3px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}
.article-page .tags a:hover {
  background: #d9e6fa;
}

