:root {
  /* ===== ORANGE THEME ===== */
  --p: #E45A2A;               /* Primary orange */
  --p2: #FF8A3D;              /* Secondary orange */
  --accent: #FF6A1A;          /* Accent orange */
  --ink: #2B1A12;             /* Deep warm dark text */
  --muted: #7A5A4A;           /* Warm muted text */
  --border: rgba(228, 90, 42, .20);
  --card: rgba(255, 255, 255, .94);
  --shadow: 0 18px 55px rgba(228, 90, 42, .18);
  --shadow-sm: 0 12px 34px rgba(228, 90, 42, .14);
  --r: 22px;
}

/* ================
   BLOG DETAILS V2
================= */

.postv2-wrap {
  margin: 18px 0 55px;
}

.postv2-wrap.container {
  margin-inline: auto;
  width: 92%;
  max-width: 1200px;
  padding-inline: 16px;
}

.postv2-hero {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.postv2-hero .hero-media {
  height: 420px;
  background: #2b1a12;
}

.postv2-hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.postv2-hero .hero-grad {
  position: absolute;
  inset: 0;

  pointer-events: none;
}

/* Floating title card */
.postv2-hero .hero-card {
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: -34px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: calc(var(--r) - 4px);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 10px;
  backdrop-filter: blur(8px);
}

@media (min-width: 900px) {
  .postv2-hero .hero-card {
    right: 22px;
    left: auto;
    width: min(560px, 92%);
    bottom: 18px;
  }
}

.postv2-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(255,138,61,.14);
  border: 1px solid rgba(255,138,61,.45);
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
}

.postv2-title {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.4;
}

.postv2-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.postv2-meta span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* Sticky info bar */
.postv2-sticky {
  position: sticky;
  top: 10px;
  z-index: 10;
  margin-top: 54px;
}

.postv2-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.postv2-progress {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.postv2-progress .track {
  height: 10px;
  border-radius: 999px;
  background: rgba(228,90,42,.15);
  overflow: hidden;
  flex: 1;
  min-width: 90px;
}

.postv2-progress .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--p2), var(--accent));
  border-radius: 999px;
}

.postv2-btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: .2s;
}

.postv2-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Layout */
.postv2-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 16px;
  width: 100%;
}

@media (min-width: 1050px) {
  .postv2-grid {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}

.postv2-article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  width: 100%;
}

@media (min-width: 720px) {
  .postv2-article {
    padding: 22px;
  }
}

.postv2-article p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 2.05;
  font-size: 15px;
}

.postv2-article h2 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.45;
}

.postv2-article ul {
  margin: 0 0 14px;
  padding: 0 18px 0 0;
  color: var(--muted);
  line-height: 2;
  font-size: 15px;
}

/* Callouts */
.callout {
  margin: 14px 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
}

.callout.tip {
  border-color: rgba(255,138,61,.45);
  background: rgba(255,138,61,.12);
}

.callout.warn {
  border-color: rgba(255,106,26,.45);
  background: rgba(255,106,26,.12);
}

/* Sidebar */
.side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.side-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 900;
  font-size: 16px;
}

.tocv2 a:hover {
  background: rgba(255,138,61,.12);
  border-color: rgba(255,138,61,.45);
}

.mini-related a:hover {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.copy-msg {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
  display: none;
}
.postv2-hero-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}

.postv2-hero {
  position: relative;
  width: 100%;
  /* height: 75vh; */
  min-height: 420px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-grad {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.1) 70%,
    transparent 100%
  ); */
}

.hero-card {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  color: #fff;
}
.postv2-meta {
  display: flex;
  flex-direction: column; /* يخليهم تحت بعض */
  gap: 6px;
}

.post-subtext {
  font-size: 14px;
  color: #777;
}
/* container */
.mini-related{
  display: grid;
  gap: 12px;
}

/* item card */
.mini-item{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;

  padding: 10px;
  border-radius: 14px;
  background: #fff;

  text-decoration: none;
  color: inherit;

  border: 1px solid rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mini-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.10);
}

/* thumbnail */
.mini-thumb{
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

/* content */
.mini-content{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* title clamp */
.mini-title{
  margin: 0;
  font-size: 15px;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* meta + date */
.mini-meta{
  display: flex;
  align-items: center;
}

.mini-date{
  font-size: 12.5px;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* subtitle */
.mini-subtitle{
  font-size: 13px;
  color: #777;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* optional: nicer RTL alignment */
html[dir="rtl"] .mini-item{
  grid-template-columns: 1fr 92px;
}

html[dir="rtl"] .mini-thumb{
  grid-column: 2;
}

html[dir="rtl"] .mini-content{
  grid-column: 1;
}
/* خلي العنصر عمودي */
.mini-item{
  display: flex;
  flex-direction: column;
  gap: 14px;

  padding: 14px;
  border-radius: 18px;
  background: #fff;

  text-decoration: none;
  color: inherit;

  border: 1px solid rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.mini-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* الصورة تاخذ العرض كامل */
.mini-thumb{
  width: 100%;
  height: 180px; /* تقدر تزودها */
  border-radius: 16px;
  object-fit: cover;
}

/* المحتوى */
.mini-content{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* العنوان */
.mini-title{
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* التاريخ */
.mini-date{
  font-size: 13px;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* السطر السفلي */
.mini-subtitle{
  font-size: 13px;
  color: #777;
}
