/*
Theme Name: راه رستاخیز (Rahe Rastakhiz)
Theme URI: https://example.com/rahe-rastakhiz
Author: اختصاصی
Author URI: https://example.com
Description: قالب اختصاصی و پرمیوم وب‌سایت راه رستاخیز برای انتشار اشعار، کتاب‌ها و مضامین روحانی.
Version: 1.0.0
Text Domain: rahe-rastakhiz
*/

/* ==========================================================================
   Design Tokens & Core Styles
   ========================================================================== */

:root {
  --teal-deep: #1b302d;
  --teal: #2c4a45;      
  --gold: #c59b6c;      
  --gold-deep: #a47b4d; 
  --gold-pale: #f3e9dc; 
  
  --parchment: #F7EFE1;
  --parchment-2: #EFE0C4;
  --ink: #2E1F14;
  --ink-soft: #4A3626;
  --maroon: #5A3A22;
  --line: rgba(46,31,20,0.14);
  --shadow: 0 10px 30px rgba(46,31,20,0.12);
  --radius: 10px;
  --font-display: 'Lalezar', 'Aref Ruqaa', serif;
  --font-body: 'Vazirmatn', Tahoma, sans-serif;
  --maxw: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  direction: rtl;
  text-align: right;
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(198,154,46,0.10), transparent 60%),
    var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .site-title, .hero-title {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-weight: 700;
  letter-spacing: .2px;
}

/* ---------- Ornamental Divider ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 44px 0; opacity: .9;
}
.ornament svg { width: 120px; height: 22px; }
.ornament span { color: var(--gold-deep); font-family: var(--font-display); font-size: 20px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--teal-deep);
  color: var(--parchment);
  font-size: 13.5px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar-meta { display: flex; gap: 22px; align-items: center; }
.topbar-social { display: flex; align-items: center; }
.topbar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(246,239,221,0.08);
  margin-inline-start: 8px;
  transition: background .2s ease, transform .2s ease;
}
.topbar-social a:hover { background: var(--gold); color: var(--teal-deep); transform: translateY(-2px); }
.topbar-social svg { width: 16px; height: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--parchment);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.1);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-title { font-size: 26px; margin: 0; }
.site-title a { display: flex; align-items: center; gap: 10px; }
.site-tagline { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 0; }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; display: block; }

/* ---------- Header Search ---------- */
.header-search { position: relative; }
.header-search form {
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px; box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}
.header-search input[type="search"] {
  border: none; outline: none; background: transparent;
  padding: 8px 14px; font-family: var(--font-body); font-size: 14px; width: 190px;
}
.header-search button {
  border: none; cursor: pointer; border-radius: 999px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--maroon); color: #fff; transition: background .2s ease;
}
.header-search button:hover { background: var(--gold-deep); }
.header-search svg { width: 16px; height: 16px; }

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative; overflow: hidden; border-radius: 0 0 28px 28px;
  background: var(--teal-deep); color: var(--parchment);
  min-height: 78vh; max-height: 640px;
}
.hero-slides { position: relative; height: 78vh; max-height: 640px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center; background-size: cover; background-position: center;
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(27,48,45,.92) 15%, rgba(27,48,45,.55) 55%, rgba(27,48,45,.25) 100%);
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide-inner { position: relative; z-index: 2; max-width: 640px; padding: 0 24px; margin-right: 6%; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 1px; color: var(--gold);
  border: 1px solid rgba(198,154,46,.5); border-radius: 999px; padding: 5px 14px; margin-bottom: 18px;
}
.hero-title { color: var(--parchment); font-size: 44px; line-height: 1.5; margin: 0 0 18px; }
.hero-verse { font-family: var(--font-display); font-size: 22px; color: var(--gold); margin: 0 0 20px; }
.hero-desc { color: rgba(246,239,221,.85); font-size: 16px; margin-bottom: 26px; max-width: 480px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--teal-deep); padding: 12px 26px; border-radius: 999px;
  font-weight: 700; transition: transform .2s ease, background .2s ease;
}
.hero-cta:hover { background: #fff; transform: translateY(-2px); }

.hero-nav {
  position: absolute; bottom: 24px; inset-inline: 0; z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}
.hero-nav button {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(246,239,221,.4);
}
.hero-nav button.is-active { background: var(--gold); width: 26px; border-radius: 6px; }
.hero-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(246,239,221,.4);
  background: rgba(27,48,45,.4); color: var(--parchment);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-arrow:hover { background: var(--gold); color: var(--teal-deep); }
.hero-arrow.prev { right: 20px; }
.hero-arrow.next { left: 20px; }

/* ---------- Layout & Content ---------- */
.content-wrap {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px;
  padding: 56px 0; align-items: start;
}
.section-title { font-size: 26px; margin: 0 0 26px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.poem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.poem-card {
  background-color: #fff;
  background-image: radial-gradient(var(--gold-pale) 1px, transparent 1px);
  background-size: 15px 15px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.poem-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(35,40,31,.16); }
.poem-card h3 { font-size: 20px; margin: 0 0 10px; }
.poem-card .poem-excerpt { font-family: var(--font-display); font-size: 16.5px; color: var(--ink-soft); line-height: 2.1; margin: 0 0 14px; }
.poem-card .poem-meta { font-size: 12.5px; color: var(--gold-deep); display: flex; gap: 14px; }
.poem-poet {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-display); font-size: 16px; color: var(--gold-deep);
}
.poem-poet svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .85; }

