/* ── Skeleton pulse ──────────────────────────────────── */
@keyframes bmrLandingPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .45; }
}
.bmr-lsk {
  background: #e2e8f0;
  border-radius: 4px;
  animation: bmrLandingPulse 1.4s ease infinite;
  display: block;
}

/* ── Hero ────────────────────────────────────────────── */
.bmr-hero {
  background: linear-gradient(135deg, #e8f5f3 0%, #f0faf8 60%, #fff 100%);
  padding: 5rem 0 4rem;
}
.bmr-hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.2; color: #1a1a1a; }
.bmr-hero h1 .highlight { color: var(--bmr-teal); }
.bmr-hero .sub-content { font-size: 1.05rem; color: #555; max-width: 480px; margin-top: 1rem; }
.bmr-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.bmr-hero-img { border-radius: 16px; box-shadow: 0 20px 60px rgba(27,96,85,.15); max-width: 100%; }

/* ── Section wrapper ─────────────────────────────────── */
.bmr-landing-sec { padding: 4.5rem 0; }
.bmr-landing-alt { background: #f0faf8; }

/* Section header: title+sub left, view-all right */
.bmr-landing-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.bmr-landing-sec-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 .25rem;
}
.bmr-landing-sec-sub {
  font-size: .9rem;
  color: #64748b;
  margin: 0;
}
.bmr-landing-view-all {
  font-size: .85rem;
  font-weight: 700;
  color: var(--bmr-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap .15s;
  white-space: nowrap;
}
.bmr-landing-view-all:hover { gap: .55rem; color: var(--bmr-teal); text-decoration: underline; }

/* Empty state */
.bmr-landing-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}
.bmr-landing-empty i { font-size: 2rem; display: block; margin-bottom: .75rem; opacity: .4; }

/* ── Programs grid ───────────────────────────────────── */
.bmr-landing-prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Program card */
.bmr-lp-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.bmr-lp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  text-decoration: none;
  color: inherit;
}

/* Card image */
.bmr-lp-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bmr-teal-light, #e8f5f3);
  overflow: hidden;
  flex-shrink: 0;
}
.bmr-lp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.bmr-lp-card:hover .bmr-lp-card-img img { transform: scale(1.05); }
.bmr-lp-card-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--bmr-teal);
  opacity: .35;
}

/* Type badge overlay */
.bmr-lp-type-badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  background: var(--bmr-teal);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Card body */
.bmr-lp-card-body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .3rem;
}
.bmr-lp-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.bmr-lp-card:hover .bmr-lp-card-title { color: var(--bmr-teal); }
.bmr-lp-card-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: #64748b;
}
.bmr-lp-card-meta i { color: var(--bmr-teal); font-size: .75rem; width: 14px; text-align: center; }
.bmr-lp-card-desc {
  font-size: .82rem;
  color: #666;
  margin: .2rem 0 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.bmr-lp-read {
  font-size: .8rem;
  font-weight: 700;
  color: var(--bmr-teal);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .65rem;
  transition: gap .15s;
}
.bmr-lp-card:hover .bmr-lp-read { gap: .55rem; }

/* ── Category cards grid ─────────────────────────────── */
.bmr-landing-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Category card */
.bmr-lc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.4rem 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.bmr-lc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
  border-color: var(--bmr-teal);
  text-decoration: none;
  color: inherit;
}
.bmr-lc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .85rem;
  flex-shrink: 0;
}
.bmr-lc-icon.article { background: #eff6ff; color: #3b82f6; }
.bmr-lc-icon.book    { background: #fef3c7; color: #d97706; }
.bmr-lc-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 .2rem;
  line-height: 1.4;
  transition: color .15s;
}
.bmr-lc-card:hover .bmr-lc-title { color: var(--bmr-teal); }
.bmr-lc-sub {
  font-size: .78rem;
  color: #94a3b8;
  margin: 0 0 .6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bmr-lc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid #f1f5f9;
}
.bmr-lc-count {
  font-size: .72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bmr-lc-arrow {
  font-size: .75rem;
  color: var(--bmr-teal);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s, transform .18s;
}
.bmr-lc-card:hover .bmr-lc-arrow { opacity: 1; transform: translateX(0); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .bmr-hero { padding: 3.5rem 0 2.5rem; }
  .bmr-hero h1 { font-size: 1.9rem; }
  .bmr-landing-sec { padding: 3rem 0; }
  .bmr-landing-prog-grid { grid-template-columns: 1fr; }
  .bmr-landing-cat-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bmr-landing-cat-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   Banner Hero Section
════════════════════════════════════════════════════════ */
.bmr-banner-section {
  display: flex;
  height: 500px;
  overflow: hidden;
  background: #111;
  margin: 5px;
  margin-left: 130px;
  margin-right: 110px;
  border-radius: 15px;
}

/* ── Left: featured program ── */
.bmr-banner-featured {
  flex: 0 0 67%;
  position: relative;
  overflow: hidden;
}

.bmr-banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.bmr-banner-featured:hover .bmr-banner-bg { transform: scale(1.04); }

.bmr-banner-fallback-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1b6055 0%, #0d4a3f 100%);
}

/* Multi-layer gradient: subtle dark top + strong dark bottom */
.bmr-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, transparent 35%),
    linear-gradient(to top,    rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 40%, transparent 75%);
  display: flex;
  align-items: flex-end;
}

