html, body {
  margin: 0;
  padding: 0;
  font-family: "Vazir", sans-serif;
  background-color: #111;
  color: #fff;
  height: 100%;
}

h2 {
    text-align: center;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 50px 20px;
}

header {
  background: #222;
  padding: 10px 0;
  text-align: center;
  position: relative;
}

.nav-bar a {
  text-decoration: none;
  color: #fff;
  margin: 0 15px;
  font-size: 16px;
  transition: color 0.3s;
}
.nav-bar a:hover {
  color: #ff9800;
}

.copy-link {
  position: absolute;
  top: 10px;
  left: 20px;
}
.copy-btn {
  padding: 8px 15px;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.copy-btn:hover {
  background: #e68900;
}

footer {
  background: #1a1a1a;
  padding: 20px 10px;
  width: 100%;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-right,
.footer-left {
  flex: 1;
  min-width: 300px;
}

.footer-right h2,
.footer-left h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
  font-weight: bold;
}

.footer-right p,
.footer-left p {
  font-size: 16px;
  line-height: 1.8;
  margin: 5px 0;
}

.orange {
  color: orange;
  font-weight: bold;
}

.green {
  color: #25D366;
  font-weight: bold;
}

.blue {
  color: #0088cc;
  font-weight: bold;
}

.trust-seal-center {
  text-align: center;
  margin: 15px 0;
}
.trust-seal-center img {
  width: 110px;
}

.footer-icons {
  text-align: center;
  margin: 10px 0;
}
.footer-icons a {
  color: #fff;
  font-size: 28px;
  margin: 0 10px;
  transition: color 0.3s;
}
.footer-icons a:hover {
  color: #ff9800;
}

.dev-credit {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  margin-top: 10px;
}

/* استایل‌های پست‌ها */
.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 20px auto;
}

.post-card {
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-8px);
}

.post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #fff;
}

.post-excerpt {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 15px;
  line-height: 1.6;
}

.read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #ff9800;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.read-more-btn:hover {
  background: #e68900;
}

/* استایل نوار صفحه‌بندی */
.pagination {
  text-align: center;
  margin: 30px 0;
}

.page-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 10px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.page-btn:hover {
  background: #ff9800;
}

.page-btn.disabled {
  background: #555;
  color: #999;
  pointer-events: none;
  cursor: not-allowed;
}

.page-number {
  font-size: 16px;
  color: #ccc;
  margin: 0 15px;
}

/* استایل صفحه پست */
.post-detail {
  max-width: 1000px;
  margin: 0 auto;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.post-main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.post-summary {
  padding: 20px;
  background: #1a1a1a;
  border-radius: 8px;
  margin: 20px 0;
}

.post-summary h1 {
  font-size: 28px;
  margin: 0 0 10px;
  color: #fff;
}

.post-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.post-meta span {
  font-size: 14px;
  color: #aaa;
}

.post-date {
  font-size: 14px;
  color: #aaa;
}

.summary-text {
  font-size: 16px;
  color: #ccc;
  line-height: 1.8;
}

.video-section {
  padding: 20px;
  background: #1a1a1a;
  border-radius: 8px;
  margin: 20px 0;
}

.video-section h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
}

.video-link {
  display: inline-block;
  padding: 12px 25px;
  background: #ff9800;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}
.video-link:hover {
  background: #e68900;
}

.post-details {
  padding: 20px;
  margin-bottom: 20px;
}

.post-details h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
}

.post-details h3 {
  font-size: 20px;
  color: #ff9800;
  margin: 15px 0 10px;
}

.post-details p {
  font-size: 16px;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 10px;
}

.download-box {
  padding: 20px;
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 20px;
}

.download-box h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
}

.download-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #ff9800;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #e68900;
}

.download-info {
  margin-top: 15px;
}
.download-info p {
  font-size: 14px;
  color: #aaa;
  margin: 5px 0;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .posts-container {
    grid-template-columns: 1fr;
  }
  .post-card {
    max-width: 500px;
    margin: 0 auto;
  }
  .post-main-image {
    height: 250px;
  }
  .post-summary h1 {
    font-size: 22px;
  }
  .post-meta {
    flex-direction: column;
  }
  .video-section h2 {
    font-size: 20px;
  }
  .post-details h2 {
    font-size: 20px;
  }
  .post-details h3 {
    font-size: 18px;
  }
  .download-box {
    padding: 15px;
  }
}