/* ==========================================================================
   استایل کادر طلایی یکپارچه (شعر امروز + سایدبار)
   ========================================================================== */
aside .wp-block-group,
.sidebar .wp-block-group,
#secondary .wp-block-group,
aside .widget *,
.sidebar .widget *,
#secondary .widget * {
  border: none !important;
  box-shadow: none !important;
}

aside .wp-block-group,
.sidebar .wp-block-group,
#secondary .wp-block-group {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.daily-poem-card,
.sidebar .widget,
#secondary .widget,
aside.widget-area .widget,
aside .widget {
  position: relative !important;
  background: linear-gradient(135deg, #fdfbf7 0%, #f7f2e7 100%) !important;
  border: 1.5px solid var(--gold, #c59b6c) !important;
  border-radius: 16px !important;
  padding: 24px 22px !important;
  margin-bottom: 28px !important;
  box-shadow: 0 8px 24px rgba(197, 155, 108, 0.12) !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.daily-poem-card::before,
.sidebar .widget::before,
#secondary .widget::before,
aside.widget-area .widget::before,
aside .widget::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, var(--gold, #c59b6c), #f3e5ab, var(--gold, #c59b6c)) !important;
}

.daily-poem-card:hover,
.sidebar .widget:hover,
#secondary .widget:hover,
aside.widget-area .widget:hover,
aside .widget:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(197, 155, 108, 0.22) !important;
}

.widget .widget-title,
.widget h2,
.widget h3,
aside h2,
aside h3,
.wp-block-heading,
.widgettitle {
  position: relative !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--teal-deep, #1b302d) !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  border-bottom: 1px dashed rgba(197, 155, 108, 0.4) !important;
  padding-bottom: 10px !important;
  display: block !important;
}

aside ul, .widget ul, .wp-block-latest-posts, .wp-block-categories-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

aside ul li, .widget ul li, .wp-block-latest-posts li {
  padding: 8px 0 !important;
  border-bottom: 1px dashed var(--line, rgba(46,31,20,0.14)) !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
}

aside ul li:last-child, .widget ul li:last-child {
  border-bottom: none !important;
}

aside ul li a, .widget ul li a, .wp-block-latest-posts a {
  color: var(--ink-soft, #4A3626) !important;
  text-decoration: none !important;
  transition: color 0.2s ease, padding 0.2s ease !important;
}

aside ul li a:hover, .widget ul li a:hover, .wp-block-latest-posts a:hover {
  color: var(--gold, #c59b6c) !important;
  padding-right: 5px !important;
}

/* ---------- ویجت‌های اختصاصی ---------- */
.verse-widget { text-align: center; }
.verse-widget .verse-text { font-family: var(--font-display); font-size: 19px; color: var(--teal-deep); line-height: 2.1; margin: 0 0 10px; }
.verse-widget .verse-ref { font-size: 12.5px; color: var(--gold-deep); }

.weather-widget .weather-loc { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.weather-widget .weather-main { display: flex; align-items: center; gap: 14px; }
.weather-widget .weather-temp { font-size: 36px; font-weight: 700; color: var(--teal); }
.weather-widget .weather-desc { font-size: 13.5px; color: var(--ink-soft); }

.related-list li { margin-bottom: 10px; }
.related-list a { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; background: var(--parchment-2); }
.related-list a:hover { background: var(--gold); color: var(--teal-deep); }

.social-buttons { display: flex; gap: 10px; }
.social-buttons a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: #fff; }
.social-buttons .ig { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); }
.social-buttons .tg { background: #28A8E9; }

/* ==========================================
   استایل جدید و جامع فوتر
   ========================================== */
.site-footer {
  background: var(--teal-deep, #1b302d);
  color: rgba(246, 239, 221, 0.85);
  padding-top: 50px;
  margin-top: 60px;
  border-top: 3px solid var(--gold, #c59b6c);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246, 239, 221, 0.12);
}

.footer-title {
  color: var(--gold, #c59b6c);
  font-family: var(--font-display, serif);
  font-size: 19px;
  margin: 0 0 18px 0;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background: var(--gold, #c59b6c);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 239, 221, 0.75);
  margin-bottom: 20px;
}

.footer-newsletter h5 { color: #fff; font-size: 14px; margin: 0 0 10px 0; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(246, 239, 221, 0.2);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}
.newsletter-form input:focus { border-color: var(--gold, #c59b6c); }
.newsletter-form button {
  background: var(--gold, #c59b6c);
  color: var(--teal-deep, #1b302d);
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.newsletter-form button:hover { background: #fff; }

.footer-recent-posts ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-recent-posts li { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(246, 239, 221, 0.1); }
.footer-recent-posts li:last-child { border-bottom: none; }
.footer-recent-posts a { display: flex; flex-direction: column; text-decoration: none; transition: transform 0.2s ease; }
.footer-recent-posts a:hover { transform: translateX(-4px); }
.recent-poem-title { color: rgba(246, 239, 221, 0.9); font-size: 14px; font-weight: 500; }
.footer-recent-posts a:hover .recent-poem-title { color: var(--gold, #c59b6c); }
.recent-poem-date { font-size: 11.5px; color: rgba(246, 239, 221, 0.45); margin-top: 3px; }

.footer-links-group { display: flex; gap: 30px; }
.footer-subcol { flex: 1; }
.footer-subcol ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-subcol li { margin-bottom: 10px; }
.footer-subcol a { color: rgba(246, 239, 221, 0.75); font-size: 14px; text-decoration: none; transition: color 0.2s ease, padding 0.2s ease; display: inline-block; }
.footer-subcol a:hover { color: var(--gold, #c59b6c); padding-right: 5px; }

.footer-social-wrap { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid rgba(246, 239, 221, 0.08); }
.social-title { font-size: 14px; color: rgba(246, 239, 221, 0.8); }
.footer-social-links { display: flex; gap: 12px; }
.footer-social-links .social-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(246, 239, 221, 0.08); color: var(--parchment, #F7EFE1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.footer-social-links .social-icon svg { width: 18px; height: 18px; }
.footer-social-links .social-icon:hover { background: var(--gold, #c59b6c); color: var(--teal-deep, #1b302d); transform: translateY(-3px); }

.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: rgba(246, 239, 221, 0.5); }

/* ==========================================
   استایل دکمه‌های آیکون‌دار و نوار ابزار
   ========================================== */
.poem-actions-bar { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn-action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--gold, #c59b6c); background: #fff;
  color: var(--teal-deep, #1b302d); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.25s ease;
}
.btn-action i { font-size: 16px; color: var(--gold-deep, #a47b4d); transition: color 0.25s ease, transform 0.25s ease; }
.btn-action:hover { background: var(--gold-pale, #f3e9dc); transform: translateY(-2px); }
.btn-action:hover i { transform: scale(1.15); }

.btn-like:hover i, .btn-like.is-active i { color: #e63946 !important; }
.btn-favorite:hover i, .btn-favorite.is-active i { color: #f1c40f !important; }
.btn-declamation:hover i { color: #27ae60 !important; }
.btn-share:hover i { color: #2980b9 !important; }

/* نوار ابزار یکپارچه */
.poem-toolbar-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 10px !important;
    margin: 25px 0 !important;
    padding: 14px 20px !important;
    background: #fdfbf7 !important;
    border: 1px solid #c59b6c !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
}

.poem-toolbar-container .btn-toolbar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    min-height: 36px !important;
    background: #ffffff !important;
    border: 1px solid #c59b6c !important;
    border-radius: 8px !important;
    color: #1b302d !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

.poem-toolbar-container .btn-toolbar:hover {
    background: #c59b6c !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(197, 155, 108, 0.3) !important;
}

.poem-toolbar-container .font-resizer-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.poem-toolbar-container .font-resizer-box .btn-font-size {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 10px !important;
    min-width: 32px !important;
    height: 34px !important;
    background: #ffffff !important;
    border: 1px solid #c59b6c !important;
    border-radius: 6px !important;
    color: #1b302d !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.poem-toolbar-container .font-resizer-box .btn-font-size:hover {
    background: #c59b6c !important;
    color: #fff !important;
}

.poem-toolbar-container .font-size-indicator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    min-width: 36px !important;
    height: 34px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1b302d !important;
}

/* ==========================================
   اصلاحات مهم: وسط‌چین کردن کادر شعر
   ========================================== */
.poem-card.poem-single,
.poem-card.single-poem-article,
article.poem-card,
.poem-manuscript-card {
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.poem-content-body,
.poem-body-content,
#poem-text-target {
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  padding: 10px 0 !important;
}

/* ==========================================
   استایل هدر صفحه شعر تک (Single Poem)
   ========================================== */
.poem-single-container { max-width: 820px; margin: 40px auto; padding: 0 20px; }
.poem-header-hero {
  text-align: center;
  background: linear-gradient(135deg, #fdfbf7 0%, #f7f2e7 100%);
  border: 1.5px solid var(--gold, #c59b6c);
  border-radius: 20px; padding: 36px 28px 28px;
  margin-bottom: 40px; position: relative;
  box-shadow: 0 10px 30px rgba(197, 155, 108, 0.15);
  overflow: hidden;
}
.poem-header-hero::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold, #c59b6c), #f3e5ab, var(--gold, #c59b6c));
}
.poem-main-title { font-family: var(--font-display); font-size: 34px; color: var(--teal-deep, #1b302d); margin: 0 0 12px 0; line-height: 1.4; }
.poem-author-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(197, 155, 108, 0.12); color: var(--gold-deep, #a47b4d);
  padding: 6px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; margin-bottom: 16px;
}
.poem-rating-stars { display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 24px; color: #d1d5db; font-size: 18px; cursor: pointer; }
.poem-rating-stars .star-active { color: #f1c40f; }
.rating-count { font-size: 13px; color: var(--ink-soft); margin-inline-start: 8px; }

.poem-body-content {
  font-family: var(--font-display); font-size: 20px; line-height: 2.3;
  text-align: center; color: var(--ink); transition: font-size 0.2s ease;
}

/* ==========================================================
   دیوان نفیس - کارت‌های لیست اشعار
   ========================================================== */
.poem-manuscript-card {
  background-color: rgb(255, 252, 247);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(44, 37, 33, 0.08);
  border: 1px solid rgba(188, 148, 92, 0.2);
  border-right: 6px solid rgb(188, 148, 92);
  padding: 25px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.poem-manuscript-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(44, 37, 33, 0.14);
  border-right-color: #c59b6c;
}
.card-header-section {
  text-align: center;
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(188, 148, 92, 0.3);
  padding-bottom: 12px;
}
.poet-name {
  font-size: 0.9rem;
  color: #bc945c;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 6px;
}
.poem-card-title {
  font-size: 1.35rem;
  color: #2c2521;
  font-weight: 700;
  margin: 0;
}
.poem-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.poem-card-title a:hover {
  color: #bc945c;
}
.poem-card-excerpt {
  text-align: center;
  font-size: 1.1rem;
  line-height: 2.2;
  color: #4a3e3d;
  margin: 15px 0 25px 0;
  font-style: italic;
}
.poem-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8c7b70;
  padding-top: 15px;
  border-top: 1px solid rgba(44, 37, 33, 0.06);
  flex-wrap: wrap;
  gap: 10px;
}
.card-stats-box {
  display: flex;
  gap: 15px;
  align-items: center;
}
.card-stats-box span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2c2521;
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.btn-read-more:hover {
  background: #bc945c;
  color: #fff;
}

/* ==========================================================
   حالت خط نستعلیق
   ========================================================== */
body.nastaliq-mode .poem-content-body,
body.nastaliq-mode .poem-body-content,
body.nastaliq-mode #poem-text-target {
    font-family: 'IranNastaliq', 'Vazirmatn', serif !important;
    font-size: 22px !important;
    line-height: 2.8 !important;
    text-align: center !important;
}

body.nastaliq-mode .poem-content-body p,
body.nastaliq-mode .poem-body-content p,
body.nastaliq-mode #poem-text-target p {
    font-family: 'IranNastaliq', 'Vazirmatn', serif !important;
    font-size: 22px !important;
    line-height: 2.8 !important;
}

/* ==========================================================
   حالت شب (Dark Mode)
   ========================================================== */
body.dark-mode {
  background-color: #121817 !important;
  color: #e2e8f0 !important;
}

body.dark-mode .site-header,
body.dark-mode .topbar,
body.dark-mode .poem-card,
body.dark-mode .poet-header-card,
body.dark-mode .media-player-box,
body.dark-mode .contact-form-wrapper {
  background-color: #1a2321 !important;
  color: #e2e8f0 !important;
  border-color: #2d3748 !important;
}

body.dark-mode .daily-poem-card,
body.dark-mode .sidebar .widget,
body.dark-mode #secondary .widget,
body.dark-mode aside.widget-area .widget,
body.dark-mode aside .widget {
  background: linear-gradient(135deg, #1e2624 0%, #171f1d 100%) !important;
  border-color: var(--gold, #c59b6c) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .widget .widget-title,
body.dark-mode .wp-block-heading,
body.dark-mode aside h2,
body.dark-mode aside h3 {
  color: #f1f5f9 !important;
  border-bottom-color: rgba(197, 155, 108, 0.3) !important;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4,
body.dark-mode .poem-hero-title,
body.dark-mode .site-title a {
  color: #f1f5f9 !important;
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode div,
body.dark-mode li {
  color: #cbd5e1 !important;
}

body.dark-mode a {
  color: #8ac0ad !important;
}

body.dark-mode .btn-action,
body.dark-mode .poem-btn {
  background: #1a2321;
  color: #e2e8f0;
  border-color: #2d3748;
}

body.dark-mode .btn-action:hover,
body.dark-mode .poem-btn:hover {
  background: #253330;
}

body.dark-mode .poem-header-hero {
  background: linear-gradient(135deg, #1e2624 0%, #171f1d 100%) !important;
  border-color: var(--gold, #c59b6c) !important;
}

body.dark-mode .poem-main-title {
  color: #f1f5f9 !important;
}

/* ==========================================================
   صفحه اصلی مدرن - بخش‌های تزئین، شعر روز و اشعار برگزیده
   ========================================================== */
.home-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}
.ornament-text {
    font-family: var(--font-display, 'Vazirmatn', Tahoma, sans-serif);
    font-size: 18px;
    color: var(--gold-deep, #a47b4d);
    letter-spacing: 2px;
    font-weight: 600;
}

.daily-poem-section-modern { margin: 30px 0 50px; }
.daily-poem-container {
    background: linear-gradient(145deg, #fdfbf7 0%, #f7f2e7 100%);
    border-radius: 24px;
    padding: 35px 40px;
    border: 1px solid rgba(197, 155, 108, 0.25);
    box-shadow: 0 15px 50px rgba(197, 155, 108, 0.08);
    position: relative;
    overflow: hidden;
}
.daily-poem-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #c59b6c, #f3e5ab, #c59b6c);
}
.daily-poem-badge-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.badge-icon { font-size: 24px; }
.badge-text {
    background: #c59b6c;
    color: #fff;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.badge-date { color: #888; font-size: 13px; }
.badge-likes { color: #e63946; font-size: 13px; font-weight: 500; }

.poem-content-wrapper { text-align: center; }
.poem-title-modern {
    font-size: 28px;
    font-weight: 700;
    color: var(--teal-deep, #1b302d);
    margin-bottom: 10px;
}
.poem-title-modern a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.poem-title-modern a:hover { color: #c59b6c; }
.poem-author-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gold-deep, #a47b4d);
    font-size: 15px;
    margin-bottom: 15px;
}
.author-icon { font-size: 16px; }
.author-name { font-weight: 500; }

.poem-verse-modern {
    max-width: 700px;
    margin: 0 auto 20px;
}
.poem-verse-modern .verse-text {
    font-family: var(--font-display, 'Vazirmatn', Tahoma, sans-serif);
    font-size: 20px;
    line-height: 2.6;
    color: var(--ink, #2e1f14);
}

.poem-actions-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.btn-read-full {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--teal-deep, #1b302d);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-read-full:hover {
    background: #c59b6c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 155, 108, 0.3);
}
.btn-read-full .arrow-icon { transition: transform 0.3s ease; }
.btn-read-full:hover .arrow-icon { transform: translateX(-5px); }

.poem-quick-actions {
    display: flex;
    gap: 8px;
}
.btn-quick-like,
.btn-quick-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0dcd3;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.btn-quick-like:hover {
    background: #fff0f0;
    border-color: #e63946;
    transform: translateY(-2px);
}
.btn-quick-share:hover {
    background: #f0f7ff;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.daily-poem-decoration {
    text-align: center;
    margin-top: 20px;
    opacity: 0.6;
}

/* ---------- اشعار برگزیده مدرن ---------- */
.featured-poems-section { margin: 50px 0; }
.section-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.section-title-modern {
    font-size: 24px;
    color: var(--teal-deep, #1b302d);
    display: flex;
    align-items: center;
    gap: 10px;
}
.title-icon { font-size: 26px; }
.view-all-modern {
    color: #c59b6c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.view-all-modern:hover {
    color: #a47b4d;
    transform: translateX(-4px);
}

.poem-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.poem-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid #f0ede8;
}
.poem-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: #c59b6c;
}
.poem-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.poem-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.poem-card-modern:hover .poem-card-image img { transform: scale(1.08); }
.poem-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7f2e7, #e8e0d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #c59b6c;
}
.poem-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}
.badge-featured {
    background: rgba(197, 155, 108, 0.9);
    color: #fff;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.poem-card-body { padding: 20px; }
.poem-card-body .poem-card-title {
    font-size: 18px;
    margin: 0 0 5px 0;
}
.poem-card-body .poem-card-title a {
    color: var(--teal-deep, #1b302d);
    text-decoration: none;
    transition: color 0.3s ease;
}
.poem-card-body .poem-card-title a:hover { color: #c59b6c; }
.poem-card-body .poem-card-author {
    font-size: 14px;
    color: var(--gold-deep, #a47b4d);
    margin-bottom: 10px;
}
.poem-card-body .poem-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}
.poem-card-body .poem-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0ede8;
}
.poem-card-body .poem-card-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #999;
}
.meta-likes { color: #e63946; }
.meta-rating { color: #f1c40f; }

.btn-read-more-modern {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal-deep, #1b302d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-read-more-modern:hover {
    background: #c59b6c;
    transform: translateX(-4px);
}

/* ---------- لیست تازه‌ترین اشعار ---------- */
.content-wrap-modern {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 20px 0 50px;
}
.poem-list-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.poem-list-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    border: 1px solid #f0ede8;
    transition: all 0.3s ease;
}
.poem-list-item:hover {
    border-color: #c59b6c;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.list-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.list-item-title {
    font-size: 18px;
    margin: 0;
}
.list-item-title a {
    color: var(--teal-deep, #1b302d);
    text-decoration: none;
    transition: color 0.3s ease;
}
.list-item-title a:hover { color: #c59b6c; }
.list-item-author {
    font-size: 14px;
    color: var(--gold-deep, #a47b4d);
}
.list-item-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}
.list-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.list-item-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}
.btn-read-more-small {
    color: #c59b6c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-read-more-small:hover {
    color: #a47b4d;
    transform: translateX(-4px);
}
.view-all-container { text-align: center; margin-top: 30px; }
.btn-view-all {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #c59b6c;
    border-radius: 30px;
    color: #c59b6c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-view-all:hover {
    background: #c59b6c;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 155, 108, 0.3);
}

/* ---------- سایدبار مدرن ---------- */
.sidebar-modern .widget {
    background: #fff;
    border-radius: 16px;
    padding: 22px 25px;
    margin-bottom: 25px;
    border: 1px solid #f0ede8;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.sidebar-modern .widget:hover {
    border-color: #c59b6c;
    box-shadow: 0 8px 30px rgba(197, 155, 108, 0.06);
}
.sidebar-modern .widget-title {
    font-size: 18px;
    color: var(--teal-deep, #1b302d);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0ede8;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ویجت کلام روز */
.verse-content { text-align: center; padding: 10px 0; }
.verse-content .verse-text {
    font-family: var(--font-display, 'Vazirmatn', Tahoma, sans-serif);
    font-size: 18px;
    line-height: 2.4;
    color: var(--ink, #2e1f14);
}
.verse-content .verse-ref {
    font-size: 13px;
    color: var(--gold-deep, #a47b4d);
}

/* ویجت شاعران محبوب */
.poets-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #f0ede8;
}
.poets-list li:last-child { border-bottom: none; }
.poets-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink, #2e1f14);
    transition: all 0.3s ease;
}
.poets-list a:hover {
    color: #c59b6c;
    padding-right: 5px;
}
.poet-icon { font-size: 16px; }
.poet-count { margin-right: auto; font-size: 12px; color: #999; }

/* ویجت شعر تصادفی */
.btn-random-poem-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #c59b6c, #a47b4d);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-random-poem-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 155, 108, 0.3);
}

/* ==========================================================
   اسلایدر هیرو مدرن و حرفه‌ای - راه رستاخیز
   ========================================================== */
.hero-slider-modern {
    position: relative;
    width: 100%;
    height: 65vh !important;      /* ارتفاع کوتاه‌تر */
    min-height: 350px !important;
    max-height: 500px !important;
    overflow: hidden;
    background: var(--teal-deep);
    border-radius: 0 0 30px 30px;
}
.hero-slider-modern .slider-wrapper,
.hero-slider-modern .slider-track,
.hero-slider-modern .slider-slide {
    height: 100% !important;
}
.slider-wrapper { position: relative; width: 100%; height: 100%; overflow: hidden; }
.slider-track { position: relative; width: 100%; height: 100%; }
.slider-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transform: scale(1.05);
    transition: all 0.8s cubic-bezier(0.77, 0, 0.18, 1);
    background-size: cover; background-position: center;
    will-change: transform, opacity;
}
.slider-slide.is-active {
    opacity: 1; visibility: visible; transform: scale(1); z-index: 1;
}
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(27, 48, 45, 0.92) 0%, rgba(27, 48, 45, 0.7) 40%, rgba(27, 48, 45, 0.3) 70%, rgba(27, 48, 45, 0.1) 100%);
    z-index: 1;
}
.slide-content {
    position: relative; z-index: 2;
    width: 100%; height: 100%;
    display: flex; align-items: center;
    padding: 0 60px;
}
.slide-inner { max-width: 700px; padding: 20px 0; }
.animate-item { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.77, 0, 0.18, 1); transition-delay: 0.2s; }
.slider-slide.is-active .animate-item { opacity: 1; transform: translateY(0); }
.slider-slide.is-active .animate-item:nth-child(1) { transition-delay: 0.2s; }
.slider-slide.is-active .animate-item:nth-child(2) { transition-delay: 0.4s; }
.slider-slide.is-active .animate-item:nth-child(3) { transition-delay: 0.6s; }
.slider-slide.is-active .animate-item:nth-child(4) { transition-delay: 0.8s; }

.slide-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(197, 155, 108, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 18px; border-radius: 30px;
    font-size: 13px; font-weight: 500;
    color: var(--gold);
    border: 1px solid rgba(197, 155, 108, 0.2);
    margin-bottom: 20px; letter-spacing: 0.5px;
}
.eyebrow-icon { color: var(--gold); font-size: 12px; }
.slide-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
.slide-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-top: 15px;
    border-radius: 2px;
}
.slide-description {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin-bottom: 30px;
}
.slide-description p { margin: 0; }

.slide-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.slide-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 32px; border-radius: 50px;
    font-weight: 600; font-size: 15px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.18, 1);
    cursor: pointer; border: none;
}
.slide-btn.btn-primary {
    background: var(--gold);
    color: var(--teal-deep);
    box-shadow: 0 4px 25px rgba(197, 155, 108, 0.35);
}
.slide-btn.btn-primary:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(197, 155, 108, 0.45);
}
.slide-btn.btn-primary i { transition: transform 0.4s ease; }
.slide-btn.btn-primary:hover i { transform: translateX(-6px); }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff; font-size: 18px; cursor: pointer;
    transition: all 0.4s ease;
    display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 30px rgba(197, 155, 108, 0.3);
}
.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }

.slider-counter {
    position: absolute; bottom: 40px; left: 50px; z-index: 10;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px; letter-spacing: 1px;
}
.counter-current { font-size: 28px; font-weight: 700; color: #fff; }
.counter-separator { font-size: 16px; opacity: 0.5; }
.counter-total { font-size: 18px; opacity: 0.6; }

.slider-dots {
    position: absolute; bottom: 40px; right: 50px; z-index: 10;
    display: flex; gap: 12px; align-items: center;
}
.slider-dot {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent; cursor: pointer; padding: 0;
    transition: all 0.4s ease; position: relative;
}
.slider-dot .dot-indicator { display: block; width: 100%; height: 100%; border-radius: 50%; background: transparent; transition: all 0.4s ease; }
.slider-dot.is-active { border-color: var(--gold); transform: scale(1.2); }
.slider-dot.is-active .dot-indicator { background: var(--gold); }
.slider-dot:hover { transform: scale(1.3); border-color: var(--gold); }

.slider-progress {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
    height: 3px; background: rgba(255, 255, 255, 0.1);
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #f3e5ab);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}
.slider-slide.is-active .progress-bar { animation: progressBar 6s linear forwards; }
@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 100%; }
}
.hero-slider-modern:hover .progress-bar { animation-play-state: paused; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .hero-slider-modern { height: 75vh; min-height: 450px; max-height: 650px; }
}
@media (max-width: 992px) {
    .content-wrap-modern { grid-template-columns: 1fr; }
    .sidebar-modern { order: -1; }
    .hero-slider-modern { height: 70vh; min-height: 400px; max-height: 600px; border-radius: 0 0 20px 20px; }
    .slide-content { padding: 0 40px; }
    .slide-inner { max-width: 550px; }
    .slide-title { font-size: clamp(1.8rem, 4vw, 3rem); }
    .slider-counter { left: 30px; bottom: 30px; }
    .slider-dots { right: 30px; bottom: 30px; }
}
@media (max-width: 960px) {
  .content-wrap, .poem-grid, .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .site-header .container { flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; }
  .header-search form, .header-search input[type="search"] { width: 100%; }
  .nav-toggle { display: flex; order: 2; }
  .main-nav {
    display: block; order: 4; flex-basis: 100%;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .3s ease;
  }
  .main-nav.is-open { max-height: 400px; opacity: 1; margin-top: 10px; }
  .main-nav ul { flex-direction: column; gap: 2px; padding-bottom: 10px; }
  .main-nav a { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero-title { font-size: 30px; }
  .hero-slides, .hero-slider { min-height: auto; height: 62vh; max-height: 520px; }
  .hero-slide-inner { margin-right: 5%; max-width: 88%; }
  .footer-social-wrap { flex-direction: column; gap: 15px; text-align: center; }
  .poem-toolbar { gap: 6px 8px !important; padding: 10px 12px !important; }
  .poem-toolbar .poem-btn { padding: 6px 10px !important; font-size: 12px !important; min-height: 32px !important; }
  .poem-toolbar .font-resizer-box .btn-font-size { padding: 4px 8px !important; min-width: 28px !important; font-size: 13px !important; }
  .poem-toolbar .font-size-indicator { min-width: 32px !important; height: 32px !important; font-size: 12px !important; }
}
@media (max-width: 768px) {
    .daily-poem-container { padding: 25px 20px; }
    .poem-title-modern { font-size: 22px; }
    .poem-verse-modern .verse-text { font-size: 17px; }
    .poem-grid-modern { grid-template-columns: 1fr 1fr; }
    .section-header-modern { flex-direction: column; text-align: center; }
    .hero-slider-modern { height: 60vh; min-height: 350px; max-height: 500px; border-radius: 0 0 15px 15px; }
    .slide-content { padding: 0 25px; align-items: flex-end; padding-bottom: 80px; }
    .slide-inner { max-width: 100%; text-align: center; }
    .slide-title { font-size: clamp(1.0rem, 3.5vw, 2.2rem); }
    .slide-title::after { margin: 15px auto 10; }
    .slide-description { font-size: 14px; max-width: 100%; margin-left: auto; margin-right: auto; }
    .slide-actions { justify-content: center; }
    .slide-btn { padding: 10px 22px; font-size: 13px; }
    .slider-arrow { width: 40px; height: 40px; font-size: 14px; }
    .slider-arrow.prev { left: 12px; }
    .slider-arrow.next { right: 12px; }
    .slider-counter { display: none; }
    .slider-dots { right: 50%; transform: translateX(50%); bottom: 20px; gap: 10px; }
    .slider-dot { width: 10px; height: 10px; }
}
@media (max-width: 480px) {
  .poem-toolbar .poem-btn .btn-text { display: none !important; }
  .poem-toolbar .poem-btn { padding: 6px 10px !important; min-width: 36px !important; }
  .poem-grid-modern { grid-template-columns: 1fr; }
  .poem-actions-modern { flex-direction: column; }
  .list-item-header { flex-direction: column; align-items: flex-start; }
  .hero-slider-modern { height: 55vh; min-height: 280px; max-height: 420px; }
  .slide-content { padding: 0 15px; padding-bottom: 60px; }
  .slide-title { font-size: clamp(1rem, 3vw, 1.6rem); }
  .slide-eyebrow { font-size: 11px; padding: 4px 14px; margin-bottom: 12px; }
  .slide-description { font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
  .slide-btn { padding: 8px 16px; font-size: 12px; gap: 8px; }
  .slider-arrow { width: 32px; height: 32px; font-size: 12px; }
  .slider-dot { width: 8px; height: 8px; border-width: 1.5px; }
  .slider-progress { height: 2px; }
}

/* ==========================================================
   منوی اصلی افقی با افکت نورانی + زیرمنوهای عمودی با انیمیشن نرم
   ========================================================== */

/* تنظیم کانتینر منوی اصلی (افقی) */
.main-nav ul {
    display: flex;
    flex-direction: row; /* افقی */
    gap: 8px; /* فاصله بین آیتم‌های منو */
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav > ul > li {
    position: relative;
}

/* استایل پایه آیتم‌های منو (افکت نورانی) */
.main-nav ul li a {
    position: relative;
    padding: 12px 24px;
    color: #f7efe1; /* رنگ متن در حالت عادی */
    text-decoration: none;
    display: inline-block;
    transition: color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
}

/* ایجاد خطوط نورانی در بالا و پایین */
.main-nav ul li a::before,
.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #c59b6c; /* رنگ طلایی */
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}
.main-nav ul li a::before {
    top: 0; left: 50%;
}
.main-nav ul li a::after {
    bottom: 0; right: 50%;
}

/* باز شدن خطوط و افکت درخشان در حالت هاور */
.main-nav ul li a:hover::before {
    width: 100%;
    left: 0;
}
.main-nav ul li a:hover::after {
    width: 100%;
    right: 0;
}
.main-nav ul li a:hover {
    color: #c59b6c;
    box-shadow: 0 0 20px rgba(197, 155, 108, 0.25);
    background: rgba(197, 155, 108, 0.08);
}

/* --- زیرمنوها (Dropdown) - عمودی با انیمیشن نرم کشویی --- */

/* حالت مخفی زیرمنوها */
.main-nav ul ul {
    position: absolute;
    top: 100%;
    right: 0; /* برای راست‌چین بودن */
    background: rgba(27, 48, 45, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0;
    margin: 0;
    min-width: 200px;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    
    /* انیمیشن مخفی (کشویی عمودی از بالا به پایین) */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(15px) scaleY(0.9);
    transform-origin: top center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* حرکت بسیار نرم */
    z-index: 999;
}

/* انیمیشن باز شدن زیرمنوها (عمودی) */
.main-nav ul li:hover > ul,
.main-nav ul li.menu-open > ul {
    max-height: 500px; /* ارتفاع کافی برای باز شدن کامل */
    opacity: 1;
    transform: translateY(0) scaleY(1);
    padding: 10px 0;
}

/* استایل آیتم‌های داخل زیرمنو (عمودی - مرتب) */
.main-nav ul ul {
    display: flex !important;
    flex-direction: column !important; /* یک‌ستونه عمودی */
    flex-wrap: nowrap !important;
    width: max-content !important;
    max-width: 300px !important;
    padding: 10px 0 !important;
    gap: 0 !important;
}

.main-nav ul ul li {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: right !important;
}

.main-nav ul ul li a {
    display: block !important;
    width: 100% !important;
    padding: 10px 25px !important;
    box-sizing: border-box !important;
    color: #e0e0e0 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    text-align: right !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: none !important;
}

/* حذف افکت نورانی خطوط برای زیرمنوها */
.main-nav ul ul li a::before,
.main-nav ul ul li a::after {
    display: none !important;
}

.main-nav ul ul li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #c59b6c !important;
    padding-right: 35px !important; /* حرکت به سمت راست */
}

/* پشتیبانی از زیرمنوهای سطح دوم */
.main-nav ul ul ul {
    top: 0;
    right: 100%;
    margin-top: -10px;
}

/* فلش‌های منو */
.main-nav .menu-arrow {
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
    float: left;
}
.main-nav ul li:hover > a .menu-arrow,
.main-nav ul li.menu-open > a .menu-arrow {
    transform: rotate(-90deg);
}

/* اصلاح زیرمنوها در حالت موبایل */
@media (max-width: 960px) {
    .main-nav.is-open ul ul {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: rgba(27, 48, 45, 0.9) !important;
        padding: 0 !important;
        max-height: 1000px !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .main-nav.is-open ul ul li a {
        padding: 12px 35px !important;
    }
}
/* ==========================================================
   اصلاح و تمیز کردن فیلد جستجو (حذف دکمه منفی و حاشیه‌های اضافی)
   ========================================================== */

/* مخفی کردن دکمه‌های افزایش/کاهش در فیلدهای number و search */
.header-search input[type="search"]::-webkit-inner-spin-button,
.header-search input[type="search"]::-webkit-outer-spin-button,
.header-search input[type="search"]::-webkit-search-decoration,
.header-search input[type="search"]::-webkit-search-cancel-button,
.header-search input[type="search"]::-webkit-search-results-button,
.header-search input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: none;
}

/* حذف حاشیه‌های آبی رنگ پیش‌فرض مرورگر در زمان فوکوس */
.header-search input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}

/* در فایرفاکس و سایر مرورگرها */
.header-search input[type="search"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
/* ==========================================================
   حذف اجباری بولت‌ها (تضمینی)
   ========================================================== */

.main-nav ul,
.main-nav ul li,
.main-nav li,
.main-nav ul.nav-menu,
.main-nav ul.nav-menu li,
#drj-main-nav ul,
#drj-main-nav ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-nav::before,
.main-nav ul::before,
.main-nav li::before {
    display: none !important;
    content: none !important;
}
/* ==========================================================
   اصلاح دکمه همبرگری (رفع خط تیره مزاحم و مرتب‌سازی)
   ========================================================== */

/* مخفی کردن کامل دکمه همبرگری در حالت دسکتاپ */
.nav-toggle {
    display: none !important;
}

/* فقط در صفحات موبایل نمایش داده شود */
@media (max-width: 960px) {
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: #fff;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }
    
    /* صاف و تمیز کردن اسپن‌های داخل دکمه */
    .nav-toggle span {
        width: 20px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        display: block !important;
        transition: transform .25s ease, opacity .25s ease;
    }
}