/*
Theme Name: Daily News
Author: سهیل
Description: قالب خبری مدرن، سبک و لوکس
Version: 1.0
Text Domain: daily-news
*/


@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/vazir/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* Force Vazirmatn on header & menus */
header,
nav,
.menu,
.main-menu,
.main-menu a,
.mobile-menu,
.mobile-menu a {
  font-family: "Vazirmatn", sans-serif !important;
}

/* Header Styles - Daily News */
.dn-header { direction: rtl; font-family: Vazir, sans-serif; }

/* Container */
.dn-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* رنگ‌ها */
:root {
    --dn-purple: #7d3c98;
    --dn-purple-dark: #5e2b73;
    --dn-white: #ffffff;
    --dn-gray-100: #f7f8fa;
    --dn-gray-300: #e2e6ea;
    --dn-text: #2c3e50;
}

/* Top bar */
.dn-topbar {
    background: var(--dn-purple);
    color: var(--dn-white);
    font-size: 14px;
    border-bottom: 1px solid var(--dn-purple-dark);
}
.dn-topbar .dn-container { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; }
.dn-topbar-right { display: flex; align-items: center; gap: 12px; }
.dn-topbar-right a { color: var(--dn-white); text-decoration: none; opacity: 0.9; }
.dn-topbar-right a:hover { opacity: 1; }
.dn-topbar-left.dn-socials { display: flex; align-items: center; gap: 12px; }
.dn-topbar-left.dn-socials a { color: var(--dn-white); font-size: 16px; opacity: 0.9; }
.dn-topbar-left.dn-socials a:hover { opacity: 1; }

/* Mid bar */
.dn-midbar { background: var(--dn-purple); color: var(--dn-white); }
.dn-midbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.dn-logo img { max-height: 64px; height: auto; width: auto; }
.dn-site-title { font-size: 24px; font-weight: 700; color: var(--dn-white); text-decoration: none; }
.dn-midbar-empty { flex: 1; }

/* Bottom bar */
.dn-bottombar { background: var(--dn-white); border-top: 1px solid var(--dn-purple-dark); border-bottom: 1px solid var(--dn-gray-300); }
.dn-bottombar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.dn-primary-nav .dn-menu { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.dn-primary-nav .dn-menu > li > a { color: var(--dn-text); text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.dn-primary-nav .dn-menu > li > a:hover { background: var(--dn-gray-100); }
.dn-search { display: flex; align-items: center; gap: 8px; }
.dn-search-form { display: flex; align-items: center; gap: 6px; }
.dn-search-input { border: 1px solid var(--dn-gray-300); border-radius: 6px; padding: 6px 10px; min-width: 220px; }
.dn-search-submit { background: var(--dn-purple); color: var(--dn-white); border: none; border-radius: 6px; padding: 6px 10px; cursor: pointer; }

/* Mobile bar */
.dn-mobilebar { display: none; background: var(--dn-purple); color: var(--dn-white); position: relative; }
.dn-mobilebar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.dn-mobile-logo img { max-height: 52px; }
.dn-mobile-menu-toggle,
.dn-mobile-search-toggle { background: none; border: none; color: var(--dn-white); font-size: 20px; cursor: pointer; }

/* Mobile search panel */
.dn-mobile-search-panel { display: none; background: var(--dn-white); padding: 10px 16px; border-top: 1px solid var(--dn-purple-dark); }
.dn-mobile-search-panel.open { display: block; }
.dn-mobile-search-form { display: flex; gap: 8px; }
.dn-mobile-search-input { flex: 1; border: 1px solid var(--dn-gray-300); border-radius: 6px; padding: 6px 10px; }
.dn-mobile-search-submit { background: var(--dn-purple); color: var(--dn-white); border: none; border-radius: 6px; padding: 6px 10px; }

/* Mobile menu panel */
.dn-mobile-menu-panel {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: var(--dn-white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1002;
    padding: 16px;
}
.dn-mobile-menu-panel.open { transform: translateX(0); }
.dn-mobile-menu { list-style: none; margin: 0; padding: 0; }
.dn-mobile-menu li a { display: block; padding: 10px 8px; color: var(--dn-text); text-decoration: none; border-radius: 6px; }
.dn-mobile-menu li a:hover { background: var(--dn-gray-100); }

/* Overlay */
.dn-mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0; visibility: hidden;
    transition: 0.2s ease;
    z-index: 1001;
}
.dn-mobile-overlay.show { opacity: 1; visibility: visible; }
.dn-noscroll { overflow: hidden; }

/* Responsive */
@media (max-width: 992px) {
    .dn-topbar, .dn-midbar, .dn-bottombar { display: none; }
    .dn-mobilebar { display: block; }
}

/* فوتر کلی */
.dn-footer {
    background: var(--dn-purple);
    color: var(--dn-white);
    padding: 40px 20px;
    border-top: 4px solid var(--dn-purple-dark);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

/* سه ستون */
.dn-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

/* هر باکس */
.dn-footer-box {
    flex: 1;
    min-width: 250px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}
.dn-footer-box:hover { transform: translateY(-4px); }

.dn-footer-box h3 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dn-white);
}

/* نیازمندی‌ها */
.dn-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* لینک‌ها زیر هم */
    gap: 10px;
}
.dn-footer-links ul li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: var(--dn-white);
    text-decoration: none;
    font-size: 14px;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}
