/* ================================
   SENESTE NYT CARD GRID STYLE
================================ */

.bt-latest-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Card */
.bt-news-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover:hover) {
  .bt-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
}

/* Image wrapper â€“ enforce consistent size */
.bt-news-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2;   /* ðŸ‘ˆ key line */
  overflow: hidden;
  background: #f3f4f6;  /* subtle fallback */
}

.bt-news-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;   /* ðŸ‘ˆ crops evenly */
  display: block;
}

.bt-news-cats {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;

  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 20px);
}

/* Individual pill */
.bt-news-cat {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;

  background: #1a1a1a;
  color: #ffffff;

  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;

  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Title */
.bt-news-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.bt-news-title a {
  color: #111;
  font-size: 18px !important;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bt-news-cat:nth-child(n+3) {
  display: none;
}

.bt-news-readmore:hover {
    text-decoration: underline !important;
}

/* Card needs to be a flex column */
.bt-news-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Content stretches to fill height */
.bt-news-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Push read more to the bottom */
.bt-news-readmore {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--bt-accent, #111);
  text-decoration: none;
  text-align: end;
}

.bt-most-viewed .bt-news-readmore {
    position: absolute;
    bottom: 10px;
    right: 15px;
}

/* ================================
   TABLET
================================ */

@media (max-width: 1024px) {
  .bt-latest-grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================
   MOBILE
================================ */

@media (max-width: 640px) {
  .bt-latest-grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
}

/* Mobile: show only first 4 posts */

@media (max-width:768px){

.bt-latest-grid-3x2 .bt-news-item:nth-child(n+5){
display:none;
}

}

/* ================================
   FRONT PAGE HERO (IMAGE OVERLAY)
================================ */

.bt-front-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Background image */
.bt-front-hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bt-front-hero-media img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/* Dark overlay */
.bt-front-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* ================================
   ALIGN HERO CONTENT WITH HEADER
================================ */

.bt-front-hero-overlay {
  position: relative;
  z-index: 2;

  /* vertical spacing stays the same */
  padding-top: 150px;
  padding-bottom: 150px;

  /* MATCH HEADER CONTAINER */
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.bt-front-hero-content {
  max-width: 1000px;
  color: #fff;
}

/* Typography */
.bt-front-hero-content h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.bt-front-hero-content p {
  font-size: 16px;
  width: 89%;
  line-height: 1.6;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.95);
}

/* Actions */
.bt-front-hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

/* Disclaimer */
.bt-front-hero-content small {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  max-width: 100%;
}

/* Buttons */
.bt-btn-primary {
  background: #1a1a1a;
  padding: 14px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.bt-btn-secondary {
  background: #ffffff;
  padding: 14px 20px;
  font-size: 14px;
  border-radius: 10px;
  color: #303030;
  box-shadow: 0 1px 10px rgba(0,0,0,0.15);
}

/* Lower hero image to reveal subject */
.bt-front-hero-media img {
  object-position: center 30% !important;
}

.bt-front-page-hero {
    padding: 0 !important;
}

.bt-front-hero-content h1,.bt-front-hero-actions {
    margin-top: 0;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {

  .bt-front-hero-overlay {
    padding-top: 25px;
    padding-bottom: 25px;
    max-width: 90%;
  }

  .bt-front-hero-content h1 {
    font-size: 28px;
  }
}

/* ================================
   MOST VIEWED – 2x2 GRID
================================ */

.bt-most-viewed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Thumbnail */
.bt-most-viewed-thumb {
  position: relative;
  flex: 0 0 96px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
}

.bt-most-viewed-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Card must be positioning context */
.bt-most-viewed-card {
  position: relative;
  display: flex;
  gap: 14px;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Category pill – top right of card */
.bt-cat-pill {
    background: #1a1a1a;
    color: #ffffff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
    width: fit-content;
}

/* Title */
.bt-most-viewed-title {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  margin-top: 6px;
}

.bt-most-viewed-title a {
    text-decoration: none !important;
    color: #111827;
    font-size: 18px;
    font-weight: 600 !important;

}

/* Stack text content */
.bt-most-viewed-card {
  align-items: flex-start; /* instead of center */
}

/* Reuse existing Læs mere styling */
.bt-most-viewed-card .bt-news-readmore {
  margin-top: auto;
}

/* Force consistent vertical layout in most-viewed cards */
.bt-most-viewed-card {
  align-items: stretch; /* allow full height */
}

/* Push Læs mere to the bottom */
.bt-most-viewed-card .bt-news-readmore {
  margin-top: auto;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 640px) {
  .bt-most-viewed-grid {
    grid-template-columns: 1fr;
  }
  
  .bt-most-viewed-title a {
    font-size: 15px;
}

  .bt-most-viewed-title {
    margin-bottom: 20px !important;
    line-height: 1.1;
  }

.bt-most-viewed article:last-child {
    display: none !important;
}
}

/* ================================
   CATEGORY GRID – BOXED SECTION
================================ */

.bt-category-grid-wrap {
  background: transparent; /* 👈 no full-width band */
}

/* Inner container */
.bt-category-grid-wrap .bt-category-grid {
  margin: 0 auto;
}

.bt-category-grid-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.bt-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.bt-category-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 0;                     /* 👈 important */
  text-decoration: none;
  color: #111827;
  display: flex;
  flex-direction: column;
  overflow: hidden;               /* 👈 clip colored strip */
  box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.bt-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.bt-category-card img {
    height: 56px !important;
    object-fit: contain;
    object-position: left;
}


/* ================================
   FULL-WIDTH ICON STRIP
================================ */

.bt-category-icon {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    font-size: 20px;
    color: #ffffff;
}

.bt-category-name,
.bt-category-desc {
  padding: 12px 16px;
}

.bt-category-name {
  font-size: 14px;
  font-weight: 600;
}

.bt-category-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  padding-top: 0;
}

/* ================================
   CATEGORY ICON – UNIFIED GRADIENT
================================ */

.bt-category-icon {
  background: #009688;
  background: linear-gradient(
    90deg,
    rgba(0, 150, 136, 1) 48%,
    rgb(25, 110, 110) 100%
  );
}

/* ================================
   RESPONSIVE
================================ */

/*@media (max-width: 1024px) {*/
/*  .bt-category-grid {*/
/*    grid-template-columns: repeat(3, 1fr);*/
/*  }*/
/*}*/

/*@media (max-width: 640px) {*/
/*  .bt-category-grid {*/
/*    grid-template-columns: repeat(2, 1fr);*/
/*  }*/
/*}*/

/* =========================
   MOBILE SLIDER
========================= */

@media (max-width:768px){

    .bt-category-grid{
        display:flex;
        overflow-x:auto;
        gap:16px;
        padding-bottom:10px;
        scroll-snap-type:x mandatory;
        -webkit-overflow-scrolling:touch;
    }

    .bt-category-card{
        flex:0 0 70%;
        scroll-snap-align:start;
    }

    /* hide scrollbar */
    .bt-category-grid::-webkit-scrollbar{
        display:none;
    }

}


/* ================================
   EDITORIAL RESPONSIBILITY BOX
================================ */

.bt-editorial-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.bt-editorial-links {
    padding: 5px;
    background: #f5f5f5;
    display: flex;
    justify-content: space-between;
}

.bt-editorial-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.bt-editorial-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.bt-editorial-links {
  font-size: 13px;
}

.bt-editorial-links a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 500;
}

.bt-editorial-links a:hover {
  text-decoration: underline;
}

.bt-editorial-links span {
  margin: 0 6px;
  color: #9ca3af;
}

.bt-editorial-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.bt-editorial-avatar {
  width: 150px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bt-editorial-content {
  display: flex;
  flex-direction: column;
  gap:10px;
}