
/* =========================================================
   BZ ACADEMY — COURSE TRAINING GALLERY
========================================================= */

.bz-course-gallery,
.bz-course-gallery * {
  box-sizing: border-box;
}

.bz-course-gallery {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 92px 24px 98px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(215, 25, 32, 0.14), transparent 34%),
    linear-gradient(135deg, #070707 0%, #101010 48%, #050505 100%);
  border-top: 1px solid rgba(215, 25, 32, 0.35);
  border-bottom: 1px solid rgba(215, 25, 32, 0.35);
}

.bz-course-gallery__bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.38) 0,
      rgba(255, 255, 255, 0.38) 1px,
      transparent 1px,
      transparent 14px
    );
}

.bz-course-gallery__wrap {
  position: relative;
  z-index: 2;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.78fr 1.42fr;
  gap: 54px;
  align-items: center;
}

.bz-course-gallery__content {
  max-width: 430px;
}

.bz-section-kicker {
  margin: 0 0 14px;
  color: #e21b22;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bz-course-gallery__title {
  margin: 0;
  color: #ffffff;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(52px, 5vw, 78px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.bz-course-gallery__redline {
  width: 92px;
  height: 5px;
  margin: 26px 0 26px;
  background: #e21b22;
}

.bz-course-gallery__lead {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 700;
}

.bz-course-gallery__text {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

.bz-course-gallery__button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 28px;
  color: #ffffff !important;
  background: #e21b22;
  border: 2px solid #e21b22;
  text-decoration: none !important;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.bz-course-gallery__button:hover {
  color: #ffffff !important;
  background: #ff252d;
  border-color: #ff252d;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(226, 27, 34, 0.25);
}

.bz-course-gallery__button-arrow {
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.bz-course-gallery__grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr 0.82fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
}

.bz-course-gallery__item {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.bz-course-gallery__item--main {
  grid-row: span 2;
}

.bz-course-gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.12) 42%,
      rgba(0, 0, 0, 0.42) 100%
    );
}

.bz-course-gallery__item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 64px;
  height: 4px;
  background: #e21b22;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s ease;
}

.bz-course-gallery__item:hover::after {
  transform: scaleX(1);
}

.bz-course-gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter:
    saturate(0.86)
    contrast(1.08)
    brightness(0.82);
  transition:
    transform 0.55s ease,
    filter 0.28s ease;
}

.bz-course-gallery__item:hover img {
  transform: scale(1.055);
  filter:
    saturate(0.98)
    contrast(1.1)
    brightness(0.92);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .bz-course-gallery {
    padding: 76px 22px 82px;
  }

  .bz-course-gallery__wrap {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .bz-course-gallery__content {
    max-width: 760px;
  }

  .bz-course-gallery__grid {
    grid-template-rows: 220px 220px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .bz-course-gallery {
    padding: 58px 16px 64px;
  }

  .bz-course-gallery__wrap {
    gap: 30px;
  }

  .bz-section-kicker {
    font-size: 15px;
    line-height: 1.2;
  }

  .bz-course-gallery__title {
    font-size: 48px;
    line-height: 0.96;
  }

  .bz-course-gallery__redline {
    width: 76px;
    height: 5px;
    margin: 22px 0 22px;
  }

  .bz-course-gallery__lead {
    font-size: 22px;
    line-height: 1.28;
  }

  .bz-course-gallery__text {
    font-size: 15px;
    line-height: 1.62;
    margin-bottom: 24px;
  }

  .bz-course-gallery__button {
    width: 100%;
    min-height: 58px;
  }

  .bz-course-gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }

  .bz-course-gallery__item,
  .bz-course-gallery__item--main {
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
  .bz-course-gallery {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bz-course-gallery__title {
    font-size: 42px;
  }

  .bz-course-gallery__item,
  .bz-course-gallery__item--main {
    aspect-ratio: 4 / 3;
  }
}
