
:root{
  --orange-primary:#ff8c42;
  --orange-dark:#e67e22;
  --text-dark:#2c3e50;
  --text-medium:#5a6c7d;
  --bg-light:#f8f9fa;
  --white:#fff;
  --border-light:#ecf0f1;
  --shadow: 0 5px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
  --card-border:#e4d5a2;
}

*{box-sizing:border-box;}
body{
  font-family:"Vazirmatn","Helvetica Neue",Arial,sans-serif;
  color:var(--text-dark);
  background:#fff;
  margin:0;
  padding:0;
  direction:ltr;
}


.blog-container {
  max-width:1200px;
  margin:60px auto;
  padding:0 20px;
  min-height:500px;
}

.blog-title {
  text-align:center;
  color:var(--text-dark);
  margin-bottom:40px;
  font-size:2.1rem;
}


.articles-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
  margin-bottom:40px;
}


.article-card {
  background:var(--white);
  border-radius:12px;
  overflow:hidden;
  border:2px solid var(--card-border);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  transition:transform .25s ease,box-shadow .25s ease;
}

.article-card:hover {
  transform:translateY(-6px);
  box-shadow:var(--shadow-hover);
}

.article-thumbnail {
  width:100%;
  height:200px;
  background:#f5f5f5;
  overflow:hidden;
  position:relative;
}

.article-thumbnail img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .3s ease;
}

.article-card:hover .article-thumbnail img {
  transform:scale(1.05);
}

.article-content {
  padding:18px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.article-title,
.article-excerpt {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.4em;
}

.article-title {
  max-height: calc(1.4em * 2); 
  margin:0 0 12px 0;
  font-size:1.15rem;
  color:var(--text-dark);
  font-weight:700;
}

.article-excerpt {
  flex:1;
  color:var(--text-medium);
  margin-bottom:14px;
  font-size:.95rem;
  max-height: calc(1.4em * 3); 
}

.article-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--border-light);
  padding-top:12px;
  margin-top:auto;
}

.article-date {
  background:var(--bg-light);
  padding:6px 10px;
  border-radius:10px;
  color:var(--text-medium);
  font-size:.9rem;
}

.read-more-btn {
  background:var(--orange-primary);
  color:var(--white);
  padding:8px 14px;
  border-radius:20px;
  text-decoration:none;
  font-weight:700;
  transition:transform .18s ease;
}

.read-more-btn:hover {
  transform:scale(1.03);
  background:var(--orange-dark);
}


.single-article-container {
  max-width:900px;
  margin:0 auto;
  padding:20px;
}

.single-article {
  background:var(--white);
  border-radius:12px;
  border:1px solid var(--border-light);
  box-shadow:var(--shadow-hover);
  overflow:hidden;
}

.article-featured-image {
  width:100%;
  height:420px;
  overflow:hidden;
  background:#f5f5f5;
}

.article-featured-image img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.article-header {
  padding:32px;
  border-bottom:1px solid var(--border-light);
}

.article-main-title {
  font-size:2rem;
  margin:0 0 8px 0;
  color:var(--text-dark);
}

.article-meta {
  color:var(--text-medium);
  font-size:.95rem;
}


.article-content-full {
  padding:36px;
  line-height:1.85;
  font-size:1.05rem;
  color:var(--text-dark);
}

.article-content-full p {
  margin-bottom:1.3em;
  text-align:justify;
}

.article-content-full img.article-image,
.article-content-full img {
  max-width:100%;
  height:auto;
  border-radius:10px;
  margin:22px 0;
  display:block;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.article-content-full video,
.article-content-full iframe {
  max-width:100%;
  display:block;
  margin:22px 0;
  border-radius:8px;
}


.article-content-full h1 {
  font-size:1.7rem;
  margin:26px 0 12px;
  border-bottom:3px solid var(--orange-primary);
  padding-bottom:8px;
}

.article-content-full h2 {
  font-size:1.4rem;
  margin:20px 0;
  border-bottom:2px solid #ffd9c6;
  padding-bottom:8px;
}

.article-content-full h3 {
  font-size:1.15rem;
  margin:18px 0;
  color:var(--orange-dark);
}


.article-content-full blockquote {
  border-left:4px solid var(--orange-primary);
  padding:16px 20px;
  background:var(--bg-light);
  margin:20px 0;
  border-radius:4px;
}

.article-content-full pre {
  background:#f6f7f8;
  padding:16px;
  border-radius:8px;
  overflow:auto;
}


.back-link {
  display:inline-block;
  margin:30px 0;
  padding:8px 18px;
  border:2px solid var(--orange-primary);
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  color:var(--orange-primary);
  transition:all .2s ease;
}

.back-link:hover {
  background:var(--orange-primary);
  color:#fff;
}


.pagination-container {
  text-align:center;
  margin:40px 0;
}

.pagination {
  display:inline-flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.pagination-page,
.pagination-btn {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:36px;
  height:36px;
  border:2px solid var(--orange-primary);
  border-radius:50%;
  text-decoration:none;
  color:var(--orange-primary);
  font-weight:600;
  transition:all .2s ease;
}

.pagination-page.current-page,
.pagination-page:hover,
.pagination-btn:hover {
  background:var(--orange-primary);
  color:#fff;
}


.article-content-full figure,
.article-content-full figcaption,
.article-content-full .media-toolbar,
.article-content-full button {
  display: none !important;
}


@media (max-width: 1024px) {
  .menu-logo-container { gap:20px; }
  .main-menu { gap:15px; }
  .main-menu a { font-size:14px; padding:6px 10px; }
  .logo h2 { font-size:18px; }
}

@media (max-width: 768px) {
  .main-menu { display:none; }
  .hamburger-menu { display:flex; }
  .menu-logo-container { flex-direction:row-reverse; gap:15px; }
  .logo h2 { font-size:16px; }
  .phone-number-container button { padding:10px 15px; font-size:12px; }
  header { padding:12px 20px; }
  .footer-info-box { flex-direction:column; text-align:center; gap:15px; }
  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-social { padding:10px; }
  .footer-about-logo { justify-content:center; }
  .footer-contact p { justify-content:center; }
  .footer-info-box h4 { font-size:20px; }
}

@media (max-width: 480px) {
  .logo h2 { font-size:14px; }
  .phone-number-container button { padding:8px 12px; font-size:11px; }
  .mobile-menu { width:280px; }
  .footer-social a { font-size:24px; margin:0 5px; }
  .footer-about p { font-size:14px; }
}
