/* پیش‌فرض: مخفی روی دسکتاپ */
.mobile-nav {
    display: none;
}

/* فقط روی موبایل (عرض کمتر از 768px) نمایش داده شود */
@media (max-width: 768px) {
    .mobile-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        z-index: 999;
    }

    .mobile-nav ul {
        display: flex;
        justify-content: space-around;
        margin: 0;
        padding: 5px 0;
        list-style: none;
    }

    .mobile-nav li {
        text-align: center;
        flex: 1;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #333;
        font-size: 13px;
    }

    .mobile-nav a i {
        font-size: 20px;
        margin-bottom: 2px;
        color: #00A8CC;
    }

    .mobile-nav a:hover i {
        color: #FF7A00;
    }
}

/* نوار بالای سایت */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* جلوگیری از رفتن زیر هم */
    padding: 10px 20px;
}

/* شماره‌ها همیشه زیر هم */
.contact-numbers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* لوگو وسط */
.site-logo {
    flex: 0 0 auto;
    text-align: center;
}

/* دکمه سمت چپ */
.service-request {
    flex: 0 0 auto;
}

/* استایل شماره‌ها */
.phone-item {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
}
.phone-link {
    color: #212529;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

/* اسم سایت شیک */
.site-title {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    padding: 6px 14px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin: 0;
}

/* دکمه درخواست سرویس (قرمز ملایم با کادر دوردار سفید) */
.cta-button {
    display: inline-block;
    background: #e74c3c; /* قرمز ملایم‌تر */
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    animation: blink-red-white 1s infinite;
    transition: all 0.3s ease;
    border: 2px solid #fff; /* کادر سفید دور دکمه */
}
.cta-button:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* انیمیشن چشمک‌زن قرمز/سفید */
@keyframes blink-red-white {
    0%   { background: #e74c3c; color: #fff; border-color: #fff; }
    50%  { background: #ffffff; color: #e74c3c; border-color: #e74c3c; }
    100% { background: #e74c3c; color: #fff; border-color: #fff; }
}

/* ریسپانسیو: فقط متن‌ها کوچکتر بشن */
@media (max-width: 768px) {
    .phone-link { font-size: 13px; }
    .site-title { font-size: 18px; padding: 5px 10px; }
    .cta-button { font-size: 13px; padding: 6px 10px; }
}

/* پس‌زمینه کلی فوتر */
.site-footer {
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* گرادیان آبی تیره */
    padding: 50px 20px;
    font-family: 'Vazirmatn', sans-serif;
    color: #fff;
}

/* ساختار چهارستونی */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* فاصله بین ستون‌ها */
    margin-bottom: 30px;
}

/* هر ستون داخل کارت شیک */
.footer-column {
    background: rgba(255,255,255,0.05); /* نیمه‌شفاف برای کنتراست */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* تیتر ستون‌ها */
.footer-column h2 {
    font-size: 18px;
    font-weight: 700;
    color: #00c6ff;
    margin-bottom: 15px;
    border-bottom: 2px solid #00c6ff;
    padding-bottom: 6px;
}

/* متن */
.footer-column p, 
.footer-column li, 
.footer-column a {
    font-size: 14px;
    line-height: 1.6;
    color: #f1f1f1;
}

/* لینک‌ها */
.footer-column a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.footer-column a:hover {
    color: #ffc107;
}

/* بخش پایین فوتر */
.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #ddd;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}
.hero {
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* گرادیان آبی تیره */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

/* افکت مدرن خطوط نور */
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: hero-glow 8s linear infinite;
}

@keyframes hero-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f1f1f1;
}

/* دکمه درخواست سرویس */
.hero .cta-button {
    display: inline-block;
    background: #e74c3c; /* قرمز ملایم */
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid #fff; /* کادر سفید دور دکمه */
    animation: blink-red-white 1s infinite;
    transition: all 0.3s ease;
}

.hero .cta-button:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* انیمیشن چشمک‌زن */
@keyframes blink-red-white {
    0%   { background: #e74c3c; color: #fff; border-color: #fff; }
    50%  { background: #ffffff; color: #e74c3c; border-color: #e74c3c; }
    100% { background: #e74c3c; color: #fff; border-color: #fff; }
}
/* بخش چرا ما */
.why-us {
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* هماهنگ با قالب */
    padding: 60px 20px;
    color: #fff;
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
}

.why-us .section-title {
    font-size: 26px;
    font-weight: 800;
    color: #00c6ff;
    margin-bottom: 40px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.why-item i {
    font-size: 40px;
    color: #ffc107;
    margin-bottom: 15px;
}

.why-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.why-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #f1f1f1;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}
.counters {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
}

.counters .section-title {
    font-size: 26px;
    font-weight: 800;
    color: #00c6ff;
    margin-bottom: 40px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.counter-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.counter-number {
    font-size: 32px;
    font-weight: 800;
    color: #ffc107;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.counter-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f1f1f1;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .counter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .counter-grid {
        grid-template-columns: 1fr;
    }
}
.testimonials {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
}

.testimonials .section-title {
    font-size: 26px;
    font-weight: 800;
    color: #00c6ff;
    margin-bottom: 40px;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.testimonial-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-6px);
}

.testimonial-text {
    font-size: 15px;
    margin-bottom: 15px;
    color: #f1f1f1;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 700;
    color: #ffc107;
}

/* ریسپانسیو: در موبایل فقط یکی نمایش داده بشه */
@media (max-width: 768px) {
  .testimonial-slider {
    display: block;
    position: relative;
    overflow: hidden; /* برای امنیت؛ اگر متن بلند شد */
  }

  /* همه مخفی، فقط active نمایش داده می‌شود */
  .testimonial-item {
    display: none;
  }

  .testimonial-item.active {
    display: block;
    animation: testimonialFade 600ms ease; /* افکت نرم هنگام جابجایی */
  }

  @keyframes testimonialFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}


.testimonial-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
    text-align: center;
}

.testimonial-item:hover {
    transform: translateY(-6px);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #ffc107;
}

.testimonial-text {
    font-size: 15px;
    margin-bottom: 15px;
    color: #f1f1f1;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 700;
    color: #ffc107;
}
/* سکشن برندها */
.brands {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

/* تیتر سکشن برندها */
.brands .section-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e3c72;
  margin-bottom: 40px;
}

/* گرید برندها */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* کارت برند */
.brand-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* لوگوی برند */
.brand-logo img {
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}

/* —————— حذف قطعی هر خط/underline فقط در سکشن برندها —————— */

/* ریست عمومی لینک‌ها و تزئینات در سکشن برندها */
.brands a,
.brands a *,
.brands .brand-title,
.brands .brand-title *,
.brands .brand-card a,
.brands .brand-card a * {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  text-decoration-thickness: 0 !important;
  text-underline-offset: 0 !important;
  -webkit-text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* خاموشی کامل pseudo-element‌ها که ممکنه خط بسازن */
.brands .brand-title::before,
.brands .brand-title::after,
.brands .brand-card a::before,
.brands .brand-card a::after {
  content: none !important;
  display: none !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* اگر عنوان برند با <u> ساخته شده باشد */
.brands u,
.brands .brand-title u {
  text-decoration: none !important;
}

/* —————— استایل خوانا برای تایتل برند —————— */

/* عنوان برند — بدون خط و خوانا */
.brand-title {
  display: block;               /* بلوک برای کنترل کامل */
  font-size: 16px;
  font-weight: 600;
  color: #333 !important;
  margin-top: 8px;
  line-height: 1.4;
}

/* اگر عنوان برند لینک دارد */
.brand-title a {
  display: inline-block !important;  /* جلوگیری از underline baseline */
  color: #333 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}

/* ریسپانسیو */
@media (max-width:768px){
  .brand-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-items: center;
  }
  .brand-card {
    display: none;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
  }
  .brand-card.active {
    display: block;
    animation: fadeIn 600ms ease;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
/* عنوان برند با کادر رنگی و متن سفید */
.brand-title {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;              /* متن سفید */
  background: #1e3c72;                 /* رنگ برند یا قالب */
  padding: 6px 12px;
  border-radius: 8px;
  margin-top: 8px;
  line-height: 1.4;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

/* افکت hover برای جذابیت بیشتر */
.brand-title:hover {
  background: #ff9800;                 /* رنگ نارنجی هماهنگ با قالب */
  color: #fff !important;
}

.faq {
  background: #eef3f9;
  padding: 60px 20px;
}

.faq .section-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e3c72;
  margin-bottom: 40px;
  text-align: center;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-toggle-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #1e3c72;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-toggle-btn:hover {
  background: #e0eaf6;
}

.faq-icon {
  font-size: 22px;
  font-weight: bold;
  color: #1e3c72;
  transition: transform 0.3s ease;
}

.faq-content {
  max-height: 0;
  opacity: 0;
  padding: 0 24px;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  transition: all 0.4s ease;
}

.faq-item.open .faq-content {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 20px;
}
.special-posts {
  background: #eef3f9;
  padding: 60px 20px;
}

.special-posts .section-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e3c72;
  margin-bottom: 40px;
  text-align: center;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.post-thumb img {
  width: 100%;
  aspect-ratio: 1/1; /* مربع */
  object-fit: cover;
}

.post-info {
  padding: 16px;
  text-align: center;
}

.post-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 12px;
}

.post-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #1e3c72;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.post-btn:hover {
  background: #16325a;
}

/* موبایل: فقط ۲ تای آخر */
@media (max-width:768px){
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-card.hide-mobile {
    display: none;
  }
}
.post-thumb img {
  width: 100%;
  height: 250px;        /* ارتفاع ثابت برای همه کارت‌ها */
  object-fit: contain;  /* تصویر کامل بدون برش */
  background: #fff;     /* پس‌زمینه سفید یا رنگ قالب */
  padding: 10px;        /* فاصله برای تراز شدن */
  border-radius: 8px;
}
/* سکشن بلوک‌ها */
.custom-blocks {
  background: #1e3c72; /* سرمه‌ای قالب */
  padding: 60px 20px;
}

.custom-blocks .section-title {
  font-size: 26px;
  font-weight: 800;
  color: #FFD700; /* طلایی برای تضاد */
  margin-bottom: 40px;
  text-align: center;
}

/* گرید بلوک‌ها */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* کارت بلوک */
.block-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* تصویر داخل بلوک */
.block-thumb img {
  width: 100%;
  height: 220px;
  object-fit: contain; /* بدون برش */
  background: #fafafa;
}

/* اطلاعات بلوک */
.block-info {
  padding: 16px;
}

.block-title {
  font-size: 18px;
  font-weight: 700;
  color: #ff9800;
  margin-bottom: 12px;
}

.block-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

/* دکمه داخل بلوک */
.block-btn {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.block-btn:hover {
  background: linear-gradient(135deg, #e65100, #bf360c);
}

/* مخفی‌سازی بلوک‌های اضافه */
.hidden-block {
  display: none !important;
}

/* دکمه نمایش بیشتر */
.show-more-btn {
  margin: 30px auto 0 auto; /* وسط‌چین */
  display: block;
  padding: 12px 24px;
  background: #FFD700;
  color: #333;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
}

.show-more-btn:hover {
  background: #FFC107;
}

/* موبایل */
@media (max-width:768px){
  .blocks-grid {
    grid-template-columns: repeat(2, 1fr); /* دو تا کنار هم */
  }
  .block-thumb img {
    height: 180px;
  }
  .custom-blocks {
    padding-bottom: 100px; /* فاصله از ناوبری */
  }
}
/* حالت مخفی */
.hidden-block {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

/* حالت نمایان */
.visible-block {
  max-height: 1000px; /* کافی برای محتوا */
  opacity: 1;
  transition: all 0.5s ease;
}
.search-page {
  background: #1e3c72;
  padding: 60px 20px;
}

.search-top {
  margin-bottom: 30px;
  text-align: center;
}

.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #FFD700;
  border-radius: 8px;
  font-size: 16px;
}

.search-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.search-heading {
  font-size: 24px;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 40px;
  text-align: center;
}

.search-page p,
.search-page .no-results,
.search-page .search-message {
  color: #fff;
  font-size: 16px;
  text-align: center;
  margin-top: 20px;
}

/* لیست نتایج */
.search-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-item {
  display: flex;
  align-items: flex-start; /* متن و تصویر از بالا تراز می‌شوند */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  padding: 16px;
  transition: transform 0.3s ease;
}

.search-item:hover {
  transform: translateY(-4px);
}

/* تصویر سمت راست */
.search-thumb {
  flex: 0 0 auto;       /* اندازه بر اساس تصویر */
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f7;
}

.search-thumb-img {
  width: auto;
  height: auto;
  max-width: 200px;     /* محدودیت عرض */
  max-height: 200px;    /* محدودیت ارتفاع */
  display: block;
  object-fit: contain;  /* تصویر کامل، بدون برش */
}

/* متن سمت چپ */
.search-info {
  flex: 1;
}

.search-title a {
  font-size: 18px;
  font-weight: 700;
  color: #ff9800;
  text-decoration: none;
}

.search-excerpt {
  font-size: 14px;
  color: #555;
  margin: 12px 0;
}

.search-btn {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* دکمه نمایش بیشتر */
.search-more {
  text-align: center;
  margin-top: 30px;
}

/* موبایل */
@media (max-width:768px){
  .search-item {
    flex-direction: column;
    text-align: center;
  }
  .search-thumb {
    margin: 0 0 16px 0;
  }
  .search-thumb-img {
    max-width: 100%;
    max-height: 300px;
  }
}
/* فقط در صفحه نوشته (Body دارای کلاس single-post) */
body.single-post .site-main.single-post {
  direction: rtl;
  unicode-bidi: isolate;
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: #f2f2f2;
  padding-bottom: 60px;
}

/* کانتینر فقط در single */
body.single-post .site-main.single-post .container {
  padding-top: 40px;
  text-align: center;
}

/* دسته‌بندی‌ها */
body.single-post .site-main.single-post article .post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}
body.single-post .site-main.single-post article .post-categories .post-cat {
  background: #fff;
  border: 2px solid #ff9800;
  color: #ff9800;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}
body.single-post .site-main.single-post article .post-categories .post-cat:hover {
  background: #ff9800;
  color: #fff;
}

/* تیتر نوشته */
body.single-post .site-main.single-post article .post-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  padding: 16px 24px;
  border: 3px solid #ff9800;
  border-radius: 16px;
  background: #fff;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
}
body.single-post .site-main.single-post article .post-title a {
  color: #1e3c72;
  text-decoration: none;
  transition: color 0.3s ease;
}
body.single-post .site-main.single-post article .post-title a:hover { color: #ff9800; }

/* محتوای نوشته */
body.single-post .site-main.single-post article .post-content {
  direction: rtl;
  text-align: right;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  line-height: 1.9;
  font-size: 16px;
  color: #333;
  margin-inline: auto;
  max-width: 860px;
}

/* تیترهای داخل متن */
body.single-post .site-main.single-post article .post-content h1,
body.single-post .site-main.single-post article .post-content h2,
body.single-post .site-main.single-post article .post-content h3,
body.single-post .site-main.single-post article .post-content h4,
body.single-post .site-main.single-post article .post-content h5,
body.single-post .site-main.single-post article .post-content h6 {
  text-align: right;
  color: #ff9800;
  margin-top: 28px;
  margin-bottom: 14px;
  font-weight: 700;
}

/* پاراگراف‌ها */
body.single-post .site-main.single-post article .post-content p {
  text-align: right;
margin-bottom: 42px !important;
}

/* لیست‌ها */
body.single-post .site-main.single-post article .post-content ul,
body.single-post .site-main.single-post article .post-content ol {
  text-align: right;
  margin: 0 0 16px 0;
  padding: 0 24px 0 0;
}
body.single-post .site-main.single-post article .post-content ul li,
body.single-post .site-main.single-post article .post-content ol li {
  margin-bottom: 8px;
}

/* نقل‌قول */
body.single-post .site-main.single-post article .post-content blockquote {
  text-align: right;
  border-right: 4px solid #ff9800;
  background: #f9fafb;
  padding: 14px 18px;
  border-radius: 12px;
  margin: 18px 0;
  font-style: italic;
}

/* تصاویر */
body.single-post .site-main.single-post article .post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* هم‌راستایی وردپرس */
body.single-post .site-main.single-post article .post-content .alignright {
  float: right;
  margin: 8px 0 8px 16px;
}
body.single-post .site-main.single-post article .post-content .alignleft {
  float: left;
  margin: 8px 16px 8px 0;
}
body.single-post .site-main.single-post article .post-content .aligncenter {
  display: block;
  margin: 18px auto;
  float: none;
  text-align: center;
}

/* جداول */
body.single-post .site-main.single-post article .post-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}
body.single-post .site-main.single-post article .post-content th,
body.single-post .site-main.single-post article .post-content td {
  text-align: right;
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
}
body.single-post .site-main.single-post article .post-content thead th {
  background: #f5f7fa;
  font-weight: 700;
}

/* کد */
body.single-post .site-main.single-post article .post-content code,
body.single-post .site-main.single-post article .post-content pre {
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
body.single-post .site-main.single-post article .post-content pre {
  background: #f6f8fa;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
}

/* لینک‌های داخل متن */
body.single-post .site-main.single-post article .post-content p a,
body.single-post .site-main.single-post article .post-content h2 a,
body.single-post .site-main.single-post article .post-content h3 a {
  color: #1e3c72;
  text-decoration: underline;
  transition: color 0.3s ease;
}
body.single-post .site-main.single-post article .post-content p a:hover,
body.single-post .site-main.single-post article .post-content h2 a:hover,
body.single-post .site-main.single-post article .post-content h3 a:hover {
  color: #ff9800;
}

/* دکمه‌های شبکه‌های اجتماعی */
body.single-post .site-main.single-post article .sharedaddy a,
body.single-post .site-main.single-post article .social-icons a,
body.single-post .site-main.single-post article .wp-social-buttons a,
body.single-post .site-main.single-post article .addtoany_share_save_container a {
  all: unset;
  display: inline-block;
  cursor: pointer;
}

/* ناوبری بین نوشته‌ها */
body.single-post .site-main.single-post .post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}
body.single-post .site-main.single-post .post-navigation a {
  color: #1e3c72;
  font-weight: 600;
  text-decoration: none;
}
body.single-post .site-main.single-post .post-navigation a:hover { color: #ff9800; }

/* موبایل */
@media (max-width:768px){
  body.single-post .site-main.single-post article .post-title { font-size: 24px; }
  body.single-post .site-main.single-post article .post-content { padding: 24px; }
  body.single-post .site-main.single-post article .post-content .alignright,
  body.single-post .site-main.single-post article .post-content .alignleft {
    float: none;
    margin: 12px auto;
    display: block;
  }
}

...
/* بخش کلی کامنت‌ها */
.comments-area {
  direction: rtl;
  text-align: right;
  background: #fff;
  border: 1px solid #e9eef3;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  margin-top: 40px;
}

/* تیتر کامنت‌ها */
.comments-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e3c72;
  margin: 0 0 16px;
  text-align: right;
}

/* لیست کامنت‌ها */
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list .comment {
  margin: 0 0 18px;
}
.comment-body {
  background: #fafbfc;
  border: 1px solid #e9eef3;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(30,60,114,0.06);
  text-align: right;
}

/* نویسنده کامنت */
.comment-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ff9800;
  text-align: right;
}
.comment-author img,
.comment-author .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* تاریخ کامنت: کپسول شیک و ترتیب درست روز-ماه-سال */
.comment-meta .comment-date,
.comment-metadata time {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.25);
  text-align: center;
  direction: ltr;            /* حفظ ترتیب نوشته: روز → ماه → سال */
  unicode-bidi: isolate;     /* جلوگیری از وارونگی در محیط RTL */
}
.comment-meta .comment-date::before,
.comment-metadata time::before {
  content: "📅";
  margin-inline-end: 6px;
  font-size: 13px;
}

/* متن کامنت */
.comment-content {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin-top: 8px;
  text-align: right;
}
.comment-content p { margin: 0 0 10px; }

/* لینک پاسخ */
.reply {
  margin-top: 10px;
}
.reply a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eaf2ff;
  color: #1e3c72;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.reply a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(30,60,114,0.18);
  background: #dceaff;
}

/* فرم ارسال کامنت */
.comment-respond {
  margin-top: 28px;
  background: #fff;
  border: 1px solid #e9eef3;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  text-align: right;
}
.comment-reply-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e3c72;
  margin: 0 0 16px;
  text-align: right;
}

/* فیلدهای نام، ایمیل و وبسایت: زیر هم و تمام‌عرض (مثل نسخه قبلی) */
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
  width: 100%;
  display: block;
  margin: 0 0 12px;
}

/* فیلدهای ورودی */
.comment-form label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #dde4ea;
  border-radius: 8px;
  font-size: 14px;
  text-align: right;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #ff9800;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,152,0,0.15);
  outline: none;
}

/* دکمه ارسال دیدگاه */
.form-submit,
.comment-form .form-submit { margin-top: 12px; }
.comment-form input[type="submit"],
.comment-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255,87,34,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.comment-form input[type="submit"]:hover,
.comment-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255,87,34,0.3);
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .comment-body { padding: 14px; }
  .comment-author { font-size: 14px; }
  .comment-meta .comment-date,
  .comment-metadata time { padding: 6px 10px; }
}
/* ساختار کلی برگه */
body.page .site-main.page-content {
  direction: rtl;
  background: #f9fafc; /* پس‌زمینه روشن‌تر از نوشته‌ها */
  margin-top: 0 !important;
  padding: 60px 0;
}

/* کانتینر */
body.page .site-main.page-content .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* تیتر اصلی برگه */
body.page .page-title {
  font-size: 40px;
  font-weight: 900;
  color: #1e3c72;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
body.page .page-title a {
  color: #1e3c72;
  text-decoration: none;
  transition: color 0.3s ease;
}
body.page .page-title a:hover {
  color: #ff5722;
}
body.page .page-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* محتوای برگه */
body.page .page-body {
  background: #fff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

/* تیترهای داخل برگه */
body.page .page-body h2,
body.page .page-body h3 {
  color: #ff9800;
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
}
body.page .page-body h2::before {
  content: "◆";
  color: #ff5722;
  margin-left: 8px;
  font-size: 14px;
}

/* پاراگراف‌ها */
body.page .page-body p {
  margin-bottom: 18px;
  text-align: right;
}

/* لیست‌ها */
body.page .page-body ul,
body.page .page-body ol {
  margin: 0 0 18px 0;
  padding: 0 24px 0 0;
  text-align: right;
}
body.page .page-body ul li,
body.page .page-body ol li {
  margin-bottom: 10px;
}

/* تصاویر */
body.page .page-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* نقل‌قول */
body.page .page-body blockquote {
  border-right: 4px solid #ff9800;
  background: #fff7f0;
  padding: 16px 20px;
  border-radius: 14px;
  margin: 20px 0;
  font-style: italic;
  color: #444;
}

/* لینک‌ها */
body.page .page-body a {
  color: #1e3c72;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}
body.page .page-body a:hover {
  color: #ff5722;
}

/* ریسپانسیو */
@media (max-width:768px){
  body.page .page-title { font-size: 28px; }
  body.page .page-body { padding: 28px; }
}
/* اسکوپ کامل برای جلوگیری از تداخل */
body.category .site-main.category-page {
  direction: rtl;
  background: #f9fafc;
  padding: 60px 0;
}

body.category .category-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* تیتر دسته‌بندی */
body.category .category-title {
  font-size: 34px;
  font-weight: 900;
  color: #1e3c72;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
body.category .category-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* گرید کارت‌ها */
body.category .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* کارت هر آیتم */
body.category .category-item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden; /* گوشه‌های گرد برای تصویر هم اعمال شود */
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.category .category-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

/* باکس تصویر: ارتفاع ثابت، مرکزدهی بدون برش */
body.category .category-item .thumb-box {
  height: 240px;                /* ارتفاع ثابت برای تراز شدن گرید */
  background: #f2f4f8;          /* زمینه ملایم پشت تصویر */
  display: flex;
  align-items: center;
  justify-content: center;      /* مرکزدهی کامل تصویر */
  overflow: hidden;             /* جلوگیری از خروج تصویر */
  position: relative;
}

/* تصویر: بدون برش، نسبت حفظ شود */
body.category .category-item .post-thumb.no-crop {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;          /* عدم برش، کل تصویر نمایش داده شود */
  transition: transform 0.5s ease, filter 0.5s ease;
  will-change: transform, filter;
}

/* افکت خاص روی تصویر هنگام هاور/تاچ */
body.category .category-item:hover .post-thumb.no-crop,
body.category .category-item:focus-within .post-thumb.no-crop {
  transform: scale(1.04) rotateZ(0.5deg); /* بزرگ‌نمایی لطیف + چرخش خیلی کم */
  filter: brightness(1.08) contrast(1.02) saturate(1.1);
}

/* تیتر مقاله */
body.category .category-item .post-title {
  font-size: 20px;
  font-weight: 800;
  margin: 18px;
}
body.category .category-item .post-title a {
  color: #1e3c72;
  text-decoration: none;
  transition: color 0.25s ease;
}
body.category .category-item .post-title a:hover {
  color: #ff5722;
}

/* خلاصه مطلب */
body.category .category-item .post-excerpt {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin: 0 18px 18px;
  text-align: right;
}

/* دکمه ادامه مطلب */
body.category .category-item .read-more {
  display: inline-block;
  margin: 0 18px 22px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.category .category-item .read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,87,34,0.25);
}

/* صفحه‌بندی */
body.category .category-page .pagination {
  margin-top: 40px;
  text-align: center;
}
body.category .category-page .pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ddd;
  color: #1e3c72;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
body.category .category-page .pagination .page-numbers:hover {
  background: #ff9800;
  color: #fff;
}
body.category .category-page .pagination .page-numbers.current {
  background: #ff5722;
  color: #fff;
  border-color: #ff5722;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  body.category .category-title { font-size: 26px; }
  body.category .category-item .thumb-box { height: 200px; }
  body.category .category-item .post-title { font-size: 18px; }
}
/* ساختار کلی صفحه تگ */
body.tag .site-main.tag-page {
  direction: rtl;
  background: #f9fafc;
  padding: 60px 0;
}

/* کانتینر */
body.tag .tag-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* تیتر برچسب */
body.tag .tag-title {
  font-size: 34px;
  font-weight: 900;
  color: #1e3c72;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
body.tag .tag-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* گرید کارت‌ها */
body.tag .tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* کارت هر آیتم */
body.tag .tag-item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.tag .tag-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

/* باکس تصویر: کامل و بدون برش */
body.tag .tag-item .thumb-box {
  height: 240px;
  background: #f2f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.tag .tag-item .post-thumb.no-crop {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* تصویر کامل بدون برش */
  transition: transform 0.5s ease, filter 0.5s ease;
}
body.tag .tag-item:hover .post-thumb.no-crop {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2);
}

/* تیتر مقاله */
body.tag .tag-item .post-title {
  font-size: 20px;
  font-weight: 800;
  margin: 18px;
}
body.tag .tag-item .post-title a {
  color: #1e3c72;
  text-decoration: none;
  transition: color 0.25s ease;
}
body.tag .tag-item .post-title a:hover {
  color: #ff5722;
}

/* خلاصه مطلب */
body.tag .tag-item .post-excerpt {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin: 0 18px 18px;
  text-align: right;
}

/* دکمه ادامه مطلب */
body.tag .tag-item .read-more {
  display: inline-block;
  margin: 0 18px 22px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.tag .tag-item .read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,87,34,0.25);
}

/* صفحه‌بندی */
body.tag .tag-page .pagination {
  margin-top: 40px;
  text-align: center;
}
body.tag .tag-page .pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ddd;
  color: #1e3c72;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
body.tag .tag-page .pagination .page-numbers:hover {
  background: #ff9800;
  color: #fff;
}
body.tag .tag-page .pagination .page-numbers.current {
  background: #ff5722;
  color: #fff;
  border-color: #ff5722;
}

/* ریسپانسیو */
@media (max-width:768px){
  body.tag .tag-title { font-size: 26px; }
  body.tag .tag-item .thumb-box { height: 200px; }
  body.tag .tag-item .post-title { font-size: 18px; }
}
/* همان استایل دکمه‌ها برای دسته‌بندی و برچسب‌ها در single */
body.single-post .post-categories .post-cat,
body.single-post .post-tags .post-cat {
  background: #fff;
  border: 2px solid #ff9800;
  color: #ff9800;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

body.single-post .post-categories .post-cat:hover,
body.single-post .post-tags .post-cat:hover {
  background: #ff9800;
  color: #fff;
}
.hero-search {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

/* رپر کپسولی */
.hero-search .search-wrap {
  display: flex;
  align-items: center;
  gap: 0;                         /* بدون فاصله بین input و button */
  background: #fff;               /* پس‌زمینه واحد */
  border: 2px solid #ff9800;      /* حاشیه واحد برای کل کپسول */
  border-radius: 999px;           /* کپسولی واقعی */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;               /* برش لبه‌های داخلی */
}

/* ورودی جستجو */
.hero-search .search-wrap input[type="search"],
.hero-search .search-wrap input[type="text"] {
  appearance: none;               /* حذف استایل پیش‌فرض مرورگر */
  -webkit-appearance: none;
  border: none !important;
  background: transparent;
  padding: 14px 18px;
  font-size: 15px;
  color: #333;
  width: 60vw;                    /* انعطاف‌پذیر */
  max-width: 420px;
  outline: none;
}

/* فوکوس روی ورودی: رنگ دور کپسول */
.hero-search .search-wrap:focus-within {
  border-color: #1e3c72;
  box-shadow: 0 0 8px rgba(30,60,114,0.35);
}

/* دکمه جستجو */
.hero-search .search-wrap button {
  border: none !important;
  background: #ff9800;
  color: #fff;
  font-size: 16px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  line-height: 1;                 /* آیکن وسط‌چین تمیز */
}

.hero-search .search-wrap button:hover {
  background: #e68900;
  transform: scale(1.05);
}

/* ریسپانسیو */
@media (max-width: 480px) {
  .hero-search .search-wrap {
    width: 90%;
  }
  .hero-search .search-wrap input[type="search"],
  .hero-search .search-wrap input[type="text"] {
    width: 100%;
  }
}
