.kokil-banner-transfer,
.kokil-banner-transfer * { box-sizing: border-box; }

.kokil-banner-transfer button,
.kokil-banner-transfer input { font: inherit; }

.kokil-banner-transfer {
  width: 100%;
  padding: 32px 0 28px;
  background: linear-gradient(180deg, #edf2f5 0%, #e8eef1 100%);
  color: #f7f9fa;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.khb-work-area {
  width: min(1550px, calc(100% - 72px));
  margin: 0 auto;
}

.khb-editor-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid rgba(16, 49, 68, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  color: #16242d;
}

body.admin-mode .khb-editor-bar { display: flex; }

.khb-eyebrow {
  color: #e86227;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.khb-mode-button,
.khb-upload-button,
.khb-reset-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.khb-mode-button {
  color: #fff;
  background: #1c2b34;
  white-space: nowrap;
}

.khb-mode-button:hover,
.khb-upload-button:hover,
.khb-reset-button:hover { transform: translateY(-1px); }

.khb-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 710px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(42px, 4.8vw, 72px) clamp(24px, 4.2vw, 64px) 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: #26343b url("assets/kokil-helicopter-banner/helicopter-banner-clean.webp") center 38% / cover no-repeat;
  box-shadow: 0 24px 64px rgba(16, 35, 47, .18);
}

.khb-banner::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(180deg, rgba(29, 40, 46, .82) 0%, rgba(29, 40, 46, .52) 42%, rgba(29, 40, 46, .91) 72%, rgba(29, 40, 46, .98) 100%),
    linear-gradient(90deg, rgba(20, 31, 37, .42), transparent 30%, transparent 70%, rgba(20, 31, 37, .42));
}

.khb-banner::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 18%, rgba(7, 16, 22, .18) 56%, rgba(7, 16, 22, .42) 100%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
}

.khb-heading {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.khb-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
  color: #ff742e;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.khb-kicker::before,
.khb-kicker::after {
  width: 44px;
  height: 2px;
  content: "";
  background: #ff742e;
}

.khb-heading h2 {
  margin: 0;
  color: #fff;
  font-family: "Kokil Montserrat", Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 5.45vw, 82px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  -webkit-text-fill-color: #fff;
  -webkit-text-stroke: 1px rgba(0, 0, 0, .82);
  paint-order: stroke fill;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .32);
}

.khb-heading h2 span,
.khb-heading h2 em {
  display: block;
}

.khb-heading h2 em {
  color: #f4f6f7;
  background: none;
  font: inherit;
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: .018em;
  -webkit-text-fill-color: #f4f6f7;
  -webkit-text-stroke: 1.6px #30383d;
  paint-order: stroke fill;
  text-rendering: geometricPrecision;
}

.khb-photo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin-top: auto;
  padding-top: clamp(92px, 7vw, 112px);
}


.khb-photo-frame {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  height: 370px;
  overflow: hidden;
  padding: 0 0 50px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, rgba(176, 184, 188, .34), rgba(66, 78, 85, .72));
  box-shadow: 0 15px 30px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .06);
  cursor: default;
  touch-action: none;
  isolation: isolate;
}

.khb-banner[data-editing="true"] .khb-photo-frame { cursor: grab; }
.khb-banner[data-editing="true"] .khb-photo-frame:active { cursor: grabbing; }

.khb-photo-frame img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform-origin: center;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 14px 15px rgba(0, 0, 0, .45));
}

.khb-auto-halo {
  position: absolute;
  z-index: 1;
  inset: 0 0 50px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(226, 230, 232, .78), rgba(140, 149, 154, .46) 45%, rgba(44, 56, 63, .74) 100%);
}

.khb-stage-label {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  display: flex;
  min-height: 50px;
  align-items: center;
  padding: 0 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  background: rgba(22, 34, 41, .94);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
}

.khb-stage-label::before {
  width: 8px;
  height: 8px;
  margin-right: 11px;
  border: 2px solid #ff742e;
  border-radius: 50%;
  content: "";
  background: #26343b;
  box-shadow: 0 0 0 4px rgba(255, 116, 46, .14);
}

.khb-photo-frame::after {
  position: absolute;
  inset: 0 0 50px;
  z-index: 3;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 56%, rgba(17, 28, 34, .36));
  box-shadow: inset 0 0 24px rgba(16, 25, 30, .28);
}

.khb-photo-frame.khb-is-selected {
  border-color: #ff742e;
  outline: 3px solid rgba(255, 116, 46, .62);
  outline-offset: 2px;
}

.khb-responsibility {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 0;
  color: #eef3f5;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.khb-responsibility::before {
  width: 34px;
  height: 2px;
  flex: none;
  content: "";
  background: #ff742e;
}

.khb-photo-controls {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 0 0 14px 14px;
  color: #16242d;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 27, 30, .12);
}

.khb-selected-label { font-weight: 800; white-space: nowrap; }
.khb-upload-button { color: #fff; background: #e86227; }
.khb-reset-button { color: #26323a; background: #e8edef; }
.khb-zoom-control { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.khb-zoom-control input { width: clamp(90px, 16vw, 220px); accent-color: #e86227; }
.khb-drag-tip { margin-left: auto; color: #667681; font-size: 13px; }
.khb-visually-hidden { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }
.khb-is-hidden { display: none; }

@media (max-width: 1050px) {
  .khb-banner { min-height: 800px; }
  .khb-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 130px;
  }
  .khb-photo-frame { height: 220px; }
}

@media (max-width: 760px) {
  .kokil-banner-transfer { padding: 20px 0 24px; }
  .khb-work-area { width: calc(100% - 24px); }
  .khb-editor-bar { align-items: flex-start; }
  .khb-mode-button { padding: 9px 13px; font-size: 12px; }
  .khb-banner {
    min-height: 0;
    padding: 34px 16px 26px;
    border-radius: 14px;
    background-position: 54% 20%;
  }
  .khb-kicker { letter-spacing: .1em; }
  .khb-kicker::before,
  .khb-kicker::after { width: 20px; }
  .khb-photo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 220px;
    padding-top: 0;
  }
  .khb-photo-frame { height: 230px; }
  .khb-responsibility { align-items: flex-start; text-align: left; }
  .khb-photo-controls { flex-wrap: wrap; gap: 9px; }
  .khb-drag-tip { display: none; }
  .khb-zoom-control { order: 4; width: 100%; }
  .khb-zoom-control input { flex: 1; }
}
