/* RWFS Latest Works - Self-contained CSS */
.rwfs-sec, .rwfs-sec *{ box-sizing:border-box; }

/* Full width breakout */
.rwfs-full{
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  overflow-x: clip; /* prevent horizontal scroll without touching body */
}

/* Section (self-contained variables) */
.rwfs-sec{
  --bg: var(--td_body_bg, var(--td_background_color, #0B1220));
  --text:#F9FAFB;
  --muted: var(--td_text_color_secondary, rgba(249,250,251,.72));
  --accent: var(--td_theme_color, var(--td_theme_color_main, #0A7674));
  --stroke: rgba(255,255,255,.10);

  background:
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(900px 420px at 10% 30%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(17,27,46,.35), rgba(11,18,32,1)),
    var(--bg);

  padding: 60px 0 66px;
  overflow: hidden;
}

/* Fallback if color-mix unsupported */
@supports not (color: color-mix(in srgb, red 50%, white)){
  .rwfs-sec{
    background:
      radial-gradient(900px 420px at 85% 10%, rgba(10,118,116,.18), transparent 60%),
      radial-gradient(900px 420px at 10% 30%, rgba(255,255,255,.06), transparent 60%),
      linear-gradient(180deg, rgba(17,27,46,.35), rgba(11,18,32,1)),
      var(--bg);
  }
}

.rwfs-container{
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
}

.rwfs-head{
  text-align:right;
  margin-bottom: 22px;
}
.rwfs-title{
  margin:0 0 8px;
  color:var(--text);
  font-size:40px;
  font-weight:1000;
  line-height:1.15;
  letter-spacing:.2px;
}
.rwfs-sub{
  margin:0;
  color:var(--muted);
  font-size:15px;
  font-weight:700;
  line-height:1.9;
}

.rwfs-slider{ position:relative; }

.rwfs-grid{
  display:grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 22px;
  align-items:center;
}

/* Text */
.rwfs-text{ padding: 10px 0; }

.rwfs-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) 28%, 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)){
  .rwfs-kicker{
    background: rgba(10,118,116,.14);
    border-color: rgba(10,118,116,.28);
  }
}

.rwfs-h{
  margin:0 0 10px;
  color:var(--text);
  font-size:22px;
  font-weight:1000;
  line-height:1.5;
}

.rwfs-p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:14.6px;
  font-weight:700;
  line-height:2;
  max-width: 560px;
}

.rwfs-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom: 16px;
}

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

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

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

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

.rwfs-divider{
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.14), rgba(255,255,255,0));
  margin: 14px 0 12px;
}

.rwfs-mini{
  display:flex;
  gap:10px;
  align-items:center;
  color: rgba(249,250,251,.80);
  font-weight: 700;
  font-size: 13.5px;
}
.rwfs-dot{
  width:10px; height:10px;
  border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent);
  flex:0 0 auto;
}
@supports not (color: color-mix(in srgb, red 50%, white)){
  .rwfs-dot{ box-shadow: 0 0 0 6px rgba(10,118,116,.16); }
}

/* Media */
.rwfs-media{
  position:relative;
  display:flex;
  justify-content:flex-start;
  align-items:center;
}

.rwfs-frame{
  position:relative;
  width: min(720px, 100%);
  border-radius: 28px;
  overflow:hidden;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  box-shadow: 0 26px 80px rgba(0,0,0,.48);
  text-decoration:none;
  display:block;
  transform: translateZ(0);
  cursor:pointer;
}

.rwfs-frame img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}

.rwfs-frame:hover img{ transform: scale(1.02); }

.rwfs-overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 320px at 70% 20%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.32));
  opacity: 1;
}

.rwfs-chip{
  position:absolute;
  top:14px;
  right:14px;
  padding: 9px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, rgba(11,18,32,.70));
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(249,250,251,.92);
  font-weight: 900;
  font-size: 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (color: color-mix(in srgb, red 50%, white)){
  .rwfs-chip{ background: rgba(11,18,32,.70); }
}

/* Nav buttons */
.rwfs-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,18,32,.55);
  color: rgba(249,250,251,.96);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  z-index: 2;
}
.rwfs-nav span{ font-size: 26px; line-height: 1; font-weight: 900; }

.rwfs-prev{ right: 18px; }
.rwfs-next{ left: 18px; }

.rwfs-nav:hover{
  transform: translateY(-50%) scale(1.03);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: rgba(11,18,32,.70);
}
@supports not (color: color-mix(in srgb, red 50%, white)){
  .rwfs-nav:hover{ border-color: rgba(10,118,116,.35); }
}

/* Dots */
.rwfs-dots{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top: 16px;
}
.rwfs-dotBtn{
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.25);
  cursor:pointer;
  padding:0;
  transition: transform .16s ease, background .16s ease, width .16s ease;
}
.rwfs-dotBtn.is-active{
  width: 28px;
  background: var(--accent);
}
.rwfs-dotBtn:hover{ transform: scale(1.08); }

/* Responsive */
@media (max-width: 1024px){
  .rwfs-head{ text-align:center; }
  .rwfs-grid{ grid-template-columns: 1fr; gap: 16px; }
  .rwfs-text{ text-align:center; }
  .rwfs-p{ margin-left:auto; margin-right:auto; }
  .rwfs-actions{ justify-content:center; }
  .rwfs-media{ justify-content:center; }
  .rwfs-prev{ right: 10px; }
  .rwfs-next{ left: 10px; }
}

@media (max-width: 560px){
  .rwfs-title{ font-size:30px; }
  .rwfs-h{ font-size:18px; }
  .rwfs-btn{ width:100%; min-width:0; }
  .rwfs-nav{ width: 40px; height: 40px; border-radius: 12px; }
  .rwfs-nav span{ font-size: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rwfs-frame img, .rwfs-btn, .rwfs-nav, .rwfs-dotBtn{ transition: none !important; }
}
