/* ============================================================
   KarmaOman Public Styles — Layered on top of design-system.css
   Single Source of Truth: design-system.css ( --k-* variables )
   ============================================================ */

/* ---------- 1. LAYOUT BASE ---------- */
.site-main { padding: 0; }
.h-100 { min-height: 100% !important; }

/* BUG FIX I — GLOBAL SAFE SPACING LAW PUBLIC PAGES: هیچ دو کادر/بخش به هم نچسبند */
section + section { margin-top: 4.5rem !important; }
section[class*="k-"] + section[class*="k-"] { margin-top: 4.5rem !important; }
.site-main > section { padding-block: 3.5rem; }
.k-page-section { padding-block: 4rem; }

/* Cardهای عمومی — فاصله داخلی و بینی استاندارد */
.k-vehicle-card,
.k-blog-card,
.card,
.kar-card,
.profile-card {
  padding: 1.5rem !important;
}
.row.g-3 > *, .row.g-4 > * {
  padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
}
.row.g-4 {
  --bs-gutter-y: 1.75rem;
}
.row.g-3 {
  --bs-gutter-y: 1.25rem;
}

/* دکمه‌ها - فاصله استاندارد */
.btn + .btn { margin-right: .55rem; }
.d-flex.gap-2 { gap: .75rem !important; }
.d-flex.gap-3 { gap: 1rem !important; }

/* Flash messages - Premium Automotive */
.flash-wrap { margin-top: var(--k-space-sm); }
.flash-wrap + .flash-wrap { margin-top: var(--k-space-xs); }
.flash {
  padding: var(--k-space-md) 1.1rem;
  border-radius: var(--k-radius-lg);
  margin: 0;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: .94rem;
  line-height: 1.65;
  position: relative;
  overflow: hidden;
  box-shadow: var(--k-shadow-sm);
}
.flash::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  opacity: .6;
}
.flash-icon {
  font-size: 1.35rem;
  margin-top: 1px;
  line-height: 1;
}
.flash-close {
  border: 0;
  background: transparent;
  padding: .35rem .45rem;
  margin-top: -2px;
  border-radius: var(--k-radius-sm);
  color: inherit;
  opacity: .55;
  transition: all var(--k-tr-fast);
  cursor: pointer;
  font-size: .9rem;
}
.flash-close:hover { opacity: 1; background: rgba(0,0,0,.05); transform: translateY(-1px); }

