@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@font-face {
    font-family: 'Dana';
    src: url('fonts/Dana.woff2') format('woff2'),
         url('fonts/Dana.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
  --bg-gradient: linear-gradient(135deg, #38bdf8, #6366f1);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent: #38bdf8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
 font-family: 'Dana' !important;
}

body {
  font-family: 'Dana', sans-serif !important;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.25), transparent 60%),
    #0f172a;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.8;
  overflow-x: hidden;
  margin: 0;
  color: #212121;
  line-height: 1.8;
}

/* ===== Header ===== */
header {
  backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

header .title h1 {
  margin: 0;
  font-size: 1.8em;
}

header .title span {
  font-size: 0.9em;
  color: #777;
}

/* ===== H1 Link Style ===== */

header h1 a {
  text-decoration: none;
  display: inline-block;
  position: relative;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
  margin-bottom: 0.6em;

}

/* افکت خط انیمیشنی زیر عنوان */
header h1 a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--bg-gradient);
  border-radius: 3px;
  transition: width 0.3s ease;

}

/* هاور */
header h1 a:hover::after {
  width: 100%;
}

header h1 a:hover {
  transform: translateY(-2px);
}
nav a.selected {
  color: #0078ff;
  border-bottom: 2px solid #0078ff;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

header nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  border-radius: 0 0 var(--radius) var(--radius);
  animation: fadeIn 1s ease both;
}

.hero h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero .btn-primary {
  background: var(--bg-gradient);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

.hero .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.6);
}


/* عنوان مقاله */
h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* لینک داخل عنوان */
h2 a {
  position: relative;
  text-decoration: none;
  color: #222;
  transition: color 0.3s ease;
}

/* خط زیرین انیمیشنی */
h2 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #007cf0, #00dfd8);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* هاور */
h2 a:hover {
  color: #007cf0;
}

h2 a:hover::after {
  width: 100%;
}


/* ===== Cards Section ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 60px 40px;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
}

.card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn i {
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Forms ===== */
form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 500px;
  margin: 60px auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

form h3 {
  text-align: center;
  margin-bottom: 20px;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  margin-bottom: 16px;
  transition: var(--transition);
}

form input:focus,
form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
  outline: none;
}

/* ===== Footer ===== */
footer {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--glass-border);
  padding: 30px 40px;
  text-align: center;
  color: var(--text-secondary);
  background: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #666;
  margin-top: 40px;
  border-top: 1px solid #eee;
}

footer a {
  color: var(--accent);
  margin: 0 8px;
  transition: var(--transition);
}

footer a:hover {
  color: #fff;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 12px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .cards {
    padding: 40px 20px;
  }
}