.dn-footer-links ul li a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(4px);
}

/* جدیدترین اخبار */
.dn-footer-news ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dn-footer-news ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px;
    backdrop-filter: blur(4px);
}
.dn-footer-news img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.dn-footer-news .dn-news-text {
    flex: 1;
    background: rgba(255,255,255,0.08);
    padding: 6px 10px;
    border-radius: 8px;
}
.dn-footer-news a {
    color: var(--dn-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.dn-footer-news a:hover { text-decoration: underline; }

/* شبکه‌های اجتماعی */
.dn-footer-social {
    margin-top: 40px;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    text-align: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}
.dn-footer-social a {
    color: var(--dn-white);
    font-size: 20px;
    margin: 0 10px;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.dn-footer-social a:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* کپی‌رایت */
.dn-footer-copy {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    padding: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0.9;
}

/* سایدبار کلی */
.dn-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fdfdf7; /* زمینه شیری */
    padding: 16px;
    border-radius: 12px;
}

/* هر باکس سایدبار */
.dn-sidebar-box {
    background: rgba(128,128,128,0.15);       /* کادر طوسی شیشه‌ای */
    border: 1px solid rgba(128,128,128,0.3);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}
.dn-sidebar-box:hover { transform: translateY(-3px); }

/* تیتر باکس‌ها */
.dn-sidebar-box h3 {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;                             /* تیره روی زمینه شیری */
    background: rgba(128,128,128,0.2);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
}

/* لیست‌های خبر */
.dn-sidebar-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dn-sidebar-box ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(128,128,128,0.1);
    border-radius: 10px;
    padding: 8px;
    backdrop-filter: blur(4px);
}

/* تصویر شاخص داخل کادر مربع */
.dn-sidebar-box img {
    width: 70px;
    height: 70px;
    object-fit: cover;        /* تصویر هر سایزی باشه، داخل مربع پر میشه */
    object-position: center;  /* از بالا پایین و چپ راست تراز میشه */
    border-radius: 10px;
    flex-shrink: 0;
}

/* متن کنار تصویر */
.dn-news-text {
    flex: 1;
    background: rgba(255,255,255,0.6);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(128,128,128,0.3);
    color: #222;
}

/* لینک‌ها */
.dn-sidebar-box a {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.dn-sidebar-box a:hover { text-decoration: underline; }

/* دیدگاه‌ها */
.dn-sidebar-comments ul li {
    font-size: 13px;
    color: #222;
}
.dn-sidebar-comments ul li i {
    color: #555;
    margin-left: 6px;
}

/* تبلیغات */
.dn-sidebar-ads img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

/* شبکه‌های اجتماعی */
.dn-sidebar-social .dn-social-icons {
    display: flex;
    gap: 10px;
}
.dn-sidebar-social a {
    color: #333;
    font-size: 20px;
    transition: transform 0.2s ease;
}
.dn-sidebar-social a:hover { transform: scale(1.2); }

/* ریسپانسیو */
@media (max-width: 992px) {
    .dn-main { grid-template-columns: 1fr; }
    .dn-content { order: 1; }
    .dn-main-sidebar { order: 2; }
}


/* ===== Layout ===== */
.dn-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  direction: rtl;
}
.dn-content { grid-column: 1; }
.dn-main-sidebar { grid-column: 2; }

/* ===== Slider ===== */
.dn-content .dn-slider-new {
  position: relative;
  width: 92%;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  background: #fff;
}
.dn-content .dn-slider-track {
  display: flex;
  transition: transform 0.7s ease-in-out;
  flex-direction: row !important;
}
.dn-content .dn-slide-item {
  flex: 0 0 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f8;
}

/* 🔧 اسلایدر – تراز کامل تصاویر */
.dn-content .dn-slide-item img {
  width: 100%;
  height: 340px;
  object-fit: contain;      /* تصاویر هر سایزی وسط باشند */
  object-position: center;  
  display: block;
  border-radius: 16px;
}

.dn-content .dn-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: rgba(0,0,0,0.55);
  border-radius: 0 0 16px 16px;
}

