/* =========================================================
   BoostroGO — Home News & Events Feed
========================================================= */

.bghf {
  --bghf-navy: #1C244B;
  --bghf-red: #FB0444;
  --bghf-ice: #EAF7FB;
  --bghf-muted: #6D7690;
  --bghf-line: rgba(28, 36, 75, .10);
  --bghf-visible: 3;
  --bghf-gap: 14px;

  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: min(1180px, calc(100% - 28px));
  min-height: 154px;
  margin: 22px auto 34px;
  overflow: hidden;
  border: 1px solid var(--bghf-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0 0, rgba(234, 247, 251, .92), transparent 42%),
    linear-gradient(135deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 18px 44px rgba(28, 36, 75, .08);
  color: var(--bghf-navy);
  box-sizing: border-box;
}

.bghf *,
.bghf *::before,
.bghf *::after {
  box-sizing: border-box;
}

.bghf-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 20px 22px;
  border-right: 1px solid var(--bghf-line);
  background:
    radial-gradient(circle at 10% 10%, rgba(251, 4, 68, .09), transparent 34%),
    linear-gradient(145deg, rgba(234, 247, 251, .78), rgba(255, 255, 255, .95));
}

.bghf-brand::after {
  content: "GO";
  position: absolute;
  right: -8px;
  bottom: -22px;
  color: rgba(28, 36, 75, .035);
  font-size: 88px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.08em;
  pointer-events: none;
}

.bghf-brand-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.bghf-live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--bghf-red);
  box-shadow: 0 0 0 6px rgba(251, 4, 68, .09);
  animation: bghfPulse 1.9s ease-in-out infinite;
}

.bghf-kicker {
  color: var(--bghf-red);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.bghf-brand h2 {
  margin: 0;
  color: var(--bghf-navy);
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.045em;
}

.bghf-brand p {
  margin: 8px 0 0;
  color: var(--bghf-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.bghf-all-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 10px;
  color: var(--bghf-navy) !important;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none !important;
}

.bghf-all-link:hover {
  color: var(--bghf-red) !important;
}

.bghf-stage {
  position: relative;
  min-width: 0;
  padding: 16px 48px 30px;
}

.bghf-viewport {
  min-width: 0;
  overflow: hidden;
  outline: none;
}

.bghf-viewport:focus-visible {
  border-radius: 18px;
  outline: 2px solid rgba(251, 4, 68, .32);
  outline-offset: 3px;
}

.bghf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--bghf-gap) * (var(--bghf-visible) - 1))) / var(--bghf-visible));
  gap: var(--bghf-gap);
  min-width: 0;
  transition: transform .46s cubic-bezier(.22, .74, .25, 1);
  will-change: transform;
}

.bghf-card {
  min-width: 0;
}

.bghf-card-link {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  min-height: 106px;
  padding: 11px;
  overflow: hidden;
  border: 1px solid rgba(28, 36, 75, .09);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  color: var(--bghf-navy) !important;
  text-decoration: none !important;
  box-shadow: 0 9px 22px rgba(28, 36, 75, .055);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bghf-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 4, 68, .20);
  box-shadow: 0 14px 28px rgba(28, 36, 75, .09);
}

.bghf-media {
  position: relative;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(251, 4, 68, .14), transparent 38%),
    var(--bghf-ice);
  border: 1px solid rgba(28, 36, 75, .08);
}

.bghf-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bghf-media-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--bghf-navy);
}

.bghf-media-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bghf-card-copy {
  min-width: 0;
}

.bghf-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-bottom: 6px;
}

.bghf-label {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(251, 4, 68, .08);
  color: var(--bghf-red);
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bghf-card-event .bghf-label {
  background: rgba(28, 36, 75, .08);
  color: var(--bghf-navy);
}

.bghf-date {
  min-width: 0;
  overflow: hidden;
  color: var(--bghf-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bghf-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--bghf-navy);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.018em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bghf-location {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: var(--bghf-muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bghf-location svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bghf-card-arrow {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 999px;
  background: var(--bghf-navy);
  color: #fff;
  transition: background-color .2s ease, transform .2s ease;
}

.bghf-card-link:hover .bghf-card-arrow {
  background: var(--bghf-red);
  transform: translateX(2px);
}

.bghf-card-arrow svg,
.bghf-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bghf-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: -26px;
  padding: 0;
  border: 1px solid rgba(28, 36, 75, .10);
  border-radius: 999px;
  background: #fff;
  color: var(--bghf-navy);
  box-shadow: 0 8px 18px rgba(28, 36, 75, .08);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.bghf-arrow:hover {
  background: var(--bghf-red);
  color: #fff;
}

.bghf-arrow:focus-visible {
  outline: 2px solid rgba(251, 4, 68, .42);
  outline-offset: 2px;
}

.bghf-arrow:disabled {
  opacity: .28;
  cursor: default;
}

.bghf-arrow-prev {
  left: 8px;
}

.bghf-arrow-next {
  right: 8px;
}

.bghf-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: translateX(-50%);
}

.bghf-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 36, 75, .20);
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}

.bghf-dot.is-active {
  width: 18px;
  background: var(--bghf-red);
}

.bghf-empty {
  width: min(1180px, calc(100% - 28px));
  margin: 22px auto;
  padding: 16px 18px;
  border: 1px solid rgba(28, 36, 75, .10);
  border-radius: 18px;
  background: #fff;
  color: #1C244B;
  font-weight: 800;
}

@keyframes bghfPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(251, 4, 68, .08); }
  50% { box-shadow: 0 0 0 8px rgba(251, 4, 68, .02); }
}

@media (max-width: 1100px) {
  .bghf {
    --bghf-visible: 2;
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .bghf-brand {
    padding: 18px;
  }

  .bghf-stage {
    padding-left: 46px;
    padding-right: 46px;
  }
}

@media (max-width: 760px) {
  .bghf {
    --bghf-visible: 1;
    grid-template-columns: 1fr;
    width: min(100%, calc(100% - 20px));
    margin-top: 16px;
    margin-bottom: 24px;
    border-radius: 22px;
  }

  .bghf-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 14px;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--bghf-line);
  }

  .bghf-brand-top,
  .bghf-brand h2,
  .bghf-brand p {
    grid-column: 1;
  }

  .bghf-brand-top {
    margin-bottom: 2px;
  }

  .bghf-brand h2 {
    font-size: 22px;
  }

  .bghf-brand p {
    margin-top: 4px;
  }

  .bghf-all-link {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    margin: 0;
    font-size: 0;
  }

  .bghf-all-link span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--bghf-navy);
    color: #fff;
    font-size: 17px;
  }

  .bghf-stage {
    padding: 14px 44px 30px;
  }

  .bghf-card-link {
    min-height: 102px;
  }
}

@media (max-width: 430px) {
  .bghf-stage {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bghf-arrow {
    top: auto;
    bottom: 7px;
    width: 30px;
    height: 30px;
    margin-top: 0;
  }

  .bghf-arrow-prev {
    left: 12px;
  }

  .bghf-arrow-next {
    right: 12px;
  }

  .bghf-card-link {
    grid-template-columns: 62px minmax(0, 1fr) 26px;
    gap: 10px;
    padding: 10px;
  }

  .bghf-media {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .bghf-card-arrow {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bghf-track,
  .bghf-card-link,
  .bghf-card-arrow,
  .bghf-dot,
  .bghf-live-dot {
    animation: none !important;
    transition: none !important;
  }
}
