/* ==========================================================================
   کارخانه آرد رضایی نکا — استایل‌های اختصاصی صفحات درباره ما و صفحات اضافی
   Rezaee Flour Mills — Dedicated Pages & About Us Stylesheet
   ========================================================================== */

/* ─── Breadcrumb ─── */
.lux-page-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #64748b;
}

html.dark .lux-page-crumbs {
  color: #94a3b8;
}

.lux-page-crumbs a {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.lux-page-crumbs a:hover {
  color: var(--primary, #FF5833);
}

.lux-page-crumbs .crumb-sep {
  color: #cbd5e1;
  font-size: 11px;
}

html.dark .lux-page-crumbs .crumb-sep {
  color: #475569;
}

.lux-page-crumbs .crumb-current {
  color: var(--primary, #FF5833);
  font-weight: 700;
}

/* ─── Hero Banner Card (About & Pages) ─── */
.lux-hero-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 44px 36px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  background-image: radial-gradient(circle at 100% 0%, rgba(255, 88, 51, 0.06) 0%, transparent 60%);
}

html.dark .lux-hero-banner {
  background: #141414;
  border-color: #262626;
  background-image: radial-gradient(circle at 100% 0%, rgba(255, 88, 51, 0.12) 0%, transparent 60%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.lux-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 88, 51, 0.09);
  border: 1px solid rgba(255, 88, 51, 0.25);
  color: var(--primary, #FF5833);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.lux-hero-title {
  font-size: 30px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 14px;
  line-height: 1.35;
}

html.dark .lux-hero-title {
  color: #ffffff;
}

.lux-hero-desc {
  font-size: 15.5px;
  color: #475569;
  line-height: 1.85;
  margin: 0;
  max-width: 820px;
}

html.dark .lux-hero-desc {
  color: #94a3b8;
}

/* ─── Generic Dynamic Page Card ─── */
.lux-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  line-height: 1.95;
  font-size: 15px;
  color: #334155;
  margin-bottom: 32px;
}

html.dark .lux-content-card {
  background: #141414;
  border-color: #262626;
  color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.lux-content-card h2,
.lux-content-card h3,
.lux-content-card h4 {
  color: #0f172a;
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 14px;
}

html.dark .lux-content-card h2,
html.dark .lux-content-card h3,
html.dark .lux-content-card h4 {
  color: #f8fafc;
}

.lux-content-card p {
  margin-bottom: 18px;
}

.lux-content-card ul,
.lux-content-card ol {
  padding-right: 24px;
  margin-bottom: 20px;
}

.lux-content-card li {
  margin-bottom: 8px;
}

/* ─── Key Stats Grid ─── */
.lux-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.lux-stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

html.dark .lux-stat-box {
  background: #161616;
  border-color: #262626;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.lux-stat-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary, #FF5833);
  box-shadow: 0 12px 28px rgba(255, 88, 51, 0.1);
}

.lux-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 88, 51, 0.1);
  color: var(--primary, #FF5833);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.lux-stat-number {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 8px;
}

html.dark .lux-stat-number {
  color: #ffffff;
}

.lux-stat-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  margin: 0;
}

html.dark .lux-stat-label {
  color: #94a3b8;
}

/* ─── Story Section ─── */
.lux-story-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

html.dark .lux-story-box {
  background: #141414;
  border-color: #262626;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.lux-story-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ─── Section Title Helpers ─── */
.lux-sec-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.lux-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 88, 51, 0.09);
  color: var(--primary, #FF5833);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 10px;
}

.lux-sec-h2 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px;
}

html.dark .lux-sec-h2 {
  color: #ffffff;
}

.lux-sec-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.75;
}

html.dark .lux-sec-sub {
  color: #94a3b8;
}

/* ─── Bühler Technology Grid ─── */
.lux-tech-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.lux-tech-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

html.dark .lux-tech-item {
  background: #161616;
  border-color: #262626;
}

.lux-tech-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary, #FF5833);
  box-shadow: 0 10px 26px rgba(255, 88, 51, 0.08);
}

.lux-tech-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lux-tech-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 88, 51, 0.1);
  color: var(--primary, #FF5833);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.lux-tech-item-num {
  font-size: 18px;
  font-weight: 800;
  color: #94a3b8;
}

.lux-tech-item h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

html.dark .lux-tech-item h4 {
  color: #ffffff;
}

.lux-tech-item p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.75;
  margin: 0;
}

html.dark .lux-tech-item p {
  color: #94a3b8;
}

