/* ==========================================================================
   BSIA News Hub
   All selectors scoped under .bsia-nws- to avoid theme/WPBakery conflicts.
   Brand colors: Navy #25465F | Sage #88A9A3 | Brown #4A4030
                 White #FFFFFF | Light Gray #F4F5F6 | Accent Orange #D77A2D
   Typography: Georgia (headlines) / Helvetica Neue (body)
   ========================================================================== */

.bsia-nws-hub {
  --bsia-nws-navy: #25465F;
  --bsia-nws-sage: #88A9A3;
  --bsia-nws-brown: #4A4030;
  --bsia-nws-white: #FFFFFF;
  --bsia-nws-lightgray: #F4F5F6;
  --bsia-nws-orange: #D77A2D;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  box-sizing: border-box;
}

.bsia-nws-hub * {
  box-sizing: border-box;
}

.bsia-nws-empty {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--bsia-nws-navy);
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
}

/* ---------- Featured banner ---------- */

.bsia-nws-featured {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bsia-nws-navy);
  display: flex;
  align-items: stretch;
  margin: 30px 0 50px;
}

.bsia-nws-featured-content {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bsia-nws-featured-imgwrap {
  flex: 1 1 50%;
  min-height: 380px;
  overflow: hidden;
}

.bsia-nws-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bsia-nws-featured-noimg .bsia-nws-featured-content {
  flex: 1 1 100%;
  max-width: 760px;
}

.bsia-nws-badge {
  display: inline-block;
  align-self: flex-start;
  width: max-content;
  background-color: var(--bsia-nws-orange);
  color: var(--bsia-nws-white);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.bsia-nws-featured-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.bsia-nws-featured-title a {
  color: var(--bsia-nws-white);
  text-decoration: none;
}

.bsia-nws-featured-title a:hover {
  color: var(--bsia-nws-sage);
}

.bsia-nws-featured-excerpt {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bsia-nws-lightgray);
  margin: 0 0 22px;
}

.bsia-nws-featured-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.bsia-nws-date {
  color: var(--bsia-nws-sage);
  font-size: 14px;
}

.bsia-nws-readmore {
  color: var(--bsia-nws-white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid var(--bsia-nws-orange);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bsia-nws-readmore:hover {
  color: var(--bsia-nws-orange);
}

/* ---------- Grid ---------- */

.bsia-nws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.bsia-nws-card {
  background-color: var(--bsia-nws-white);
  border: 1px solid var(--bsia-nws-lightgray);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bsia-nws-card:hover {
  box-shadow: 0 8px 24px rgba(37,70,95,0.12);
  transform: translateY(-2px);
}

.bsia-nws-card-img-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bsia-nws-lightgray);
}

.bsia-nws-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.bsia-nws-card:hover .bsia-nws-card-img {
  transform: scale(1.04);
}

.bsia-nws-card-img-placeholder {
  background: linear-gradient(135deg, var(--bsia-nws-sage), var(--bsia-nws-navy));
}

.bsia-nws-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bsia-nws-card-date {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bsia-nws-orange);
  font-weight: 700;
  margin-bottom: 10px;
}

.bsia-nws-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.bsia-nws-card-title a {
  color: var(--bsia-nws-navy);
  text-decoration: none;
}

.bsia-nws-card-title a:hover {
  color: var(--bsia-nws-orange);
}

.bsia-nws-card-excerpt {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bsia-nws-brown);
  margin: 0 0 16px;
  flex-grow: 1;
}

.bsia-nws-card-readmore {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--bsia-nws-navy);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 2px solid var(--bsia-nws-sage);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bsia-nws-card-readmore:hover {
  color: var(--bsia-nws-orange);
  border-color: var(--bsia-nws-orange);
}

/* ---------- Load more ---------- */

.bsia-nws-loadmore-wrap {
  text-align: center;
  margin-top: 44px;
}

.bsia-nws-loadmore-btn {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bsia-nws-white);
  background-color: var(--bsia-nws-navy);
  border: none;
  padding: 14px 36px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.bsia-nws-loadmore-btn:hover {
  background-color: var(--bsia-nws-orange);
}

.bsia-nws-loadmore-btn:disabled {
  background-color: var(--bsia-nws-sage);
  cursor: default;
}

.bsia-nws-card.bsia-nws-card-new {
  animation: bsia-nws-fadein 0.4s ease;
}

@keyframes bsia-nws-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .bsia-nws-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .bsia-nws-featured-title {
    font-size: 28px;
  }
  .bsia-nws-featured-content {
    padding: 34px;
  }
}

@media (max-width: 700px) {
  .bsia-nws-featured {
    flex-direction: column;
    min-height: 0;
  }
  .bsia-nws-featured-content,
  .bsia-nws-featured-imgwrap {
    flex: 1 1 auto;
  }
  .bsia-nws-featured-imgwrap {
    min-height: 220px;
    order: -1; /* image on top, text below, on mobile */
  }
}

@media (max-width: 600px) {
  .bsia-nws-grid {
    grid-template-columns: 1fr;
  }
  .bsia-nws-featured-content {
    padding: 26px;
  }
  .bsia-nws-featured-title {
    font-size: 24px;
  }
}
