/* ── Секція — Наші Новини ── */

.our-news {
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 20px 20px;
  box-sizing: border-box;
}

.our-news__body {
  width: 100%;
  overflow: hidden;
}

.our-news__inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 100%;
}

.our-news__card {
  width: min(1100px, 100%);
  max-width: 1100px;
  padding: 0 0 60px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.our-news__title {
  font-family: "u3", sans-serif;
  font-weight: 600;
  font-size: 38px;
  color: #ffe7ba;
  text-transform: uppercase;
  text-align: center;
  line-height: normal;
  width: 100%;
  margin-bottom: 36px;
}

.our-news__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

/* Featured full-width card (direct child of the grid) */
.our-news__grid > .news-card {
  flex-direction: column;
  width: 100%;
  height: auto;
}

.our-news__grid > .news-card .news-card__image {
  width: 100%;
  height: auto;
  display: block;
}

.our-news__grid > .news-card .news-card__content {
  width: 100%;
}

/* Row of remaining cards — 3 columns on desktop */
.our-news__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.our-news__row .news-card {
  width: 100%;
  height: auto;
}

.our-news__row .news-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
}

.our-news__row .news-card__content {
  width: 100%;
}

/* Text link to the full news page (down on the left) */
.our-news__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 18px;
  background: transparent;
  color: #ffa600;
  text-decoration: none;
  font-family: "u3", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 0;
  padding: 0;
  min-height: auto;
  box-shadow: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.our-news__more:hover {
  background: transparent;
  color: #ffa600;
  border: none;
  transform: translateX(4px);
}

.our-news__loading {
  text-align: center;
  color: #888;
  padding: 40px;
  width: 100%;
}

.our-news__empty {
  text-align: center;
  color: #888;
  padding: 40px;
  width: 100%;
  display: none;
}

/* Scoped transparent card background for .our-news section */
.our-news .news-card,
.our-news .news-card:hover {
  background: transparent;
}

/* Override margin-top: auto on .news-card__meta so meta stays directly below content without forced gap */
.our-news .news-card__meta {
  margin-top: 0;
  padding-top: 12px;
}

/* Mobile & Tablet: fluid pull matching the hero under-box overhang (was: reset to 0) */
@media (max-width: 1279px) {
  .our-news {
    margin-top: calc(-1 * 0px);
  }

  .our-news__row {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 20px;
    width: 100%;
  }

  .our-news__row .news-card {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    width: 100%;
  }

  .our-news__row .news-card__image-wrap {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
  }

  .our-news__row .news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  .our-news__row .news-card__content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    box-sizing: border-box;
  }

  .our-news__row .news-card__title {
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 8px;
  }

  .our-news__row .news-card__description {
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 12px;
    color: #aaa;
  }
}

@media (max-width: 767px) {
  .our-news__row {
    gap: 16px;
  }

  .our-news__row .news-card__image-wrap {
    height: 180px;
  }

  .our-news__row .news-card__content {
    padding: 14px 16px;
  }

  .our-news__row .news-card__title {
    font-size: 16px;
    line-height: 1.3;
  }

  .our-news__row .news-card__description {
    font-size: 13px;
    line-height: 1.4;
  }
}

/* ══════════════════════════════════════════════════════════
   2-COLUMN NEWS LAYOUT (PROTOTYPE FROM INDEX4-1 POLISHED)
   ══════════════════════════════════════════════════════════ */

