/* Baofeng Figma blocks — Rectangle 17 + 5 mini blocks
   Separate stylesheet for IP-preview layout */

:root {
  --bfb-blue: #035dff;
  --bfb-blue-soft: #d1e8ff;
  --bfb-blue-mist: #e8f4ff;
  --bfb-text: #1f2430;
  --bfb-muted: #5b6472;
  --bfb-white: #ffffff;
  --bfb-radius: 18px;
  --bfb-gap: 16px;
  --bfb-max: 1170px;
  --bfb-font: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.bfb-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--bfb-max);
  margin: 0 auto;
  padding: 0;
  font-family: var(--bfb-font);
  color: var(--bfb-text);
}

.bfb-wrap *,
.bfb-wrap *::before,
.bfb-wrap *::after {
  box-sizing: border-box;
}

/* ===== 5 mini blocks in 1 ===== */
.bfb-usps {
  display: flex;
  justify-content: space-between;
}

.bfb-usp {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 180px;
  padding-bottom: 20px;
  margin-top: 3px;
  margin-bottom: 20px;
  box-shadow: 0px 2px 8px 0px rgba(237, 237, 237, 1);
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  border-radius: 10px;
  background: #fff;
}

.bfb-usp:first-child {
  padding-left: 0;
}

.bfb-usp:last-child {
  padding-right: 0;
}

.bfb-usp__icon {
  padding-bottom: 14px;
}

.bfb-usp__icon svg,
.bfb-usp__icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.bfb-usp__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(0, 0, 0, 1);
  font-family: 'Montserrat';
}

/* ===== Rectangle 17 ===== */
.bfb-rect17 {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  min-height: 220px;
  background: var(--bfb-blue-soft);
  border-radius: var(--bfb-radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(3, 93, 255, 0.08);
}

.bfb-rect17__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 28px 36px 48px;
  max-width: 520px;
}

.bfb-rect17__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--bfb-text);
  letter-spacing: -0.02em;
}

.bfb-rect17__subtitle {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--bfb-muted);
}

.bfb-rect17__media {
  position: relative;
  z-index: 1;
  min-height: 220px;
    background:
      linear-gradient(90deg, var(--bfb-blue-soft) 0%, rgba(209, 232, 255, 0.35) 28%, transparent 55%),
      url("/export/figma_banners/img/baofeng-rect17-worker.png") right center / cover no-repeat;
}

.bfb-rect17__media img {
  display: none;
}

.bfb-rect17__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(20, 40, 80, 0.12);
  color: #7a8494;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bfb-rect17__nav--prev { left: 10px; }
.bfb-rect17__nav--next { right: 10px; }

.bfb-rect17__nav:hover {
  color: var(--bfb-blue);
}

.bfb-rect17__nav svg {
  width: 14px;
  height: 14px;
}

.bfb-preview-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #ffe2a8;
  color: #7a5a10;
  font-size: 13px;
  line-height: 1.45;
}

.banner__info{
  font-family: Montserrat;
  background-color: rgba(194, 228, 255, 1);
  padding: 40px;
  border-radius: 10px;
  color: rgba(0, 0, 0, 1);
}
.banner_info__title{
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 22px;
}
.banner_info__text{
  margin-top: 0;
  margin-bottom: 7px;
  font-weight: 400;
  font-size: 16px;
}

/* ===== Mobile only (styles only, markup unchanged) ===== */
@media (max-width: 991px) {
  .bfb-wrap {
    padding: 0;
  }

  .bfb-usps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 0;
  }

  .bfb-usp {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    min-width: 0;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 16px 14px 14px;
    align-items: flex-start;
  }

  .bfb-usp__icon {
    padding-bottom: 14px;
  }

  .bfb-usp__text {
    font-size: 12px;
    line-height: 1.35;
  }

  .banner__info {
    padding: 24px 18px;
    border-radius: 10px;
  }

  .banner_info__title {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .banner_info__text {
    font-size: 14px;
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .bfb-wrap {
    padding: 0;
  }

  .bfb-usp {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
    margin-top: 6px;
    padding: 14px 12px 12px;
  }

  .banner__info {
    background-size: cover;
    background-position: right center;
  }

  .bfb-usp__icon {
    width: 36px;
    height: 36px;
    padding-bottom: 10px;
  }

  .bfb-usp__icon svg,
  .bfb-usp__icon img {
    width: 32px;
    height: 32px;
  }

  .bfb-usp__text {
    font-size: 11px;
  }

  .banner__info {
    padding: 18px 14px;
  }

  .banner_info__title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .banner_info__text {
    font-size: 13px;
  }
}
