/**
 * Why BongoHive Widget Styles
 * @package BongoHive
 */

.bh-why {
  display: flex;
  flex-direction: row; /* media + content side by side */
  align-items: stretch;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
}

/* Image panel */
.bh-why__media {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  overflow: hidden;
}
.bh-why__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content panel */
.bh-why__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px;
  background-color: #ffffff;
  box-sizing: border-box;
}

/* Flip: image right */
.bh-why--image-right .bh-why__media {
  order: 2;
}
.bh-why--image-right .bh-why__content {
  order: 1;
}

/* Full-width mode — no image panel */
.bh-why--no-image {
  flex-direction: column;
  min-height: 0;
}

.bh-why--no-image .bh-why__content {
  flex: 1 1 auto;
  gap: 60px;
}

/* Eyebrow label */
.bh-why__eyebrow {
  color: #606469;
  font-family: 'Ubuntu', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
}

.bh-why__heading {
  font-family: 'Ubuntu', 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #1d2229;
  margin: 0;
}

.bh-why__subheading {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #606469;
  margin: -20px 0 0; /* tighten gap from heading */
}

.bh-why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bh-why__point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid transparent; /* prevent layout shift on hover */
  border-left: 3px solid transparent;
  padding-left: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bh-why--dividers .bh-why__point + .bh-why__point {
  border-top-color: #e0e0e0;
}

.bh-why__point:hover {
  background-color: #f5f0e8;
  border-left-color: #f0af24;
}

.bh-why__number {
  color: #f0af24;
  flex-shrink: 0;
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(20px, 1.5vw + 12px, 28px);
  font-weight: 700;
  line-height: 1.4;
  min-width: 40px;
}

.bh-why__point-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.bh-why__point-title {
  color: #1d2229;
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(17px, 1vw + 12px, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0;
}

.bh-why__point-body {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #606469;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .bh-why__content { padding: 64px 48px; gap: 32px; }
  .bh-why--no-image .bh-why__content { gap: 40px; }
}

@media (max-width: 768px) {
  .bh-why { flex-direction: column; min-height: auto; }
  .bh-why--image-right .bh-why__media,
  .bh-why--image-right .bh-why__content { order: unset; }
  .bh-why__media { flex: none; width: 100%; max-width: none; height: 320px; }
  .bh-why__content { padding: 48px 24px; gap: 28px; }
  .bh-why--no-image .bh-why__content { gap: 28px; }
}

@media (max-width: 480px) {
  .bh-why__media { height: 240px; }
  .bh-why__content { padding: 36px 20px; gap: 24px; }
  .bh-why__heading { font-size: 1.5rem; }
  .bh-why--no-image .bh-why__content { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .bh-why__point { transition: none; }
  .bh-why__point:hover { transform: none; }
}