/* ─── QC Laboratory Box ─── */
.lux-qc-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 40px 36px;
  margin-bottom: 40px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.lux-qc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.lux-qc-badge-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lux-qc-badge-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

.lux-qc-badge-item i {
  font-size: 24px;
  color: #fbbf24;
  margin-bottom: 8px;
  display: block;
}

.lux-qc-badge-item b {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.lux-qc-badge-item span {
  font-size: 11.5px;
  color: #cbd5e1;
}

/* ─── Certifications Row ─── */
.lux-cert-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.lux-cert-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.2s ease;
}

html.dark .lux-cert-card {
  background: #161616;
  border-color: #262626;
}

.lux-cert-card:hover {
  transform: translateY(-3px);
  border-color: #10b981;
}

.lux-cert-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

html.dark .lux-cert-card-icon {
  background: #064e3b;
  color: #34d399;
}

.lux-cert-card h5 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

html.dark .lux-cert-card h5 {
  color: #ffffff;
}

.lux-cert-card span {
  font-size: 11.5px;
  color: #64748b;
}

html.dark .lux-cert-card span {
  color: #94a3b8;
}

/* ─── Mission / Vision 3 Cards ─── */
.lux-mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.lux-mission-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

html.dark .lux-mission-box {
  background: #161616;
  border-color: #262626;
}

.lux-mission-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.lux-mission-head i {
  font-size: 22px;
  color: var(--primary, #FF5833);
}

.lux-mission-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

html.dark .lux-mission-head h4 {
  color: #ffffff;
}

.lux-mission-box p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.8;
  margin: 0;
}

html.dark .lux-mission-box p {
  color: #94a3b8;
}

/* ─── Bottom CTA Banner ─── */
.lux-cta-card {
  background: linear-gradient(135deg, var(--primary, #FF5833) 0%, #e04420 100%);
  border-radius: 24px;
  padding: 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 14px 36px rgba(255, 88, 51, 0.22);
}

.lux-cta-card h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px;
  color: #ffffff;
}

.lux-cta-card p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.lux-cta-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lux-btn-white-solid {
  background: #ffffff;
  color: var(--primary, #FF5833) !important;
  font-weight: 800;
  padding: 11px 24px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lux-btn-white-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.lux-btn-outline-white {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  font-weight: 800;
  padding: 11px 24px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  transition: background 0.2s ease;
}

.lux-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ─── Ordering Guide (راهنمای خرید) ─── */
.guide-intro-banner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 32px;
}

html.dark .guide-intro-banner {
  background: #172554;
  border-color: #1e3a8a;
  color: #e0e7ff;
}

.guide-intro-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.guide-intro-text h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #1e3a8a;
}

html.dark .guide-intro-text h4 {
  color: #93c5fd;
}

.guide-intro-text p {
  margin: 0;
  font-size: 14px;
  color: #3b82f6;
  line-height: 1.8;
}

html.dark .guide-intro-text p {
  color: #bfdbfe;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.guide-step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px 20px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

html.dark .guide-step-card {
  background: #1a1a1a;
  border-color: #2e2e2e;
}

.guide-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary, #FF5833);
  box-shadow: 0 10px 24px rgba(255, 88, 51, 0.08);
}

.guide-step-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 88, 51, 0.1);
  color: var(--primary, #FF5833);
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

.guide-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--primary, #FF5833);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 14px;
}

html.dark .guide-step-icon {
  background: #262626;
}

.guide-step-card h5 {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

html.dark .guide-step-card h5 {
  color: #f1f5f9;
}

.guide-step-card p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.75;
}

html.dark .guide-step-card p {
  color: #94a3b8;
}

.guide-notice-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

html.dark .guide-notice-card {
  background: #2a220a;
  border-color: #5c440a;
}