/* ===== Navigation buttons – Modern ===== */
.dn-content .dn-slide-prev,
.dn-content .dn-slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 14px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 22px;
  color: #fff;

  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.dn-content .dn-slide-prev { left: 20px; }
.dn-content .dn-slide-next { right: 20px; }

.dn-content .dn-slide-prev:hover,
.dn-content .dn-slide-next:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}

/* ===== Category box ===== */
.dn-content .dn-category-box { margin-bottom: 40px; }
.dn-content .dn-category-title {
  font-size: 18px; margin-bottom: 16px;
  color: #333; background: rgba(128,128,128,0.15);
  padding: 10px 14px; border-radius: 10px;
  font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.dn-content .dn-category-title i { font-size: 16px; color: #555; }
.dn-content .dn-category-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

/* ===== Featured big image ===== */
.dn-content .dn-category-featured { position: relative; border-radius: 12px; overflow: hidden; }
.dn-content .dn-featured-wrap { position: relative; }
.dn-content .dn-category-featured img {
  width: 100%; height: 220px;
  object-fit: contain; object-position: center;
  border-radius: 12px; background: #fdfdf7;
  display: block;
}
.dn-content .dn-featured-title {
  position: absolute; bottom: 0; right: 0; left: 0;
  margin: 0; padding: 10px;
  font-size: 16px; font-weight: 600;
  color: #fff; text-align: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border-radius: 0 0 12px 12px;
}

/* ===== List items ===== */
.dn-content .dn-category-list { display: flex; flex-direction: column; gap: 12px; }
.dn-content .dn-category-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(128,128,128,0.1);
  border-radius: 10px; padding: 8px;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dn-content .dn-category-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* ===== Small thumb wrapper – FIXED thumbnails ===== */
.dn-content .dn-thumb-wrap {
  width: 45px; height: 45px;
  flex-shrink: 0; border-radius: 8px;
  overflow: hidden; 
  background: #fdfdf7; /* زمینه روشن */
  display: grid; place-items: center;
}
.dn-content .dn-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* ✅ تصاویر کوچک کاملاً پر شوند */
  object-position: center;
  display: block;
}

/* ===== Text beside thumb ===== */
.dn-content .dn-category-text {
  flex: 1;
  background: rgba(255,255,255,0.6);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(128,128,128,0.2);
}
.dn-content .dn-category-text a {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.dn-content .dn-category-text a:hover { text-decoration: underline; }
.dn-content .dn-date {
  display: block;
  font-size: 12px;
  color: #444;
  margin-top: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .dn-main { grid-template-columns: 1fr; }
  .dn-content { grid-column: 1; order: 1; }
  .dn-main-sidebar { grid-column: 1; order: 2; }

  .dn-content .dn-slider-new { width: 100%; }
  .dn-content .dn-slide-item img { height: 240px; }

  .dn-content .dn-slider-track { flex-direction: row !important; }
  .dn-content .dn-category-grid { grid-template-columns: 1fr; }
}


/* ===== Football News Section ===== */
.dn-content .dn-football-box {
  margin: 40px 0;
}

.dn-content .dn-football-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* دسکتاپ: 3 ستون */
  gap: 20px;
}

.dn-content .dn-football-item {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dn-content .dn-football-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* مربع تصویر */
.dn-content .dn-football-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;        /* مربع ثابت */
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fdfdf7;
}

.dn-content .dn-football-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* تصویر وسط و پر */
  object-position: center;
  border-radius: 14px;
  display: block;
}

/* کپشن شیشه‌ای پایین عکس */
.dn-content .dn-football-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  text-align: center;
  border-radius: 0 0 14px 14px;
}