main {
  display: flex;
  gap: 30px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.content {
  flex: 3;
}

.main-wrapper {
  display: flex;
  gap: 30px; /* فاصله بین ستون‌ها */
  flex-wrap: wrap; /* ستون‌ها روی موبایل زیر هم می‌افتند */
}

.content {
  flex: 0 0 70%;
  max-width: 70%;
}

.sidebar {
  flex: 0 0 30%;
  max-width: 30%;
  background: var(--sidebar-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px var(--shadow);
}

/* واکنش‌گرایی موبایل */
@media (max-width: 768px) {
  .content, .sidebar {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .main-wrapper {
    gap: 20px;
    padding: 25px 0;
  }
}

.post-card {
  position: relative;
  width: 100%;
  max-width: 100%;      /* محدود کردن عرض */
  overflow: hidden;     /* جلوگیری از بیرون زدن محتوا */
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.post-card h2 {
  margin-top: 0;
}

.post-meta {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 10px;
}
.readmore {
  text-align: center; /* اگر نمیخوای وسط باشه حذفش کن */
  margin-top: 20px;
}

.readmore a {
  display: inline-flex;              /* بهتر از inline-block */
  align-items: center;               /* وسط‌چین عمودی متن */
  justify-content: center;

  padding: 0 28px;
  min-height: 48px;                  /* بهتر از height ثابت */
  
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;

  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;

  background: radial-gradient(
    100% 100% at 100% 0%, 
    #89E5FF 0%, 
    #5468FF 100%
  );

  box-shadow:
    0 2px 4px rgba(45, 35, 66, 0.4),
    0 7px 13px -3px rgba(45, 35, 66, 0.3),
    inset 0 -3px 0 rgba(58, 65, 111, 0.5);

  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);

  transition: all 0.15s ease;
}

.readmore a:hover {
  box-shadow:
    0 4px 8px rgba(45, 35, 66, 0.4),
    0 7px 13px -3px rgba(45, 35, 66, 0.3),
    inset 0 -3px 0 #3c4fe0;

  transform: translateY(-2px);
}

.readmore a:active {
  box-shadow: inset 0 3px 7px #3c4fe0;
  transform: translateY(2px);
}

.widget {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
  padding: 20px;
}

.widget h3 {
  border-bottom: 2px solid #0078ff;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

																																																																														
	/* ===== Post Summary Image Styling (Fix Overflow) ===== */
.post-card summary {
  display: block;
  overflow: hidden;  /* عکس داخل summary محدود شود */
  padding: 0;
  margin: 0;
}
/* ===== Post Summary Image Styling - اصلاح ارتفاع ===== */
																																																																														
																																																																														
img{
  max-width: 100%;

}
.post-card summary img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;  /* نسبت تصویر استاندارد برای کارت */
  object-fit: cover;      /* برش مناسب بدون کشیدگی */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: center;
}

/* افکت hover روی عکس */
.post-card summary img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
  .post-card summary img {
    aspect-ratio: 16 / 9;
    max-height: 180px;  /* ارتفاع کمتر برای موبایل */
  }
}	/* ===== لینک summary مدرن و شیک با اولویت بالا ===== */
.post-card summary a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;

  font-weight: 600 !important;
  color: #fff !important;                  
  font-size: 13px !important;              

  padding: 6px 20px !important;            
  border-radius: 32px !important;           

  background: linear-gradient(135deg, #7c8aff, #3c4fe0) !important;
  
  box-shadow: 
    0 4px 12px rgba(37, 44, 97, 0.15), 
    0 1px 3px rgba(93, 100, 148, 0.12) !important;
  
  transition: all 0.25s ease !important;
}

/* هاور */
.post-card summary a:hover {
  background: linear-gradient(135deg, #3c4fe0, #7c8aff) !important; 
  box-shadow: 
    0 6px 20px rgba(37, 44, 97, 0.2),
    0 2px 6px rgba(93, 100, 148, 0.15) !important;
  transform: translateY(-3px) scale(1.03) !important;                
}		
																																																																														
																																																																														
/* فقط لینک‌های داخل summary */
.summary a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  color: #1d4ed8;
  background-color: #f3f4f6;
  transition: all 0.25s ease;
}

/* هاور لینک داخل summary */
.summary a:hover {
  background-color: #1d4ed8;
  color: #fff;
  transform: translateY(-2px);
}
/* ===== Sidebar & Widget Unified Style (Replace Old Sidebar Styles) ===== */

.sidebar {
  background: var(--sidebar-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.sidebar .widget {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
  padding: 20px;
}

.sidebar .widget h3 {
  border-bottom: 2px solid #0078ff;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* حذف بولت و فاصله‌های اضافی */
.sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .widget ul li {
  margin: 0 0 8px 0;
  padding: 0;
}

/* استایل یکدست برای تمام لینک‌ها داخل ویجت */
.sidebar .widget a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 14px;
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* هاور */
.sidebar .widget a:hover {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* لینک فعال */
.sidebar .widget a.active {
  background: #6366f1;
  color: #fff;
  font-weight: 600;
}																																																																											
																																																																														/* ===== Select Box Styling ===== */
form select {
  width: 100%;                     /* پر کردن عرض کارت یا فرم */
  padding: 10px 14px;              /* فضای داخلی مناسب */
  border-radius: 10px;             /* گوشه‌های گرد */
  border: 1px solid rgba(0,0,0,0.2); 
  background-color: #f8fafc;       /* رنگ پس‌زمینه روشن */
  color: #1e293b;                  /* رنگ متن */
  font-weight: 500;
  font-size: 0.95rem;
  appearance: none;                 /* حذف استایل پیش‌فرض مرورگر */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='5' viewBox='0 0 10 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 5 5-5H0z' fill='%236368f1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 5px;
}

/* هاور روی select */
form select:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(56,189,248,0.2);
}

/* حالت فوکوس */
form select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.3);
  outline: none;
  background-color: #f0f9ff;
}

/* واکنش‌گرا موبایل */
@media (max-width: 768px) {
  form select {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}
																																																																														
																																																																														/* ===== Checkboxes کنار هم ===== */
form input[type="checkbox"] {
  width: auto;                /* حذف width:100% */
  display: inline-flex;       /* کنار هم قرار گرفتن */
  align-items: center;        /* وسط چین عمودی */
  margin-right: 12px;         /* فاصله بین checkbox ها */
  cursor: pointer;
  transform: scale(1.1);      /* بزرگنمایی کمی برای ظاهر بهتر */
}

/* label مرتبط با checkbox */
form label[for="frm_isprivate"] {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  margin-right: 20px;         /* فاصله بین label و checkbox بعدی */
display: flex + justify-content + align-items
}

/* حالت هاور */
form input[type="checkbox"]:hover + label,
form label[for="frm_isprivate"]:hover {
  color: #38bdf8;
}
																																																																														/* ===== کادر برای متن توضیح فرم ===== */
form > div:nth-child(4) div div div {
  font-size: 0.9rem;            /* اندازه متن */
  color: #1e293b;                /* رنگ متن */
  line-height: 1.5;              /* خوانایی بهتر */
  font-style: normal;             /* بدون ایتالیک اگر خواستی */
  margin-top: 10px;
  margin-bottom: 12px;
  
  background-color: #f0f9ff;     /* پس‌زمینه کادر روشن */
  border: 1px solid #38bdf8;     /* حاشیه شیک */
  border-radius: 10px;            /* گوشه‌های گرد */
  padding: 12px 16px;             /* فاصله متن از لبه‌ها */
  box-shadow: 0 4px 8px rgba(56,189,248,0.15); /* سایه ملایم */
}

/* لینک‌ها داخل متن توضیح */
form > div:nth-child(4) div div div a {
  color: #38bdf8;
  text-decoration: underline;
  transition: color 0.3s ease;
}

form > div:nth-child(4) div div div a:hover {
  color: #6366f1;
}
																																																																														
																																																																														/* ===== Textarea مدرن با کادر ===== */
form > div:nth-child(4) div textarea {
  width: 100%;                  /* عرض کامل والد */
  min-height: 120px;             /* ارتفاع مناسب */
  padding: 12px 16px;            /* فاصله متن از لبه‌ها */
  border-radius: 10px;            /* گوشه‌های گرد */
  border: 1px solid #38bdf8;     /* حاشیه شیک */
 
  color: #1e293b;                 /* رنگ متن */
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;              /* فقط تغییر ارتفاع امکان‌پذیر */
  box-shadow: 0 4px 8px rgba(56,189,248,0.15); /* سایه ملایم */
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* حالت فوکوس */
form > div:nth-child(4) div textarea:focus {
  border-color: #CFD8DC;
  background-color: #E1F5FE;
  outline: none;
  box-shadow: 0 6px 12px rgba(56,189,248,0.25);
}

/* واکنش‌گرا موبایل */
@media (max-width: 768px) {
  form > div:nth-child(4) div textarea {
    min-height: 100px;
    font-size: 0.9rem;
    padding: 10px 14px;
  }
}
																																																																														/* ===== کل کادر توضیحات پست با متن inline ===== */
.post-meta {
  background-color: #1e293b;   /* پس‌زمینه تیره */
  color: #f8fafc;              /* متن روشن */
  padding: 8px 12px;           /* فاصله متن از لبه‌ها */
  border-radius: 8px;           /* گوشه‌های گرد */
  margin-bottom: 12px;          /* فاصله از محتوا */
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;                /* قرار دادن span ها کنار هم */
  flex-wrap: wrap;              /* اگر کمبود فضا بود، ردیف بعدی */
  gap: 8px;                     /* فاصله بین span ها */
  box-sizing: border-box;
}

/* جداکننده خط عمودی */
.post-meta span + span::before {
  content: "|";                 /* جداکننده */
  margin: 0 6px;                /* فاصله قبل و بعد خط عمودی */
  color: #cbd5e1;               /* رنگ ملایم جداکننده */
}

/* هاور روی کل کادر (اختیاری) */
.post-meta:hover {
  background-color: #111827;    /* تیره‌تر هنگام هاور */
}

/* لینک‌ها داخل post-meta */
.post-meta a {
  color: #38bdf8;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.post-meta a:hover {
  color: #60a5fa;
}
																																																																														
																																																																														/* ===== لینک‌های مدرن بدون زیرخط ===== */
.content-body a,
.post-meta a {
  color: #3b82f6;              /* رنگ لینک شفاف و جذاب */
  text-decoration: none;        /* حذف زیرخط */
  font-weight: 500;
  position: relative;           /* برای pseudo-element */
  transition: color 0.3s ease;
}

/* خط انیمیشنی هنگام هاور */
.content-body a::after,
.post-meta a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;                 /* فاصله خط از متن */
  width: 0;
  height: 2px;                  /* ضخامت خط */
  background-color: #60a5fa;    /* رنگ خط */
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* هاور روی لینک‌ها */
.content-body a:hover::after,
.post-meta a:hover::after {
  width: 100%;                  /* خط کامل زیر متن */
}

/* تغییر رنگ متن هنگام هاور (اختیاری) */
.content-body a:hover,
.post-meta a:hover {
  color: #2563eb;               /* رنگ کمی تیره‌تر یا متغیر */
}
																																																																																				
																																																																																				
																																																																																				
/* کلاس مستقل برای تگ کلود شبیه ویجت */
.tagcloud-standalone {
    padding: 12px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* عنوان ویجت */
.tagcloud-standalone h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

/* تگ‌ها پشت سر هم و کوچک */
.tagcloud-standalone a {
    display: inline-block;
    margin: 2px 4px;
    padding: 3px 7px;
    font-size: 12px;   /* فونت کوچک */
    text-decoration: none;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

/* هاور تگ‌ها */
.tagcloud-standalone a:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* تگ انتخاب شده */
.tagcloud-standalone a.tag_selected {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* پشت سر هم بودن و شکستن خطوط در صورت طولانی بودن */
.tagcloud-standalone view\\:tag_cloud {
    display: block;
    word-wrap: break-word;
}
																																																																																				
																																																																																				/* کل پنل صفحه بندی */
.pagination {
    display: flex;
    justify-content: space-between; /* فاصله یکنواخت بین لینک‌ها */
    align-items: center;
    flex-wrap: wrap;  /* اگر طولانی شد به خط بعدی برود */
    background-color: #fff; /* پس‌زمینه سفید کل پنل */
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 20px 0;
    font-family: Tahoma, sans-serif;
}

/* لیست شماره صفحات */
.pagesList {
    display: flex;
    justify-content: space-between; /* فاصله یکنواخت بین شماره صفحات */
    flex-wrap: wrap;
    flex: 1; /* اشغال حداکثر فضای پنل */
    gap: 5px; /* فاصله بین صفحات */
}

/* لینک شماره صفحات */
.pagesList a {
    flex: 1; /* هر شماره صفحه به صورت یکنواخت عرض می‌گیرد */
    text-align: center;
    padding: 5px 0;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    transition: all 0.2s;
}

/* صفحه فعلی */
.pagesList a.page_current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: bold;
}

/* فاصله بین صفحات */
.pagesList span.spacer {
    display: inline-block;
    padding: 5px 8px;
    color: #999;
}

/* لینک قبلی / بعدی */
.pagePrev, .pageNext {
    display: inline-block;
    padding: 20px 10px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    transition: all 0.2s;
    margin: 0.1rem 20px;
}

/* هاور قبلی / بعدی */
.pagePrev:hover, .pageNext:hover ,.pagesList a:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* clear fix */
.clear {
    clear: both;
}
																																																																																				
																																																																																				
																																																																																				/* باکس هشدار */
.item_err {
    padding: 12px 15px;
    background-color: #D50000; /* رنگ هشدار قرمز روشن */
    border: 1px solid #F44336; /* حاشیه قرمز ملایم */
    color: #F5F5F5; /* رنگ متن هشدار */
    border-radius: 6px; /* گوشه‌های گرد */
    font-size: 14px;
    margin: 15px 0;
    line-height: 1.5;
}

/* اگر بخواهی آیکون هشدار اضافه شود */
.item_err::before {
    content: "⚠️"; /* آیکون هشدار */
    margin-right: 8px;
    font-size: 16px;
}

/* هاور (اختیاری) */
.item_err:hover {
    background-color: #F44336;
    border-color: #D50000;
    cursor: default;
}
.icon {
    display: none !important;
}
.fldcontent {
    direction: ltr; /* جهت متن از چپ به راست */
    text-align: left; /* برای اطمینان از چپ‌چین شدن متن */
}
																																																																																				
																																																																																				/* === ظرف کلی رأی‌دهی === */
.post-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Arial, sans-serif;
}

/* === دکمه‌های رأی === */
.post-rating .rate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background-color: #888;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* رنگ دکمه‌های پیش‌فرض */
.post-rating .up-rate {
    background-color: #4caf50; /* سبز */
}
.post-rating .down-rate {
    background-color: #f44336; /* قرمز */
}

/* === حالات مختلف دکمه‌ها === */
/* حالت هاور (وقتی موس روشه) */
.post-rating .rate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* وقتی کاربر رأی داده (حالت فعال) */
.post-rating .rate-button.rated {
    opacity: 0.8;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* تعداد رأی‌ها */
.post-rating .count {
    margin-left: 6px;
    font-size: 14px;
    font-weight: normal;
    color: #fff;
}

/* وضعیت کاربر (متن زیر دکمه‌ها) */
.post-rating .user-status {
    font-size: 13px;
    color: #555;
    margin-left: 12px;
}


/* ===== ظرف کل رأی‌دهی ===== */
.post-rating {
    background: #fff; /* پس‌زمینه سفید */
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px; /* فاصله بیشتر از پایین */
    box-shadow: 0px 4px 8px rgba(0,0,0,0.07);
}

/* ===== استایل دکمه‌های رأی ===== */
.post-rating .rate-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #e9f5ea; /* سبز خیلی روشن */
    border: 2px solid #b2d8b2; /* سبز کمرنگ */
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #2d6030; /* سبز تیره‌تر برای متن */
    transition: 0.2s ease-in-out;
}

/* ===== رنگ سبز (موافق) ===== */
.post-rating .up-rate {
    background: #e9f5ea;      /* سبز روشن */
    border-color: #b2d8b2;    /* سبز کمرنگ */
    color: #2d6030;
}
.post-rating .up-rate:hover {
    background: #d4ebd6;      /* سبز کمی تیره‌تر روی هاور */
}

/* ===== رنگ قرمز (مخالف) ===== */
.post-rating .down-rate {
    background: #fde9e9;      /* قرمز روشن */
    border-color: #edb2b2;    /* قرمز کمرنگ */
    color: #7a2d30;           /* قرمز تیره‌تر برای متن */
}
.post-rating .down-rate:hover {
    background: #f8d4d4;      /* قرمز کمی تیره‌تر روی هاور */
}

/* ===== وقتی کاربر رأی داده ===== */
.post-rating .rate-button.rated.up-rate {
    background: #7ac589;      /* سبز پررنگ‌تر وقتی رأی موافق داده شده */
    border-color: #5ea267;
    color: #B0BEC5;
}
.post-rating .rate-button.rated.down-rate {
    background: #e06666;      /* قرمز پررنگ‌تر وقتی رأی مخالف داده شده */
    border-color: #b94f4f;
    color: #B0BEC5;
}

/* ===== شمارش رأی ===== */
.post-rating .count {
    font-size: 15px;
    font-weight: 600;
}

/* ===== متن وضعیت کاربر ===== */
.post-rating .user-status {
    font-size: 13px;
    color: #666;
    margin-left: 12px;
}																																																																																				