/* =====================================================
   NEWS POST – shared styling for ALL news pages
===================================================== */

.news-post{
  padding: 40px 0 80px 0;
}

.news-post .post-card--not-found .post-body{
  padding-block: clamp(44px, 8vw, 88px);
  text-align: center;
}

.news-post .post-wrap{
  max-width: 920px;
  margin: 0 auto;
}

.news-post .post-card{
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.08);
  border: 1px solid rgba(10,26,47,.08);
}

.news-post .post-hero{
  position: relative;
  width: 100%;
  background: #EAF2FF;
}

.news-post .post-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-post .post-body{
  padding: 28px;
}

@media (max-width: 575.98px){
  .news-post .post-body{ padding: 20px; }
}

.news-post .post-badges{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.news-post .post-title{
  font-weight: 900;
  letter-spacing: .2px;
  margin: 0 0 10px 0;
}

.news-post .post-lead{
  color: color-mix(in srgb, var(--dark) 78%, #000);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0 0 18px 0;
}

.news-post .post-content p{
  margin: 0 0 14px 0;
  color: color-mix(in srgb, var(--dark) 88%, #000);
  line-height: 1.9;
}

.news-post .post-list{
  margin: 14px 0 0 0;
  padding-left: 18px;
}

.news-post .post-list li{
  margin: 8px 0;
  line-height: 1.8;
  color: color-mix(in srgb, var(--dark) 92%, #000);
  font-weight: 600;
}

.news-post .post-divider{
  height: 1px;
  background: rgba(10,26,47,.10);
  margin: 18px 0;
}

.news-post .post-back{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--primary);
}

.news-post .post-back:hover{
  color: color-mix(in srgb, var(--primary) 80%, #000);
  text-decoration: underline;
}

.news-post .post-actions .btn i{ width:1em; }

/* ---- Media area --------------------------------------------------------
   One image: shown at its natural proportions (unchanged).
   Two or more (.post-hero--gallery): Bootstrap carousel in a fixed 3:2 frame, so the page never jumps.
   Landscape photos fill the frame (object-fit: cover); portrait photos get .is-contain from
   news/js/post.js and are shown whole on the light background. */
.news-post .post-hero[hidden]{display:none;}
.news-post .post-hero--gallery .carousel-inner{
  aspect-ratio: 3 / 2;
  max-height: 78vh;
  background: var(--light, #F6F8FC);
}
.news-post .post-hero--gallery .carousel-item,
.news-post .post-hero--gallery .carousel-item picture{
  height: 100%;
}
.news-post .post-hero--gallery .carousel-item picture{ display:block; }
.news-post .post-hero--gallery .carousel-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.news-post .post-hero--gallery .carousel-item img.is-contain{ object-fit: contain; }
.news-post .post-hero--gallery .carousel:focus-visible{ outline: 3px solid var(--accent); outline-offset: -3px; }

.news-post .post-dots{ margin-bottom: .75rem; gap: 2px; }
.news-post .post-dots [data-bs-target]{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: rgba(255,255,255,.55);
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  opacity: 1;
  margin: 0 4px;
}
.news-post .post-dots .active{ background-color: var(--accent); }
