.pf3, .pf3 *{ box-sizing:border-box; }

/* Full width breakout (tagDiv safe) */
.pf3-full{
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
}

.pf3{
  /* Theme-aware */
  --bg:     var(--td_body_bg, var(--td_background_color, #0B1220)); /* نفس لون الصفحة */
  --accent: var(--td_theme_color, var(--td_theme_color_main, #0A7674));
  --text:  #F9FAFB;
  --muted:  var(--td_text_color_secondary, rgba(249,250,251,.72));

  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.06);

  background: var(--bg);
  padding: 54px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position:relative;
  overflow:hidden;
}

/* micro texture + premium lights (بدون تغيير لون الخلفية) */
.pf3:before{
  content:"";
  position:absolute; inset:-1px;
  background:
    radial-gradient(900px 380px at 18% 35%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(900px 380px at 85% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  opacity:.22;
  pointer-events:none;
  mask-image: radial-gradient(circle at 55% 35%, rgba(0,0,0,1), rgba(0,0,0,.22) 55%, transparent 78%);
}

@supports not (color: color-mix(in srgb, red 50%, white)){
  .pf3:before{ opacity:.14; }
}

.pf3-shell{
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
  position:relative;
  z-index:1;
}

.pf3-card{
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: 0 26px 80px rgba(0,0,0,.30);
  overflow:hidden;
  position:relative;
}

/* inner crisp border */
.pf3-card:after{
  content:"";
  position:absolute; inset:0;
  border-radius:24px;
  border: 1px solid var(--stroke2);
  pointer-events:none;
}

.pf3-top{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  padding: 22px 22px 18px;
  align-items:stretch;
}

/* Copy side */
.pf3-copy{
  padding: 10px 10px 6px;
}

.pf3-kicker{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: rgba(249,250,251,.92);
  font-weight: 900;
  font-size: 13px;
  margin: 0 0 12px;
}
@supports not (color: color-mix(in srgb, red 50%, white)){
  .pf3-kicker{
    background: rgba(10,118,116,.14);
    border-color: rgba(10,118,116,.30);
  }
}

.pf3-title{
  margin:0 0 10px;
  color: var(--text);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 1000;
  letter-spacing: .2px;
}

.pf3-brand{
  color: #fff;
  text-shadow: 0 14px 32px rgba(0,0,0,.30);
  position:relative;
  display:inline-block;
}

.pf3-brand:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity:.95;
}

.pf3-desc{
  margin:0 0 16px;
  color: var(--muted);
  font-size: 14.8px;
  line-height: 2;
  font-weight: 700;
  max-width: 720px;
}

.pf3-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
}

.pf3-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, filter .16s ease;
  min-width: 165px;
}

.pf3-btn--primary{
  background: var(--accent);
  color:#fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.30);
}

.pf3-btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.16);
  color: rgba(249,250,251,.92);
}

.pf3-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* Aside */
.pf3-aside{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  position:relative;
}

.pf3-pill{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.pf3-pill:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, rgba(255,255,255,.02));
}

@supports not (color: color-mix(in srgb, red 50%, white)){
  .pf3-pill:hover{
    border-color: rgba(10,118,116,.30);
    background: rgba(10,118,116,.08);
  }
}

.pf3-ico{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  color:#fff;
  flex: 0 0 auto;
}

.pf3-ico svg{
  width: 22px; height: 22px;
  fill: rgba(249,250,251,.95);
  display:block;
}

.pf3-ico--wa{
  border-color: rgba(37,211,102,.22);
  background: rgba(37,211,102,.12);
}

.pf3-ico--wa i{
  font-size: 22px;
  line-height: 1;
  display:block;
  color:#fff;
}

.pf3-pill__txt{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.pf3-pill__k{
  color: rgba(249,250,251,.92);
  font-weight: 900;
  font-size: 13.5px;
}

.pf3-pill__v{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf3-pill__go{
  color: rgba(249,250,251,.85);
  font-weight: 900;
  flex: 0 0 auto;
}

.pf3-note{
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(249,250,251,.78);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.85;
}

.pf3-dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 7px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent);
}
@supports not (color: color-mix(in srgb, red 50%, white)){
  .pf3-dot{ box-shadow: 0 0 0 6px rgba(10,118,116,.18); }
}

/* Bottom mini row */
.pf3-bottom{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.06);
}

.pf3-mini{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(249,250,251,.86);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.6;
  min-width:0;
}

.pf3-mini__dot{
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

/* Responsive */
@media (max-width: 1020px){
  .pf3-top{ grid-template-columns: 1fr; }
  .pf3-copy{ text-align:center; }
  .pf3-actions{ justify-content:center; }
  .pf3-desc{ margin-inline:auto; }
  .pf3-bottom{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px){
  .pf3{ padding: 46px 0; }
  .pf3-top{ padding: 18px 14px 14px; }
  .pf3-bottom{ padding: 12px 14px 14px; grid-template-columns: 1fr; }
  .pf3-title{ font-size: 24px; }
  .pf3-btn{ width:100%; min-width:0; }
}

@media (prefers-reduced-motion: reduce){
  .pf3-btn, .pf3-pill{ transition:none !important; }
}

/* RWFS Latest Works - Self-contained CSS */