.flash-success {
  background: linear-gradient(180deg, #F0FDF4 0%, #ECFDF5 100%);
  color: #065F46;
  border-color: #BBF7D0;
}
.flash-success::before { background: linear-gradient(90deg, #16A34A, #22C55E); }
.flash-success .flash-icon { color: #16A34A; }

.flash-error {
  background: linear-gradient(180deg, #FEF2F2 0%, #FEE2E2 100%);
  color: #991B1B;
  border-color: #FECACA;
}
.flash-error::before { background: linear-gradient(90deg, #DC2626, #EF4444); }
.flash-error .flash-icon { color: #DC2626; }

.flash-info {
  background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1E40AF;
  border-color: #BFDBFE;
}
.flash-info::before { background: linear-gradient(90deg, #2563EB, #3B82F6); }
.flash-info .flash-icon { color: #2563EB; }

.flash-warning {
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%);
  color: #92400E;
  border-color: #FDE68A;
}
.flash-warning::before { background: linear-gradient(90deg, #D97706, #F59E0B); }
.flash-warning .flash-icon { color: #D97706; }

/* Breadcrumb (legacy pages) */
.breadcrumb {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  padding: .7rem 1rem;
  border-radius: var(--k-radius-md);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: var(--k-space-md);
  box-shadow: var(--k-shadow-xs);
}
.breadcrumb a { color: var(--k-text-2); text-decoration: none; font-weight: 500; transition: color var(--k-tr-fast); }
.breadcrumb a:hover { color: var(--k-red); }
.breadcrumb .active { color: var(--k-black); font-weight: 700; }
.breadcrumb-item + .breadcrumb-item::before { content: "\2039"; color: var(--k-text-muted); padding-inline: .25rem; }

.page-title-bar {
  padding: var(--k-space-3xl) 0 var(--k-space-lg);
  border-bottom: 1px solid var(--k-border);
  margin-bottom: var(--k-space-2xl);
  position: relative;
  background:
    linear-gradient(90deg, rgba(200,16,46,.05) 0%, transparent 30%);
}
.page-title-bar::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 30%;
  height: 3px;
  background: linear-gradient(90deg, var(--k-red), rgba(200,16,46,.3), transparent);
  border-radius: 0 3px 0 0;
}
.page-title-bar .page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin: 0;
  letter-spacing: -.015em;
  color: var(--k-black);
}
.page-title-bar .page-sub { color: var(--k-text-muted); margin-top: .55rem; font-size: .97rem; line-height: 1.8; }

/* ---------- 2. BRAND MARK (Header & Footer) ---------- */
.k-brand-mark {
  width: 46px; height: 46px;
  border-radius: var(--k-radius-md);
  background: var(--k-black);
  color: var(--k-white);
  font-size: 1.3rem;
  box-shadow: var(--k-shadow-sm);
  border: 1.5px solid var(--k-red);
  flex-shrink: 0;
}
.k-brand-mark i { color: var(--k-red); }
.k-brand-mark-sm {
  width: 36px; height: 36px;
  border-radius: var(--k-radius-sm);
  font-size: 1rem;
  background: var(--k-red);
  border: 0;
}
.k-brand-mark-sm i { color: var(--k-white); }
.k-brand-text {
  color: var(--k-black);
  letter-spacing: .5px;
  font-weight: 900;
  line-height: 1;
}
.k-brand-sub {
  font-size: .7rem;
  letter-spacing: 1.8px;
  color: var(--k-text-muted);
  font-weight: 700;
  line-height: 1;
}

/* ---------- 3. HEADER ---------- */
.site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--k-border);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.site-header .navbar { padding: 1rem 0; }
.site-header .navbar-toggler {
  border: 1px solid var(--k-border);
  padding: .45rem .6rem;
  border-radius: var(--k-radius-sm);
}
.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--k-shadow-focus);
  border-color: var(--k-red);
}
.site-header .navbar-nav .nav-link {
  color: var(--k-text);
  font-weight: 600;
  font-size: .95rem;
  padding: .55rem .95rem;
  border-radius: var(--k-radius-sm);
  transition: all var(--k-tr-fast);
}
.site-header .navbar-nav .nav-link:hover {
  color: var(--k-red);
  background: var(--k-surface);
}
.site-header .navbar-nav .nav-link.active {
  color: var(--k-white);
  background: var(--k-black);
  box-shadow: var(--k-shadow-sm);
}
.site-header .navbar-nav .nav-link.active:hover {
  background: var(--k-black);
  color: var(--k-white);
}
.dropdown-menu {
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-md);
  box-shadow: var(--k-shadow-md);
  font-family: var(--k-font-sans);
  --bs-dropdown-link-active-bg: var(--k-red-soft);
  --bs-dropdown-link-active-color: var(--k-black);
  --bs-dropdown-link-hover-bg: var(--k-surface);
}
.dropdown-menu .dropdown-item {
  padding: .55rem .85rem;
  border-radius: var(--k-radius-sm);
  font-weight: 500;
  font-size: .92rem;
  margin-bottom: .1rem;
  color: var(--k-text);
}
.dropdown-menu .dropdown-header {
  font-weight: 800;
  font-size: .85rem;
  color: var(--k-black);
  padding: .25rem 0 .6rem;
}
.k-dropdown-mega {
  padding: 1rem !important;
  min-width: 320px !important;
  border: 1px solid var(--k-border) !important;
  box-shadow: var(--k-shadow-lg) !important;
}
.k-dropdown-mega li:last-child hr { margin: .6rem 0 .7rem; }

/* ---------- 4. FOOTER ---------- */
.k-footer {
  background: var(--k-black);
  color: rgba(255,255,255,0.82);
  margin-top: 0;
}
.site-footer > .container > .row {
  display: grid !important;
  grid-template-columns: 1.6fr 1.1fr 1.3fr;
  gap: 2.5rem 2rem;
  align-items: start;
  flex-wrap: nowrap;
}
.site-footer > .container > .row > * {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
@media (max-width: 991.98px) {
  .site-footer > .container > .row {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem 1.5rem;
  }
}
@media (max-width: 575.98px) {
  .site-footer > .container > .row {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .site-footer * { text-align: center !important; }
  .site-footer ul { padding: 0 !important; }
}
.k-footer h5, .k-footer h6 { color: #fff; font-weight: 800; margin-bottom: 1rem; }
.k-footer p { color: rgba(255,255,255,0.65); }
.k-footer .footer-link {
  color: rgba(255,255,255,0.65);
  display: block;
  padding: .25rem 0;
  text-decoration: none;
  transition: color var(--k-tr-fast);
  font-size: .9rem;
}
.k-footer .footer-link:hover {
  color: var(--k-red);
  transform: translateX(-2px);
}
.k-footer .footer-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--k-radius-sm);
  padding: .55rem .35rem;
  text-align: center;
}
.k-footer .footer-stat-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.k-footer .footer-stat-lbl {
  font-size: .7rem;
  color: rgba(255,255,255,0.55);
  margin-top: .2rem;
}
.text-footer-muted { color: rgba(255,255,255,0.60) !important; }
.k-footer ul li { margin-bottom: .3rem; }
.k-footer ul li i { color: var(--k-red); width: 18px; display: inline-block; text-align: center; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
}
.border-white-10 { border-color: rgba(255,255,255,0.10) !important; }

/* Social buttons */
.k-social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--k-tr-fast);
  text-decoration: none;
}
.k-social-btn:hover {
  background: var(--k-red);
  border-color: var(--k-red);
  color: #fff;
  transform: translateY(-2px);
}

/* Newsletter (footer) */
.newsletter-form .newsletter-input {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.14);
  color: #fff;
  border-radius: var(--k-radius-sm);
  padding: .6rem .85rem;
  transition: all var(--k-tr-fast);
}
.newsletter-form .newsletter-input::placeholder {
  color: rgba(255,255,255,0.45);
}
.newsletter-form .newsletter-input:focus {
  border-color: var(--k-red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ============================================================
   HOMEPAGE SECTION STYLES
   (Homepage-specific; layered on Design System)
   ============================================================ */

/* ---------- HERO ---------- */
.k-home-hero {
  background: var(--k-black);
  color: #fff;
  padding: 5rem 0 6rem;
  position: relative;
}
.k-home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 100% 120%, rgba(200,16,46,.22), transparent 60%),
    radial-gradient(70% 90% at 0% 0%, rgba(200,16,46,.12), transparent 55%);
  background-color: #0B0F14;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
  filter: saturate(.9) brightness(.35);
  transform: scale(1.02);
  pointer-events: none;
}
.k-home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.k-home-hero-row {
  min-height: 520px;
}
.k-home-hero h1 {
  color: #fff;
  font-weight: 900;
  letter-spacing: -.01em;
}
.k-home-hero p.lead {
  color: rgba(255,255,255,0.85);
}
.h-hero-stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .8rem .5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--k-radius-md);
  text-align: center;
}
.h-hero-stat strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
}
.h-hero-stat span {
  font-size: .76rem;
  color: rgba(255,255,255,0.62);
  font-weight: 500;
}
.k-hero-badge-float {
  position: absolute;
  bottom: -22px;
  left: 26px;
  background: var(--k-white);
  color: var(--k-black);
  padding: 1.15rem 1.1rem;
  border-radius: var(--k-radius-lg);
  box-shadow: var(--k-shadow-lg);
  border: 1px solid var(--k-border);
  min-width: 280px;
}

/* ---------- PATH CARDS (Rental / Sale) extras ---------- */
.k-path-icon {
  width: 48px; height: 48px;
  border-radius: var(--k-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.k-path-icon-rental { background: var(--k-red-soft);    color: var(--k-red); }
.k-path-icon-sale   { background: var(--k-black-soft);  color: var(--k-black); border: 1px solid var(--k-border); }
.k-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.k-check-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .95rem;
  color: var(--k-text-2);
  line-height: 1.55;
}
.k-check-list li i {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- PARTS BANNER extras ---------- */
.k-parts-banner {
  background: var(--k-black);
  color: #fff;
  border-radius: var(--k-radius-xl);
  border: 0;
  overflow: hidden;
}
.k-parts-banner h3 { color: #fff; margin-top: .5rem; }
.k-parts-banner p { color: rgba(255,255,255,0.75); max-width: 60ch; }
.k-parts-banner .k-badge-outline {
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.04);
}

/* ---------- ADVANTAGE CARD extras ---------- */
.k-adv-icon {
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--k-radius-md);
  background: var(--k-black);
  color: var(--k-red);
  font-size: 1.55rem;
  flex-shrink: 0;
  box-shadow: var(--k-shadow-sm);
}
.advantage-card {
  transition: all var(--k-tr-base);
  border: 1px solid var(--k-border);
}
.advantage-card:hover {
  border-color: var(--k-red);
  transform: translateY(-3px);
  box-shadow: var(--k-shadow-md);
}
.advantage-card:hover .k-adv-icon {
  background: var(--k-red);
  color: #fff;
}

/* ---------- HOME FINAL CTA ---------- */
.k-home-cta {
  background: var(--k-black);
  color: #fff;
  border-radius: var(--k-radius-xl);
  padding: 3.25rem !important;
  position: relative;
  overflow: hidden;
  box-shadow: var(--k-shadow-md);
}
.k-home-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-45deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 22px);
  pointer-events: none;
  opacity: .6;
}
.k-home-cta > * { position: relative; z-index: 1; }
.k-home-cta h2 { color: #fff; margin-bottom: .5rem; }

/* ---------- RESPONSIVE HOMEPAGE ---------- */
@media (max-width: 1199.98px) {
  .k-home-hero { padding: 4rem 0 5rem; }
  .k-home-cta { padding: 2.25rem !important; }
}
@media (max-width: 991.98px) {
  .site-header .navbar-nav .nav-link { padding: .7rem .85rem; }
  .k-home-hero { padding: 3rem 0 3.5rem; }
  .k-home-hero-row { min-height: auto; }
  .k-hero-badge-float {
    position: relative;
    inset: auto;
    margin: 1.5rem auto 0;
    min-width: auto;
    left: auto;
    bottom: auto;
  }
}
@media (max-width: 767.98px) {
  .k-home-cta { padding: 1.75rem !important; border-radius: var(--k-radius-lg); }
  .k-home-hero { padding: 2.5rem 0 3rem; }
  .h-hero-stat { padding: .6rem .25rem; }
  .h-hero-stat strong { font-size: 1.15rem; }
  .k-footer .footer-link { text-align: center; }
}
@media (max-width: 575.98px) {
  .k-brand-mark { width: 40px; height: 40px; font-size: 1.1rem; }
  .k-brand-text { font-size: 1.15rem; }
  .k-brand-sub { display: none; }
}

/* ---------- LEGACY COMPATIBILITY (old pages using old classes) ----------
   Kept so other public pages (not refactored yet) don't break visually.
   These map old tokens → new DS tokens where possible, or leave sane defaults. */
.bg-footer { background: var(--k-black); color: rgba(255,255,255,0.75); }
.text-accent  { color: var(--k-red) !important; }
.bg-accent    { background: var(--k-red) !important; }
.text-footer-muted { color: rgba(255,255,255,0.65); }
.btn-accent   { background: var(--k-red); color: #fff; border-color: var(--k-red); font-family: var(--k-font-sans); font-weight:600; }
.btn-accent:hover { background: var(--k-red-hover); color:#fff; border-color: var(--k-red-hover); }
.btn-outline-accent { color: var(--k-red); border-color: var(--k-red); background: transparent; }
.btn-outline-accent:hover { background: var(--k-red); color: #fff; border-color: var(--k-red); }
.btn-primary-custom { background: var(--k-black); color:#fff; border-color: var(--k-black); font-family: var(--k-font-sans); font-weight:600; }
.btn-primary-custom:hover { background:#1a1a1a; color:#fff; border-color:#1a1a1a; }
.btn-ghost { color: var(--k-text-2); background: transparent; border: 1px solid var(--k-border); font-family: var(--k-font-sans); font-weight:600; border-radius: var(--k-radius-sm); padding: .45rem 1rem; transition: all var(--k-tr-fast); }
.btn-ghost:hover { color: var(--k-black); background: var(--k-surface); border-color: var(--k-border-2); }
.brand-mark {
  width: 46px; height: 46px; border-radius: var(--k-radius-md);
  background: var(--k-black); color: var(--k-red); border: 1.5px solid var(--k-red);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark-sm { width: 36px; height: 36px; background: var(--k-red); border: 0; color: #fff; }
.brand-logo-text { color: var(--k-black); font-weight: 900; letter-spacing: 1px; }
.brand-sub { color: var(--k-text-muted); font-size: .72rem; letter-spacing: 1.4px; }
.mega-card { padding: 1rem !important; min-width: 320px !important; border: 1px solid var(--k-border) !important; box-shadow: var(--k-shadow-lg) !important; }
.vehicle-card { border:1px solid var(--k-border); border-radius:var(--k-radius-lg); background:#fff; overflow:hidden; box-shadow:var(--k-shadow-sm); transition: all var(--k-tr-base); }
.vehicle-card:hover { box-shadow: var(--k-shadow-md); border-color: var(--k-border-2); transform: translateY(-2px); }
.home-hero, .path-card, .parts-banner, .advantage-card, .home-cta { display: block; }
.btn-block { width:100%; }
.badge-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #F1CF85;
  box-shadow: 0 0 0 4px rgba(241,207,133,.18);
  margin: 0 2px;
}

/* ===== BLOG STYLES — KarmaOman Automotive ===== */
.k-blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 80px);
  background: linear-gradient(135deg, #0B0F14 0%, #151B23 60%, #1B1028 100%);
  color: #fff;
}
.k-blog-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: none;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.k-blog-card {
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: var(--k-radius-lg);
  overflow: hidden;
  background: var(--k-white);
  border: 1px solid var(--k-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.k-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px var(--k-red-soft), 0 6px 18px -8px rgba(0,0,0,0.12);
}
.k-blog-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--k-surface), var(--k-surface-2));
}
.k-blog-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--k-tr-slow) ease;
}
.k-blog-card:hover .thumb img { transform: scale(1.05); }
.k-blog-card .badge-cat {
  position: absolute; top: 14px; right: 14px;
  background: rgba(11,15,20,.82); color: var(--k-white);
  padding: 5px 12px; border-radius: var(--k-radius-pill); font-size: 12px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.k-blog-card .badge-type {
  position: absolute; bottom: 12px; left: 14px;
  padding: 4px 10px; border-radius: var(--k-radius-pill); font-size: 11px; font-weight: 700;
}
.k-blog-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.k-blog-card h3 {
  font-size: 1.15rem; line-height: 1.5; font-weight: 800; color: var(--k-black);
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.k-blog-card .excerpt {
  font-size: .93rem; color: var(--k-text-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.k-blog-card .meta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--k-text-muted);
  padding-top: 10px; border-top: 1px solid var(--k-border);
}
.k-blog-card .readmore {
  color: var(--k-red); font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.transition-transform-300 { transition: transform var(--k-tr-slow) ease; }
.k-blog-card:hover .transition-transform-300 { transform: scale(1.04); }
.hover-text-red-accent:hover { color: var(--k-red) !important; }
.hover-underline:hover { text-decoration: underline !important; }
.k-post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #171A1F;
}
.k-post-content h2 {
  font-size: 1.6rem; font-weight: 800; margin-top: 2.2rem; margin-bottom: 1rem; color: #0B0F14;
}
.k-post-content h3 {
  font-size: 1.25rem; font-weight: 700; margin-top: 1.6rem; margin-bottom: .8rem; color: #0B0F14;
}
.k-post-content p { margin: 1rem 0; }
.k-post-content ul, .k-post-content ol { padding-right: 1.5rem; margin: 1rem 0; }
.k-post-content li { margin: .4rem 0; }
.k-post-content blockquote {
  border-right: 4px solid #C8102E;
  background: #fff9f9;
  padding: 14px 20px;
  margin: 1.4rem 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #3a3a3a;
}
.k-post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; }
.k-post-content table {
  width: 100%; border-collapse: collapse; margin: 1.4rem 0;
  border-radius: 10px; overflow: hidden;
  border: 1px solid #e5e7eb;
}
.k-post-content th, .k-post-content td {
  padding: 10px 14px; border-bottom: 1px solid #eee; text-align: right;
}
.k-post-content th { background: #f6f7f9; font-weight: 700; }
.k-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin: 1.2rem 0 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.k-video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.ka-pill-category {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  background: #F2F4F7;
  color: #171A1F;
  margin: 0 6px 6px 0;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid transparent;
}
.ka-pill-category.active {
  background: #C8102E;
  color: #fff;
  border-color: #C8102E;
}
.ka-pill-category:hover {
  background: #fff;
  border-color: #C8102E;
  color: #C8102E;
}
.share-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 20px;
  background: #fafbfc;
  border-radius: 12px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #eef0f3;
}
.share-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  color: #555;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform .2s;
}
.share-row a:hover {
  transform: translateY(-2px);
  color: #C8102E;
}
.kate-editor-wrap {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.kate-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px;
  background: #f7f8fa;
  border-bottom: 1px solid #e6e8eb;
}
.kate-editor-toolbar button {
  width: 36px; height: 36px;
  border: 1px solid #e1e4e8;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: #333;
}
.kate-editor-toolbar button:hover {
  background: #C8102E;
  color: #fff;
  border-color: #C8102E;
}
.kate-editor-content {
  min-height: 320px;
  padding: 16px 20px;
  outline: none;
  direction: rtl;
  font-family: inherit;
  line-height: 1.8;
}
.kate-editor-content:focus {
  background: #feffff;
}
/* ===== END BLOG STYLES ===== */

/* ---------- GLOBAL SPACING & LIST POLISH ---------- */
.form-label,
label.form-label,
.site-main label {
  margin-bottom: .45rem;
  font-weight: 700;
  line-height: 1.6;
}

.form-control,
.form-select,
textarea.form-control,
.input-group-text {
  min-height: 44px;
  line-height: 1.6;
}

.form-control,
.form-select,
textarea.form-control {
  padding: .72rem .95rem;
}

.input-group-text {
  padding: .72rem .9rem;
  align-items: center;
}

.site-main .card,
.site-main .k-card,
.site-main .vehicle-card,
.site-main .k-blog-card,
.site-main .k-empty-state,
.site-main .breadcrumb,
.site-main .list-group,
.site-main .table-responsive {
  margin-bottom: 1rem;
}

.site-main .list-group-item,
.site-main .card-body,
.site-main .card-header,
.site-main .card-footer {
  padding: 1rem 1.1rem;
}

.site-main .table > :not(caption) > * > * {
  padding: .95rem .9rem;
  vertical-align: middle;
}

.site-main .badge,
.site-main .btn,
.site-main .k-badge,
.site-main .ka-pill-category {
  line-height: 1.5;
}

.site-main .small,
.site-main small,
.site-main .text-muted {
  line-height: 1.8;
}

@media (max-width: 575.98px) {
  .site-main .list-group-item,
  .site-main .card-body,
  .site-main .card-header,
  .site-main .card-footer {
    padding: .9rem;
  }
}

/* ============================================================
   GLOBAL RULE: حذف کامل STICKY در تمام بخش عمومی سایت
   User: اصلاً نمی‌خواهم هیچ باکسی حالت چسبانک داشته باشد و روی منو بیاید
   ============================================================ */
.site-header,
.sticky-top,
.sticky-bottom,
.position-sticky,
[class*="sticky"],
[style*="position:sticky"],
[style*="position: sticky"] {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
}