.dn-content .dn-football-caption h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.dn-content .dn-football-caption .dn-date {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: #ddd;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .dn-content .dn-football-grid {
    grid-template-columns: repeat(2, 1fr); /* موبایل: 2 ستون */
  }
}

/* ===== Single Page Layout (Scoped) ===== */
.dn-single-main {
  background: #faf9f6;
  padding: 30px;
}

.dn-single-grid {
  display: grid;
  grid-template-columns: 1fr 320px;    /* محتوا راست، سایدبار چپ */
  grid-template-areas: "content sidebar";
  gap: 24px;
  direction: rtl;
}

.dn-single-content { 
  grid-area: content;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dn-single-sidebar { 
  grid-area: sidebar;
}

/* ===== Category Pills ===== */
.dn-single-category { margin-bottom: 12px; }
.dn-single-category .dn-cat-link {
  display: inline-block;
  background: rgba(128,128,128,0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  margin-left: 6px;
  white-space: nowrap;
}
.dn-single-category .dn-cat-link:hover { background: rgba(128,128,128,0.25); }

/* ===== Title ===== */
.dn-single-title {
  font-size: 24px;
  font-weight: 700;
  text-align: right;
  margin: 0 0 12px;
}
.dn-single-title .dn-title-link { color: #222; text-decoration: none; }
.dn-single-title .dn-title-link:hover { text-decoration: underline; }

/* ===== Meta Row (perfect single line, no underline) ===== */
.dn-single-meta {
  display: flex;
  flex-direction: row;
  align-items: center;       /* هم‌تراز عمودی */
  gap: 8px;
  margin-bottom: 20px;
  margin-right: 4px;         /* تراز با تایتل */
  flex-wrap: nowrap;         /* یک سطر ثابت */
}

.dn-single-meta a {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* گروه نویسنده+تاریخ در یک خط */
.dn-single-meta .dn-author-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* لیبل نویسنده */
.dn-single-meta .dn-author-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  line-height: 30px;         /* هم‌ارتفاع با کادرها */
}

/* سه کادر یک‌دست و هم‌ارتفاع */
.dn-single-meta .dn-author-link,
.dn-single-meta .dn-post-date,
.dn-single-meta .dn-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #222;
  background: rgba(128,128,128,0.10);
  padding: 4px 10px;
  border-radius: 8px;
  height: 30px;              /* ارتفاع یکسان */
  line-height: 20px;
  box-sizing: border-box;
  white-space: nowrap;        /* داخل هر کادر چندخطی نشه */
  transition: background 0.2s ease, transform 0.2s ease;
}

.dn-single-meta .dn-author-link:hover,
.dn-single-meta .dn-post-date:hover,
.dn-single-meta .dn-reading-time:hover {
  background: rgba(128,128,128,0.20);
  transform: translateY(-1px);
}

/* آواتار نویسنده کوچک و هم‌سطح متن */
.dn-single-meta .dn-author-avatar {
  border-radius: 50%;
  width: 18px;
  height: 18px;
}

/* نام نویسنده */
.dn-single-meta .dn-author-name {
  font-size: 12px;
  font-weight: 600;
  color: #222;
}

/* زمان مطالعه رنگ متفاوت */
.dn-single-meta .dn-reading-time {
  background: rgba(0,128,0,0.15);
  color: #333;
}

/* ===== Content Body ===== */
.dn-single-body {
  font-size: 16px;
  line-height: 1.8;
  color: #222;
}
.dn-single-body img {
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}
.dn-single-body p { margin-bottom: 16px; }
.dn-single-body .dn-page-links { margin-top: 18px; font-size: 14px; color: #555; }

/* ===== Tags ===== */
.dn-single-tags { margin-top: 30px; }
.dn-single-tags .dn-tags-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.dn-single-tags .dn-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dn-single-tags .dn-tag-link {
  background: rgba(128,128,128,0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
}
.dn-single-tags .dn-tag-link:hover { background: rgba(128,128,128,0.25); }

/* ===== Responsive: Sidebar below content ===== */
@media (max-width: 992px) {
  .dn-single-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "sidebar";   /* سایدبار بعد از محتوا */
  }

  .dn-single-main { padding: 20px; }
  .dn-single-title { font-size: 22px; }

  /* یک سطر، اگر جا نشد wrap با حفظ تراز */
  .dn-single-meta {
    flex-wrap: wrap;          /* اجازه wrap در موبایل برای جا گرفتن */
    gap: 6px;
  }

  .dn-single-meta .dn-author-link,
  .dn-single-meta .dn-post-date,
  .dn-single-meta .dn-reading-time {
    font-size: 11px;
    height: 28px;
    padding: 3px 8px;
  }

  .dn-single-meta .dn-author-avatar {
    width: 16px;
    height: 16px;
  }

  .dn-single-meta .dn-author-label {
    font-size: 11px;
    line-height: 28px;
  }
}

/* ===== Comments Section ===== */
.dn-comments-box {
  margin-top: 40px;
  background: #faf9f6;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* عنوان بخش */
.dn-comments-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #4b0082;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* حذف خط زیر لینک‌ها */
.dn-comments-box a {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* لیست کامنت‌ها */
.dn-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dn-comment-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* هدر: آواتار + نام */
.dn-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dn-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.dn-comment-author-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(128,128,128,0.12);
  color: #222;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  height: 30px;
  line-height: 18px;
  box-sizing: border-box;
  white-space: nowrap;
}

/* تاریخ شمسی */
.dn-comment-meta-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(0,128,0,0.15);
  color: #333;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  height: 28px;
  line-height: 16px;
  box-sizing: border-box;
  white-space: nowrap;
}

/* متن کامنت */
.dn-comment-content {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

/* دکمه پاسخ */
.reply a,
.dn-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #4b0082;
  color: #fff !important;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}
.reply a:hover,
.dn-reply-link:hover {
  background: #5c0aa0;
  transform: translateY(-1px);
}

/* فرم کامنت */
.dn-comment-form-wrapper {
  margin-top: 20px;
}
.dn-comment-form-wrapper input,
.dn-comment-form-wrapper textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.dn-comment-form-wrapper textarea { min-height: 120px; }
.dn-submit-btn {
  background: #4b0082;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.dn-submit-btn:hover { background: #5c0aa0; }

/* پاسخ‌های تو در تو */
.dn-comment-list .children {
  margin-top: 12px;
  margin-right: 24px; /* RTL */
  padding-right: 12px;
  border-right: 2px dashed rgba(75,0,130,0.15);
}

/* ===== Category Page Layout ===== */
.dn-category-main {
  background: #faf9f6;
  padding: 30px;
}

.dn-category-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-areas: "content sidebar";
  gap: 24px;
  direction: rtl;
}

.dn-category-content { grid-area: content; }
.dn-category-sidebar { grid-area: sidebar; }

/* ===== Header ===== */
.dn-category-title-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(75,0,130,0.08);
}

/* آیکون دسته‌بندی */
.dn-cat-icon i {
  font-size: 22px;
  color: #4b0082;
  line-height: 1;
}

.dn-category-link {
  font-size: 22px;
  font-weight: 700;
  color: #4b0082;
  text-decoration: none;
}
.dn-category-link:hover { text-decoration: underline; }

.dn-category-description {
  font-size: 14px;
  color: #555;
  margin-top: 12px;
}

/* ===== Post list ===== */
.dn-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dn-post-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Post grid */
.dn-post-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 14px;
  align-items: start;
}

/* تصویر شاخص مربعی و تراز شده */
.dn-post-thumb {
  width: 250px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f0eef7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dn-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* تراز صحیح بدون برش */
  display: block;
}

/* Title glass */
.dn-post-title-glass {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  box-shadow: 0 6px 16px rgba(75,0,130,0.07);
}

.dn-post-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.dn-post-link {
  color: #222;
  text-decoration: none;
}
.dn-post-link:hover { text-decoration: underline; }

/* Meta */
.dn-post-meta { margin-top: 4px; }

.dn-post-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #4b0082;
  background: rgba(75,0,130,0.12);
  padding: 6px 10px;
  border-radius: 10px;
}

/* Empty */
.dn-empty {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  color: #555;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Pagination */
.dn-pagination {
  margin-top: 14px;
  text-align: center;
}

.dn-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  background: rgba(128,128,128,0.12);
  border-radius: 10px;
  color: #333;
}

.dn-pagination .page-numbers.current {
  background: #4b0082;
  color: #fff;
}

.dn-pagination .page-numbers:hover {
  background: rgba(128,128,128,0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .dn-category-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "sidebar";
  }

  .dn-post-grid {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .dn-post-thumb {
    width: 100%;
  }
}
.dn-category-header {
  margin-bottom: 24px;
}

/* ===== 404 Page ===== */
.dn-404-main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #4b0082, #008080, #228b22);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.dn-404-container {
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.dn-404-title {
  font-size: 120px;
  font-weight: 900;
  margin: 0 0 20px;
  text-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.dn-404-message-glass {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 24px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  margin-bottom: 24px;
}

.dn-404-icon i {
  font-size: 28px;
  color: #ffcc00;
}

.dn-404-text {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.dn-404-btn {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 40px;
}

.dn-404-btn i { margin-left: 8px; }

.dn-404-btn:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-3px);
}

/* ===== Latest Posts Section ===== */
.dn-404-latest-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.dn-404-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* دسکتاپ: 4 ستون */
  gap: 20px;
}

.dn-404-post {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ===== Image inside fixed square ===== */
.dn-404-thumb {
  width: 100%;
  aspect-ratio: 1 / 1; /* مربع کامل */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.dn-404-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* کامل داخل کادر بدون برش */
  object-position: center; /* وسط‌چین */
  display: block;
}

/* ===== Title glass box ===== */
.dn-404-title-glass {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px;
}

.dn-404-post-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.dn-404-post-link {
  color: #fff;
  text-decoration: none;
  border-bottom: none; /* حذف خط زشت زیر لینک */
  transition: all 0.3s ease;
}

.dn-404-post-link:hover {
  text-decoration: none;
  color: #ffdd57; /* استایل شیک هنگام هاور */
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .dn-404-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .dn-404-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .dn-404-grid {
    grid-template-columns: repeat(2, 1fr); /* ریسپانسیو: 2 ستون، 6 ردیف */
  }
}

/* ===== Search Page ===== */
.dn-search-main {
  background: #faf9f6;
  padding: 30px;
}

.dn-search-container {
  max-width: 1200px;
  margin: auto;
}

/* Header */
.dn-search-title-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(75,0,130,0.08);
  margin-bottom: 24px;
}

.dn-search-icon i {
  font-size: 24px;
  color: #4b0082;
}

.dn-search-title {
  font-size: 22px;
  font-weight: 700;
  color: #4b0082;
  margin: 0;
}

/* Grid Layout */
.dn-search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dn-search-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

/* Image inside fixed square */
.dn-search-thumb {
  width: 100%;
  aspect-ratio: 1/1; /* مربع کامل */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.dn-search-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* کامل داخل کادر بدون برش */
  object-position: center; /* وسط‌چین */
  display: block;
}

/* Title box */
.dn-search-title-box {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px;
}

.dn-search-post-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.dn-search-post-link {
  color: #222;
  text-decoration: none;
}

.dn-search-post-link:hover {
  text-decoration: underline;
}

/* Empty state */
.dn-search-empty {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  color: #555;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Pagination */
.dn-search-pagination {
  margin-top: 20px;
  text-align: center;
}

.dn-search-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  background: rgba(128,128,128,0.12);
  border-radius: 10px;
  color: #333;
}

.dn-search-pagination .page-numbers.current {
  background: #4b0082;
  color: #fff;
}

.dn-search-pagination .page-numbers:hover {
  background: rgba(128,128,128,0.2);
}

/* Responsive */
@media (max-width: 1200px) {
  .dn-search-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .dn-search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dn-search-thumb {
    aspect-ratio: 1/1;
  }
}

@media (max-width: 576px) {
  .dn-search-grid {
    grid-template-columns: 1fr;
  }
}

/* حالت کلی هدر */
.dn-header {
  position: relative; /* دسکتاپ عادی */
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* حالت رسپانسیو: هدر شناور */
@media (max-width: 992px) {
  .dn-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* بالاتر از همه */
  }

  /* برای اینکه محتوای صفحه زیر هدر قاطی نشه */
  body {
    padding-top: 70px; /* ارتفاع هدر رو اینجا بذار */
  }
}

/* ===== Related Posts ===== */
.dn-single-related {
  margin-top: 40px;
}

.dn-related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #4b0082; /* بنفش قالب */
}