.our-news__layout {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(170px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

/* Main News Card (Left) */
.our-news__main {
  background: rgba(21, 40, 48, 0.72);
  border: 1px solid rgba(255, 231, 186, 0.22);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.our-news__main:hover {
  background: rgba(21, 40, 48, 0.92);
  border-color: rgba(255, 166, 0, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.our-news__main-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.our-news__main-img {
  width: 100%;
  height: auto;
  display: block;
  transition:
    transform 0.4s ease,
    filter 0.2s ease;
}

.our-news__main:hover .our-news__main-img {
  transform: scale(1.02);
  filter: brightness(1.04);
}

.our-news__main-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.our-news__main-title {
  font-family: "u3", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffe7ba;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 0 12px;
  transition: color 0.2s ease;
}

.our-news__main:hover .our-news__main-title {
  color: #ffa600;
}

.our-news__main-desc {
  font-family: "u3", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 231, 186, 0.75);
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.our-news__main-date {
  font-family: "u3", sans-serif;
  font-size: 13px;
  color: #888;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 231, 186, 0.1);
  display: block;
}

/* Secondary News Cards (Right) */
.our-news__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.our-news__side-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: rgba(21, 40, 48, 0.72);
  border: 1px solid rgba(255, 231, 186, 0.22);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.our-news__side-card:hover {
  background: rgba(21, 40, 48, 0.92);
  border-color: rgba(255, 166, 0, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.our-news__side-title {
  font-family: "u3", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffe7ba;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 10px;
  transition: color 0.2s ease;
}

.our-news__side-card:hover .our-news__side-title {
  color: #ffa600;
}

.our-news__side-desc {
  font-family: "u3", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 231, 186, 0.75);
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.our-news__side-date {
  font-family: "u3", sans-serif;
  font-size: 12.5px;
  color: #888;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 231, 186, 0.1);
  display: block;
}

/* ══════════════════════════════════════════════════════════
   NEWS OVERLAY FRAME (MODAL DIALOG)
   ══════════════════════════════════════════════════════════ */

.our-news-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.our-news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.our-news-modal__dialog {
  position: relative;
  z-index: 2;
  background: #081820;
  border: 1px solid rgba(255, 166, 0, 0.45);
  border-radius: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.98);
  width: 80%;
  max-width: 1540px;
  height: 95vh;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ourNewsModalFadeIn 0.22s ease-out;
}

@keyframes ourNewsModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.our-news-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 231, 186, 0.4);
  color: #ffe7ba;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.our-news-modal__close:hover {
  background: rgba(255, 166, 0, 0.3);
  color: #ffa600;
  border-color: #ffa600;
  transform: scale(1.08);
}

.our-news-modal__media {
  width: 100%;
  height: 62vh;
  max-height: 65vh;
  overflow: hidden;
  background: #040d12;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.our-news-modal__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: filter 0.2s ease;
}

.our-news-modal__img:hover {
  filter: brightness(1.06);
}

.our-news-modal__content {
  padding: 22px 36px 18px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.our-news-modal__text-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1100px;
  cursor: pointer;
}

.our-news-modal__title {
  font-family: "u3", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #ffe7ba;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  cursor: text;
}

.our-news-modal__desc {
  font-family: "u3", sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: #d4dde2;
  white-space: pre-line;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  cursor: text;
}

.our-news-modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 231, 186, 0.12);
  flex-wrap: wrap;
  width: 100%;
  cursor: default;
}

.our-news-modal__date {
  font-family: "u3", sans-serif;
  font-size: 14px;
  color: #ffa600;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.our-news-modal__link {
  font-family: "u3", sans-serif;
  color: #ffe7ba;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.our-news-modal__link:hover {
  color: #ffa600;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE ADAPTATIONS FOR 2-COLUMN NEWS & MODAL
   ══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .our-news__layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .our-news__side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .our-news__side-card {
    min-height: auto;
    padding: 16px;
  }

  .our-news-modal__dialog {
    width: 100%;
    max-width: 100%;
    height: 95vh;
    max-height: 96vh;
  }

  .our-news-modal__media {
    height: 52vh;
    max-height: 54vh;
  }

  .our-news-modal__img {
    width: 100%;
    height: 100%;
  }

  .our-news-modal__content {
    padding: 18px 22px 14px;
    flex: 1;
  }

  .our-news-modal__title {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .our-news__side {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .our-news__main-content {
    padding: 18px;
  }

  .our-news__main-title {
    font-size: 19px;
  }

  .our-news__side-card {
    min-height: auto;
    padding: 18px;
  }

  .our-news__side-title {
    font-size: 16px;
  }

  .our-news-modal {
    padding: 8px;
  }

  .our-news-modal__dialog {
    width: 100%;
    max-width: 100%;
    height: 96vh;
    max-height: 98vh;
  }

  .our-news-modal__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .our-news-modal__media {
    height: 44vh;
    max-height: 48vh;
  }

  .our-news-modal__img {
    width: 100%;
    height: 100%;
  }

  .our-news-modal__content {
    padding: 16px 18px 14px;
    flex: 1;
  }

  .our-news-modal__title {
    font-size: 19px;
  }

  .our-news-modal__desc {
    font-size: 14px;
    line-height: 1.55;
  }

  .our-news__more {
    width: auto;
    max-width: none;
    padding: 0;
    font-size: 14px;
    min-height: auto;
    align-self: flex-start;
    margin-top: 18px;
  }
}

/* ══════════════════════════════════════════════════════════
   FULL-SIZE IMAGE LIGHTBOX OVERLAY
   ══════════════════════════════════════════════════════════ */

.our-news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  cursor: pointer;
  animation: ourNewsLightboxFadeIn 0.18s ease-out;
}

@keyframes ourNewsLightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.our-news-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.our-news-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 25;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 231, 186, 0.45);
  color: #ffe7ba;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.our-news-lightbox__close:hover {
  background: rgba(255, 166, 0, 0.35);
  color: #ffa600;
  border-color: #ffa600;
  transform: scale(1.08);
}

.our-news-lightbox__container {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(96vw, 1600px);
  height: 94vh;
  max-width: 96vw;
  max-height: 94vh;
  cursor: pointer;
}

.our-news-lightbox__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.96);
  border: 1px solid rgba(255, 166, 0, 0.4);
  display: block;
  cursor: pointer;
  animation: ourNewsLightboxZoom 0.2s ease-out;
}

@keyframes ourNewsLightboxZoom {
  from {
    transform: scale(0.92);
    opacity: 0.8;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .our-news-lightbox {
    padding: 8px;
  }

  .our-news-lightbox__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .our-news-lightbox__container {
    width: 100%;
    height: 92vh;
    max-width: 100%;
    max-height: 92vh;
  }
}