.bmr-banner-body {
  padding: 2rem 2.25rem 2rem;
  color: #fff;
  width: 100%;
}

.bmr-banner-type {
  display: inline-flex;
  align-items: center;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(27,96,85,.85);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: .25rem .8rem;
  border-radius: 20px;
  margin-bottom: .7rem;
  border: 1px solid rgba(255,255,255,.15);
}

.bmr-banner-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 .75rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 560px;
}

.bmr-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.1rem;
}
.bmr-banner-meta span { display: flex; align-items: center; gap: .4rem; }
.bmr-banner-meta i { color: #6ee7b7; font-size: .75rem; }

.bmr-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--bmr-teal, #1b6055);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: .6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(27,96,85,.5);
  transition: background .18s, box-shadow .18s, transform .18s;
  margin-bottom: .8rem;
}
.bmr-banner-cta:hover {
  background: #145045;
  box-shadow: 0 6px 20px rgba(27,96,85,.6);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.bmr-banner-subtitle {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

/* ── Right: thumbnail list ── */
.bmr-banner-list {
  flex: 0 0 33%;
  background: #141414;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a #141414;
  border-left: 1px solid #222;
}
.bmr-banner-list::-webkit-scrollbar { width: 4px; }
.bmr-banner-list::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 2px; }

.bmr-banner-list-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #1f1f1f;
  transition: background .18s;
  position: relative;
}
.bmr-banner-list-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background .18s;
}
.bmr-banner-list-item:hover { background: #1e1e1e; }
.bmr-banner-list-item:hover::before { background: #3a6b62; }
.bmr-banner-list-item.active { background: #1c2e2b; }
.bmr-banner-list-item.active::before { background: var(--bmr-teal, #1b6055); }

.bmr-banner-list-thumb {
  width: 80px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #252525;
  border: 1px solid #2a2a2a;
}
.bmr-banner-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.bmr-banner-list-item:hover .bmr-banner-list-thumb img { opacity: .9; }

.bmr-banner-list-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #404040;
  font-size: 1.1rem;
}

.bmr-banner-list-title {
  font-size: .8rem;
  color: #aaa;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color .18s;
}
.bmr-banner-list-item:hover .bmr-banner-list-title  { color: #ddd; }
.bmr-banner-list-item.active .bmr-banner-list-title { color: #fff; font-weight: 600; }

/* ════════════════════════════════════════════════════════
   Post Categories Section
════════════════════════════════════════════════════════ */
.bmr-posts-section {
  padding: 3rem 0 3.5rem;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

/* Vertical divider between the two category columns */
.bmr-posts-section .row > .col-lg-6:first-child {
  border-right: 1px solid #f0f0f0;
}
.bmr-posts-section .row > .col-lg-6:last-child {
  padding-left: 2rem;
}

/* Section header row */
.bmr-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: .7rem;
  position: relative;
}
.bmr-posts-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: #f0f0f0;
  border-radius: 2px;
}
.bmr-posts-header::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px;
  height: 2px;
  background: var(--bmr-teal, #1b6055);
  border-radius: 2px;
  z-index: 1;
}

.bmr-posts-cat-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -.01em;
}
.bmr-posts-cat-title:hover { color: var(--bmr-teal, #1b6055); text-decoration: none; }

.bmr-posts-arrows { display: flex; gap: .4rem; }
.bmr-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .68rem;
  transition: all .18s;
  line-height: 1;
}
.bmr-arrow-btn:hover:not(:disabled) {
  background: var(--bmr-teal, #1b6055);
  border-color: var(--bmr-teal, #1b6055);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27,96,85,.3);
}
.bmr-arrow-btn:disabled { opacity: .25; cursor: default; }

/* Post cards grid */
.bmr-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.bmr-post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 2px 12px rgba(0,0,0,.04);
  border: 1px solid #f0f0f0;
  transition: box-shadow .22s, transform .22s;
}
.bmr-post-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.bmr-post-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5f5f5;
}
.bmr-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.bmr-post-card:hover .bmr-post-img img { transform: scale(1.07); }
.bmr-post-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #d0d0d0;
}

.bmr-post-body {
  padding: .75rem .9rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.bmr-post-tag {
  display: inline-flex;
  align-items: center;
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--bmr-teal, #1b6055);
  background: #e8f5f2;
  padding: .18rem .55rem;
  border-radius: 4px;
  width: fit-content;
}
.bmr-post-title {
  font-size: .85rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s;
}
.bmr-post-card:hover .bmr-post-title { color: var(--bmr-teal, #1b6055); }

/* ── Responsive ──────────────────────────────────────── */

/* Tablet (≤ 1100px): reduce side margins */
@media (max-width: 1100px) {
  .bmr-banner-section {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Small tablet / large phone (≤ 992px): stack vertically */
@media (max-width: 992px) {
  .bmr-banner-section {
    height: auto;
    flex-direction: column;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 12px;
  }
  .bmr-banner-featured { flex: none; height: 340px; }
  .bmr-banner-title { font-size: 1.5rem; }

  /* Thumbnail list becomes a horizontal scroll strip */
  .bmr-banner-list {
    flex: none;
    height: 150px;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    border-left: none;
    border-top: 1px solid #1f1f1f;
    scrollbar-width: none;
  }
  .bmr-banner-list::-webkit-scrollbar { display: none; }
  .bmr-banner-list-item {
    flex-shrink: 0;
    flex-direction: column;
    width: 110px;
    height: 100%;
    border-bottom: none;
    border-right: 1px solid #1f1f1f;
    padding: .6rem .65rem;
  }
  .bmr-banner-list-item::before { width: 100%; height: 3px; bottom: auto; top: 0; }
  .bmr-banner-list-thumb { width: 100%; height: 62px; }
  .bmr-banner-list-title { -webkit-line-clamp: 2; font-size: .7rem; }

  .bmr-posts-section .row > .col-lg-6:first-child { border-right: none; }
  .bmr-posts-section .row > .col-lg-6:last-child  { padding-left: 12px; }
}

/* Mobile (≤ 576px): full-width, smaller text */
@media (max-width: 576px) {
  .bmr-banner-section {
    margin: 8px;
    border-radius: 10px;
  }
  .bmr-banner-featured { height: 260px; }
  .bmr-banner-body { padding: 1rem 1rem 1.25rem; }
  .bmr-banner-title {
    font-size: 1.15rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-width: 100%;
  }
  .bmr-banner-type { font-size: .58rem; margin-bottom: .5rem; }
  .bmr-banner-meta { font-size: .72rem; gap: .3rem .75rem; margin-bottom: .75rem; }
  .bmr-banner-cta  { font-size: .78rem; padding: .45rem 1rem; }

  /* Thumbnail strip: slightly taller items, narrower cards */
  .bmr-banner-list { height: 130px; }
  .bmr-banner-list-item { width: 95px; padding: .5rem .55rem; }
  .bmr-banner-list-thumb { height: 56px; }
  .bmr-banner-list-title { font-size: .66rem; }

  .bmr-posts-grid { grid-template-columns: 1fr; }
  .bmr-posts-section { padding: 2rem 0 2.5rem; }
}