.dn-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* دسکتاپ: 4 ستون */
  gap: 20px;
}

.dn-related-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* ===== Image inside fixed square ===== */
.dn-related-thumb {
  width: 100%;
  aspect-ratio: 1 / 1; /* مربع کامل */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
  overflow: hidden;
}

.dn-related-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* کامل داخل کادر بدون برش */
  object-position: center; /* وسط‌چین */
  display: block;
}

.dn-related-title-box {
  padding: 10px;
  background: rgba(75,0,130,0.05);
}

.dn-related-post-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.dn-related-post-link {
  color: #333;
  text-decoration: none;
}

.dn-related-post-link:hover {
  color: #4b0082;
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .dn-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .dn-related-grid {
    grid-template-columns: repeat(2, 1fr); /* موبایل: دقیقاً 2 ستون */
  }
  .dn-related-thumb {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 576px) {
  .dn-related-grid {
    grid-template-columns: repeat(2, 1fr); /* موبایل خیلی کوچک: 2 ستون */
  }
  .dn-related-thumb {
    aspect-ratio: 1 / 1;
  }
}

/* ===== Search Page ===== */
.dn-searchpage-main {
  background: linear-gradient(135deg, #4b0082, #008080, #228b22);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  padding: 80px 20px; /* فضای متعادل */
  display: flex;
  justify-content: center;
  align-items: flex-start; /* فرم بالا بیاد */
}

@keyframes gradientMove {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.dn-searchpage-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  color: #fff;
}

/* Header */
.dn-searchpage-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 25px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Form */
.dn-searchpage-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* فاصله بین کادر و دکمه */
}

.dn-searchpage-input {
  flex: 1;
  max-width: 500px;
  padding: 12px 20px;
  border: 2px solid #fff;
  border-radius: 50px; /* کپسولی */
  outline: none;
  font-size: 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  transition: all 0.3s ease;
}
.dn-searchpage-input::placeholder {
  color: #eee;
}
.dn-searchpage-input:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.dn-searchpage-btn {
  background: #ffcc00;
  color: #4b0082;
  border: none;
  border-radius: 50%; /* دکمه گرد */
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  flex-shrink: 0; /* کوچیک نشه */
}
.dn-searchpage-btn:hover {
  background: #fff;
  color: #4b0082;
}

/* Responsive */
@media (max-width: 768px) {
  .dn-searchpage-container {
    max-width: 90%;
  }
  .dn-searchpage-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}


/* ===== Page Template ===== */
.dn-page-main {
  background: #f9f9f9;
  padding: 40px 20px;
}

.dn-page-grid {
  display: grid;
  grid-template-columns: 2.7fr 1.3fr; /* نسبت متعادل محتوا + سایدبار */
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

/* Content */
.dn-page-content {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dn-page-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #4b0082;
}

.dn-title-link {
  color: inherit;
  text-decoration: none;
}
.dn-title-link:hover {
  color: #008080;
  text-decoration: underline;
}

.dn-page-body {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}
.dn-page-body p {
  margin-bottom: 16px;
}
.dn-page-links {
  margin-top: 20px;
  font-weight: 600;
  color: #4b0082;
}

/* Sidebar */
.dn-page-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-height: 100%;
}

/* Comments */
.dn-page-content .comments-area {
  margin-top: 40px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
  .dn-page-grid {
    grid-template-columns: 1fr;
  }
  .dn-page-sidebar {
    margin-top: 30px;
  }
}
/* لینک لوگوی متنی بدون خط زیر */
.dn-logo a,
.dn-mobile-logo a {
  text-decoration: none !important; /* حذف خط زیر */
  color: inherit;                   /* رنگ متن رو از span بگیره */
}

/* استایل شیک برای اسم سایت */
.dn-site-title {
  font-family: "Vazirmatn", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #4b0082;                   /* رنگ بنفش لوکس */
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #4b0082, #2e8b57);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* لینک‌های داخل متن نوشته */
.dn-single-body a {
  text-decoration: none;      /* حذف خط زیر */
  color: #4b0082;             /* رنگ بنفش لوکس قالب Daily News */
  font-weight: 600;           /* کمی ضخیم‌تر برای خوانایی */
  transition: color 0.3s ease;
}

/* حالت hover برای لینک‌ها */
.dn-single-body a:hover {
  color: #2e8b57;             /* تغییر رنگ به سبز هماهنگ با قالب */
  text-decoration: underline; /* فقط موقع هاور خط زیر بیاد */
}
