.edf {
  /* Default; bisa di-override dari panel Style widget. */
  --edf-icon: #e98ad6;
  --edf-dark: #2b2b2b;
  --edf-font-tag: "Anton", "Bebas Neue", Impact, sans-serif;

  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.edf *, .edf *::before, .edf *::after { box-sizing: border-box; }

.edf__inner {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 26%) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

/* ---------- Kiri: tag + garis progress ---------- */
.edf-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}
.edf-labels { display: grid; }
.edf-label {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
}
.edf-tag {
  display: block;
  font-family: var(--edf-font-tag);
  font-size: clamp(28px, 3.6vw, 58px);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.42em 0.8em 0.36em;
}
.edf-tag--1 {
  position: relative;
  z-index: 1;
  background: var(--c1);
  color: #fff;
  transform: rotate(5deg);
  transform-origin: left bottom;
}
.edf-tag--2 {
  background: var(--c2);
  color: #222;
}

.edf-lines {
  align-self: flex-end !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin-right: clamp(0px, 2.5vw, 36px) !important;
}
.edf-line {
  appearance: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  width: clamp(48px, 5.5vw, 80px) !important;
  height: 17px !important;
  padding: 6px 0 !important;
  background-color: rgba(255, 255, 255, 0.45) !important;
  background-clip: content-box !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
  box-shadow: none !important;
}
.edf-line:hover { background-color: rgba(255, 255, 255, 0.75) !important; }
.edf-line.is-active { background-color: #fff !important; }
.edf-line:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px !important; }

/* ---------- Kanan: card ---------- */
.edf-card {
  justify-self: end;
  width: min(100%, calc((100vh - 140px) * var(--edf-ratio, 1.6)));
  padding: clamp(10px, 1.4vw, 24px);
  background: rgba(255, 255, 255, 0.22);
}
.edf-frame {
  position: relative;
  aspect-ratio: var(--edf-ratio, 1.6);
  overflow: hidden;
  background: #111;
}
.edf-media-stack { position: absolute; inset: 0; }
.edf-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.edf-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edf-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent 50%,
    rgba(43, 43, 43, 0.75) 68%,
    var(--edf-dark) 78%);
}

.edf-content-stack {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
}
.edf-content {
  grid-area: 1 / 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: clamp(18px, 3vw, 48px);
}
.edf-content-left { max-width: 480px; min-width: 0; }
.edf-logo {
  display: block;
  max-width: clamp(120px, 14vw, 190px);
  height: auto;
  margin-bottom: 12px;
}
.edf-logo-text {
  max-width: none;
  font-family: var(--edf-font-tag);
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 0.95;
  text-transform: uppercase;
  color: #4fd1c5;
}
.edf-desc {
  margin: 0;
  color: #fff;
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.35;
}
.edf-features {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: clamp(14px, 2vw, 28px) clamp(20px, 3vw, 44px);
}
.edf-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(12px, 1.2vw, 18px);
  line-height: 1.2;
  text-align: center;
}
.edf-feature svg,
.edf-feature img {
  width: clamp(36px, 3.6vw, 60px);
  height: clamp(36px, 3.6vw, 60px);
  color: var(--edf-icon);
  object-fit: contain;
}

/* ---------- State dasar (dipakai mode fallback tanpa GSAP) ---------- */
.edf-media,
.edf-content,
.edf-label {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.edf-media.is-active,
.edf-content.is-active,
.edf-label.is-active {
  opacity: 1;
  visibility: visible;
}
.edf--gsap .edf-media,
.edf--gsap .edf-content,
.edf--gsap .edf-label { transition: none; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .edf__inner { grid-template-columns: 1fr; gap: 20px; }
  .edf-left { flex-direction: row; align-items: flex-end; }
  .edf-tag { font-size: clamp(22px, 8vw, 34px); }
  .edf-lines { margin-right: 0; }
  .edf-line { width: 36px; }
  .edf-card { width: 100%; }
  .edf-frame { aspect-ratio: 4 / 5; }
  .edf-shade {
    background: linear-gradient(to bottom,
      transparent 25%,
      rgba(43, 43, 43, 0.8) 45%,
      var(--edf-dark) 55%);
  }
  .edf-content { flex-direction: column; align-items: stretch; gap: 20px; }
  .edf-features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .edf-feature { font-size: 11px; }
}