.guide-notice-card .notice-icon {
  color: #d97706;
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.guide-notice-card .notice-body h6 {
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  margin: 0 0 6px;
}

html.dark .guide-notice-card .notice-body h6 {
  color: #fbbf24;
}

.guide-notice-card .notice-body p {
  font-size: 13.5px;
  color: #b45309;
  line-height: 1.7;
}

html.dark .guide-notice-card .notice-body p {
  color: #fde68a;
}

/* ─── Terms & Privacy Styles ─── */
.lux-page-terms .terms-section {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 26px;
  margin-bottom: 26px;
}

html.dark .lux-page-terms .terms-section {
  border-color: #262626;
}

.lux-page-terms .terms-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.terms-sec-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.terms-sec-title i {
  font-size: 22px;
  color: var(--primary, #FF5833);
}

.terms-sec-title h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

html.dark .terms-sec-title h4 {
  color: #f1f5f9;
}

.terms-sec-body {
  padding-right: 34px;
}

.terms-sec-body ul {
  padding-right: 20px;
  margin-top: 10px;
  margin-bottom: 0;
}

.terms-sec-body li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #475569;
}

html.dark .terms-sec-body li {
  color: #94a3b8;
}

/* ─── Responsive Queries ─── */
@media (max-width: 991px) {
  .lux-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lux-tech-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .lux-mission-grid {
    grid-template-columns: 1fr;
  }
  .lux-story-img {
    height: 340px;
    margin-bottom: 24px;
  }
}

@media (max-width: 575px) {
  .lux-hero-banner {
    padding: 28px 20px;
  }
  .lux-hero-title {
    font-size: 24px;
  }
  .lux-stats-grid {
    grid-template-columns: 1fr;
  }
  .lux-tech-grid-3 {
    grid-template-columns: 1fr;
  }
  .lux-content-card {
    padding: 24px 18px;
  }
  .lux-cta-card {
    padding: 28px 20px;
    text-align: center;
    justify-content: center;
  }
  .lux-cta-btns {
    justify-content: center;
    width: 100%;
  }
  .terms-sec-body {
    padding-right: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════
   BLOG & ENCYCLOPEDIA STYLES
   ══════════════════════════════════════════════════════════════════ */
.blog-card {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
.blog-card:hover {
  transform: translateY(-6px) !important;
}
.blog-card-compact .blog-card-img {
  height: 180px !important;
}
.blog-card-compact .blog-card-body {
  padding: 16px 18px !important;
}
.blog-card-compact .blog-card-title {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin-bottom: 8px !important;
}
.blog-card-compact .blog-card-excerpt {
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  margin-bottom: 12px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-compact .blog-card-footer {
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
}
html.dark .blog-card-compact .blog-card-footer {
  border-color: #262626 !important;
}
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--primary, #FF5833) !important;
}
.blog-card-img img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}
.hover-primary {
  transition: color 0.25s ease;
}
.hover-primary:hover {
  color: var(--primary, #FF5833) !important;
}
.hover-bg-light:hover {
  background-color: #f8fafc !important;
}
.blog-tag-pill {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid #e2e8f0;
}
.blog-tag-pill:hover {
  background: var(--primary, #FF5833);
  color: #ffffff;
  border-color: var(--primary, #FF5833);
  transform: translateY(-2px);
}
.post-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 2.1;
  color: #334155;
}
.post-content h2, .post-content h3, .post-content h4 {
  font-weight: 800;
  color: #0f172a;
  margin-top: 36px;
  margin-bottom: 16px;
}
.post-content ul, .post-content ol {
  padding-right: 24px;
  margin-bottom: 24px;
}
.post-content li {
  margin-bottom: 8px;
  line-height: 1.9;
}
.single-post-featured img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}
@media (max-width: 767px) {
  .single-post-featured img {
    height: 260px;
  }
}
html.dark .blog-card,
html.dark .sidebar-widget,
html.dark .single-post-section,
html.dark .blog-comment-card,
html.dark .author-bio-card,
html.dark .comment-form-card {
  background-color: #141414 !important;
  border-color: #262626 !important;
  color: #e2e8f0 !important;
}
html.dark .post-content p,
html.dark .post-content h2,
html.dark .post-content h3,
html.dark .post-content h4,
html.dark .blog-card-title a {
  color: #f1f5f9 !important;
}
html.dark .blog-tag-pill {
  background: #1e1e1e;
  color: #94a3b8;
  border-color: #2c2c2c;
}
html.dark .post-lead {
  background: #1a1a1a !important;
  color: #cbd5e1 !important;
}

/* ─── SIDEBAR & POPULAR POSTS STRICT RTL ─── */
[dir="rtl"] .blog-sidebar,
.blog-sidebar {
  text-align: right !important;
  direction: rtl !important;
}

[dir="rtl"] .sidebar-widget,
.sidebar-widget {
  text-align: right !important;
  direction: rtl !important;
}

[dir="rtl"] .sidebar-widget-title,
.sidebar-widget-title {
  text-align: right !important;
}

[dir="rtl"] .popular-post-item,
.popular-post-item {
  text-align: right !important;
  direction: rtl !important;
}

.popular-post-item h6,
.popular-post-item h6 a {
  text-align: right !important;
  display: block !important;
  color: #0f172a !important;
}

html.dark .popular-post-item h6 a {
  color: #f1f5f9 !important;
}

.popular-post-item .text-muted {
  text-align: right !important;
  justify-content: flex-start !important;
}

/* ==========================================================================
   دستیار هوشمند تماس و ارتباطات (AI Contact Assistant Widget)
   ========================================================================== */

/* ─── Floating Trigger Button (Left Side) ─── */
.ai-contact-floating-wrap {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9998;
  direction: rtl;
  user-select: none;
}

.ai-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  padding: 6px 16px 6px 7px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 12px 28px -4px rgba(14, 165, 233, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  text-decoration: none;
}

.ai-contact-btn:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 16px 36px -4px rgba(14, 165, 233, 0.55), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.ai-contact-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Concentric Pulse Rings */
.ai-contact-pulse-ring,
.ai-contact-pulse-ring-2 {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(56, 189, 248, 0.6);
  pointer-events: none;
  animation: aiPulseRings 2.8s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

.ai-contact-pulse-ring-2 {
  animation-delay: 1.2s;
  border-color: rgba(99, 102, 241, 0.5);
}

@keyframes aiPulseRings {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  60% {
    transform: scale(1.22);
    opacity: 0;
  }
  100% {
    transform: scale(1.26);
    opacity: 0;
  }
}

/* Avatar Box */
.ai-contact-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
}

.ai-contact-avatar-box .ai-main-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.ai-contact-btn:hover .ai-main-icon {
  transform: scale(1.1) rotate(-6deg);
}

.ai-icon-sparkle {
  position: absolute;
  top: -4px;
  left: -2px;
  font-size: 11px;
  color: #facc15;
  animation: aiSparkleGlow 2s infinite ease-in-out;
}

@keyframes aiSparkleGlow {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

.ai-online-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* Text Pill in Button */
.ai-contact-text-pill {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.25;
}

.ai-pill-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.ai-pill-sub {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
}

/* ─── AI Modal Styles ─── */
.ai-assistant-modal {
  position: fixed;
  inset: 0;
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  direction: rtl;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ai-assistant-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ai-assistant-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ai-assistant-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 530px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.ai-assistant-card {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(14, 165, 233, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-assistant-modal.is-open .ai-assistant-card {
  transform: translateY(0) scale(1);
}

/* Tech Accent Top Bar */
.ai-assistant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #6366f1, #f59e0b, #0284c7);
  background-size: 200% 100%;
  animation: aiGradientShift 4s linear infinite;
  z-index: 10;
}

@keyframes aiGradientShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Dark Mode Modal Container */
html.dark .ai-assistant-card {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.2);
}

/* Modal Header */
.ai-card-header {
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.07) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html.dark .ai-card-header {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(99, 102, 241, 0.12) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ai-avatar-glow {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  position: relative;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.ai-status-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

html.dark .ai-status-indicator {
  border-color: #0f172a;
}

.ai-title {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

html.dark .ai-title {
  color: #ffffff;
}

.ai-badge-ai {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ai-subtitle {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

html.dark .ai-subtitle {
  color: #94a3b8;
}

.ai-dot-green {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: aiPulseDot 1.6s infinite ease-in-out;
}

@keyframes aiPulseDot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.ai-btn-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}

.ai-btn-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
  transform: rotate(90deg);
}

html.dark .ai-btn-close {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

html.dark .ai-btn-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

/* Modal Body (Compact Bento - Zero Scroll) */
.ai-card-body {
  padding: 14px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Bento Base Card */
.ai-bento-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 14px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

html.dark .ai-bento-card {
  background: #131d31;
  border-color: #1e293b;
}

.ai-bento-card:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 6px 16px -3px rgba(15, 23, 42, 0.08);
}

html.dark .ai-bento-card:hover {
  box-shadow: 0 6px 18px -3px rgba(0, 0, 0, 0.4);
  border-color: rgba(56, 189, 248, 0.45);
}

/* 1. Featured Order Tracking Banner */
.ai-track-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.09) 100%);
  border: 1.5px solid rgba(14, 165, 233, 0.3);
  padding: 11px 15px;
}

html.dark .ai-track-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14) 0%, rgba(99, 102, 241, 0.16) 100%);
  border-color: rgba(56, 189, 248, 0.35);
}

.ai-track-banner:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.22);
}

.ai-track-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #ffffff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.ai-bento-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

html.dark .ai-bento-title {
  color: #ffffff;
}

.ai-bento-tag {
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.ai-bento-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

html.dark .ai-bento-sub {
  color: #94a3b8;
}

.ai-bento-arrow {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ffffff;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

html.dark .ai-bento-arrow {
  background: #1e293b;
  color: #38bdf8;
}

.ai-track-banner:hover .ai-bento-arrow {
  background: #0284c7;
  color: #ffffff;
  transform: translateX(-3px);
}

/* 2. Bento Grid (2 Columns) */
.ai-bento-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 10px;
}

.ai-phone-bento {
  padding: 10px 12px;
}

.ai-phone-head-icon {
  color: #0284c7;
  font-size: 15px;
}

.ai-status-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #0284c7;
  background: rgba(14, 165, 233, 0.1);
  padding: 2px 7px;
  border-radius: 12px;
}

.ai-compact-phones {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ai-c-phone {
  background: #f8fafc;
  border-radius: 9px;
  padding: 5px 8px;
  border: 1px solid #f1f5f9;
}

html.dark .ai-c-phone {
  background: #0f172a;
  border-color: #1e293b;
}

.ai-c-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

html.dark .ai-c-label {
  color: #94a3b8;
}

.ai-c-num {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.3px;
  direction: ltr;
}

html.dark .ai-c-num {
  color: #ffffff;
}

.ai-mini-copy,
.ai-mini-call {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  transition: all 0.18s ease;
}

html.dark .ai-mini-copy {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.ai-mini-copy:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

.ai-mini-call {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff !important;
}

.ai-mini-call:hover {
  background: #059669;
  border-color: #059669;
  transform: scale(1.05);
}

/* Social Bento Cards */
.ai-social-bento {
  padding: 10px 12px;
}

.ai-social-bento:hover {
  transform: translateY(-2px);
}

.ai-bento-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  flex-shrink: 0;
}

.ai-whatsapp-bg {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.3);
}

.ai-instagram-bg {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  box-shadow: 0 3px 8px rgba(253, 29, 29, 0.3);
}

.ai-social-arrow {
  color: #94a3b8;
  font-size: 13px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ai-social-bento:hover .ai-social-arrow {
  color: #0284c7;
  transform: translateX(-3px);
}

/* 3. Address & Navigation Strip */
.ai-address-bento {
  padding: 9px 13px;
  background: #f8fafc;
}

html.dark .ai-address-bento {
  background: #0f172a;
}

.ai-bento-address-text {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

html.dark .ai-bento-address-text {
  color: #cbd5e1;
}

.ai-nav-hint {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

html.dark .ai-nav-hint {
  color: #94a3b8;
}

.ai-mini-nav {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
}

.ai-nav-neshan {
  background: rgba(0, 114, 239, 0.08);
  color: #0072ef !important;
  border-color: rgba(0, 114, 239, 0.2);
}
.ai-nav-neshan:hover {
  background: #0072ef;
  color: #ffffff !important;
}

.ai-nav-balad {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706 !important;
  border-color: rgba(245, 158, 11, 0.25);
}
.ai-nav-balad:hover {
  background: #d97706;
  color: #ffffff !important;
}

.ai-nav-google {
  background: rgba(66, 133, 244, 0.08);
  color: #1d4ed8 !important;
  border-color: rgba(66, 133, 244, 0.25);
}
.ai-nav-google:hover {
  background: #1d4ed8;
  color: #ffffff !important;
}

.ai-nav-waze {
  background: rgba(56, 189, 248, 0.1);
  color: #0284c7 !important;
  border-color: rgba(56, 189, 248, 0.25);
}
.ai-nav-waze:hover {
  background: #0284c7;
  color: #ffffff !important;
}

/* Modal Footer (Compact) */
.ai-card-footer {
  padding: 10px 18px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

html.dark .ai-card-footer {
  background: #0c1322;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.ai-footer-hours {
  font-size: 11px;
  color: #64748b;
}

html.dark .ai-footer-hours {
  color: #94a3b8;
}

.ai-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary, #FF5833);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.ai-footer-link:hover {
  gap: 7px;
  color: var(--primary-dark, #e0441f);
}

/* Copy Toast */
.ai-copy-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.4);
  z-index: 10020;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  direction: rtl;
}

.ai-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .ai-contact-floating-wrap {
    bottom: 20px;
    left: 16px;
  }
  .ai-contact-btn {
    padding: 5px;
    border-radius: 50%;
  }
  .ai-contact-avatar-box {
    width: 44px;
    height: 44px;
  }
  .ai-bento-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ai-assistant-card {
    border-radius: 20px;
  }
  .ai-card-header {
    padding: 12px 15px;
  }
  .ai-card-body {
    padding: 12px;
    gap: 8px;
  }
  .ai-card-footer {
    padding: 8px 14px;
  }
}




