/* DWC Core 2.0: portal, before/after cards, Latest jobs block. Loaded only on pages that use them. */
.dwc-portal, .dwc-latest, .dwc-projects, .dwc-ba-item, .dwc-gal-status {
  --dwcc-navy: #0C1727; --dwcc-navy-2: #223754; --dwcc-cyan: #15B3F7; --dwcc-yellow: #FFD745; --dwcc-ochre: #846C04;
  --dwcc-ice: #E8F6FF; --dwcc-steel: #E3EAF4; --dwcc-mist: #B0C4E0; --dwcc-muted: #595F61;
  --dwcc-shadow: 0 10px 30px rgba(12, 23, 39, .08); --dwcc-shadow-lg: 0 24px 60px rgba(8, 17, 32, .28);
}

/* ---------- Latest jobs block ---------- */
.dwc-latest { display: grid; gap: 28px; width: 100%; }
.dwc-latest-head { display: grid; gap: 10px; justify-items: center; text-align: center; }
.dwc-latest-eyebrow { margin: 0; font: 700 13px/1.2 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #086A94; }
.dwc-latest-title { margin: 0; font: 800 clamp(28px, 3.4vw, 40px)/1.15 "Plus Jakarta Sans", sans-serif; color: var(--dwcc-navy); }
.dwc-latest-title em { font-style: normal; color: #086A94; }

.dwc-gal-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 14px/1.4 Inter, sans-serif; color: var(--dwcc-muted); }
.dwc-gal-status .dwc-dot { width: 9px; height: 9px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 4px rgba(43, 182, 115, .18); }

/* ---------- Card grids ---------- */
.dwc-latest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 380px)); justify-content: center; gap: 24px; }
@media (max-width: 767px) { .dwc-latest-grid { grid-template-columns: 1fr; } }
.dwc-projects { display: grid; grid-template-columns: repeat(var(--dwc-cols, 3), minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .dwc-projects { grid-template-columns: repeat(min(var(--dwc-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 767px) { .dwc-projects { grid-template-columns: 1fr; } }
.dwc-projects-empty { margin: 0; color: var(--dwcc-muted); font-size: 15px; }

/* ---------- Before/after card ---------- */
.dwc-baw { --pos: 50%; position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 16px; overflow: hidden; border: 6px solid #FFFFFF; box-shadow: var(--dwcc-shadow); background: var(--dwcc-ice); user-select: none; touch-action: pan-y; }
.dwc-baw img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.dwc-baw .dwc-ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.dwc-baw .dwc-ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--dwcc-yellow); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, .35); }
.dwc-baw .dwc-ba-handle { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--dwcc-yellow); color: var(--dwcc-navy); display: grid; place-items: center; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 -3px 0 var(--dwcc-ochre); font-weight: 800; }
.dwc-baw input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.dwc-baw input[type=range]:focus-visible ~ .dwc-ba-handle { outline: 3px solid var(--dwcc-cyan); outline-offset: 4px; }
.dwc-baw .dwc-ba-tag { position: absolute; top: 12px; font: 800 11px/1 Inter, sans-serif; letter-spacing: .12em; padding: 7px 10px; border-radius: 99px; pointer-events: none; }
.dwc-baw .dwc-ba-tag.l { left: 12px; background: rgba(12, 23, 39, .82); color: #fff; }
.dwc-baw .dwc-ba-tag.r { right: 12px; background: var(--dwcc-cyan); color: var(--dwcc-navy); }
.dwc-ba-meta { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; font: 400 14px/1.4 Inter, sans-serif; color: var(--dwcc-muted); }
.dwc-ba-meta b { font: 800 15px/1.3 "Plus Jakarta Sans", sans-serif; color: var(--dwcc-navy); }
.dwc-ba-new { background: var(--dwcc-yellow); color: var(--dwcc-navy); font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 99px; margin-left: 6px; }
.dwc-projects.is-dark .dwc-ba-meta { color: var(--dwcc-mist); }
.dwc-projects.is-dark .dwc-ba-meta b { color: #fff; }

/* ---------- Job Portal ---------- */
.dwc-portal { max-width: 620px; margin: 0 auto; display: grid; gap: 20px; }
.dwc-portal .dwc-pcard { background: #fff; border-radius: 22px; box-shadow: var(--dwcc-shadow-lg); padding: clamp(20px, 4vw, 32px); display: grid; gap: 20px; }
.dwc-portal .dwc-pbtn { display: inline-block; background: var(--dwcc-yellow); color: var(--dwcc-navy) !important; font-weight: 800; padding: 14px 26px; border-radius: 10px; box-shadow: inset 0 -3px 0 var(--dwcc-ochre); text-decoration: none; }
.dwc-portal .dwc-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dwc-portal .dwc-shot { position: relative; aspect-ratio: 3 / 4; border: 2px dashed var(--dwcc-mist); border-radius: 16px; background: var(--dwcc-ice); display: grid; place-items: center; text-align: center; overflow: hidden; cursor: pointer; font-weight: 800; color: var(--dwcc-navy); }
.dwc-portal .dwc-shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.dwc-portal .dwc-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dwc-portal .dwc-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.dwc-portal .dwc-chips label { position: relative; }
.dwc-portal .dwc-chips input { position: absolute; opacity: 0; }
.dwc-portal .dwc-chips span { display: inline-block; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--dwcc-mist); font-weight: 700; font-size: 14px; cursor: pointer; }
.dwc-portal .dwc-chips input:checked + span { background: var(--dwcc-navy); border-color: var(--dwcc-navy); color: #fff; }
.dwc-portal .dwc-chips input:focus-visible + span { outline: 3px solid var(--dwcc-cyan); outline-offset: 2px; }
.dwc-portal input[type=text], .dwc-portal input[type=date] { width: 100%; height: 52px; border-radius: 10px; border: 1px solid var(--dwcc-mist); padding: 0 14px; font-size: 16px; }
.dwc-portal button[type=submit] { width: 100%; height: 60px; border: 0; border-radius: 10px; background: var(--dwcc-yellow); color: var(--dwcc-navy); font-weight: 800; font-size: 17px; box-shadow: inset 0 -3px 0 var(--dwcc-ochre); cursor: pointer; }
.dwc-portal .dwc-notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.dwc-portal .dwc-notice.ok { background: #E5F4E4; color: #11744A; }
.dwc-portal .dwc-notice.err { background: #FBEBEB; color: #B42318; }
.dwc-portal .dwc-row { display: grid; grid-template-columns: 56px 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--dwcc-steel); border-radius: 14px; }
.dwc-portal .dwc-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.dwc-portal .dwc-row button { border: 1px solid var(--dwcc-mist); background: #fff; color: #B42318; font-weight: 700; border-radius: 9px; padding: 9px 11px; cursor: pointer; }

/* Elementor slot (Div Block with CSS ID dwc-latest-jobs) */
#dwc-latest-jobs[data-dwc-slot="filled"] { margin-bottom: 56px; }
