
.bd-news-cards-page {
  padding: 36px 0 72px;
}

.bd-news-cards-container,
.bd-single-post-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.bd-news-cards-page-header {
  margin-bottom: 28px;
  text-align: center;
}

.bd-news-cards-page-title-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.bd-news-cards-page-content {
  margin-bottom: 28px;
  color: #475569;
  line-height: 1.8;
  font-size: 16px;
}

.bd-news-cards-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bd-news-cards-section-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  color: #0f172a;
}

.bd-news-cards-section-subtitle {
  margin: 6px 0 0;
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

.bd-news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bd-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bd-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.bd-news-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.bd-news-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bd-news-card:hover .bd-news-card-image img {
  transform: scale(1.05);
}

.bd-news-card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.bd-news-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  min-width: 0;
  flex: 1;
}

.bd-news-card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.bd-news-card-title a {
  color: #0f172a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.bd-news-card-title a:hover {
  color: #2563eb;
}

.bd-news-card-excerpt {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.bd-news-card-readmore {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1px solid #bfdbfe;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bd-news-card-readmore:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
}

.bd-news-cards-empty {
  padding: 22px 18px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #475569;
  line-height: 1.7;
}

.bd-single-post-main {
  padding: 40px 0 72px;
}

.bd-single-post {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.bd-single-post-inner {
  padding: 28px;
}

.bd-single-post-header {
  margin-bottom: 22px;
}

.bd-single-post-title {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bd-single-post-meta {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.bd-single-post-thumbnail {
  margin-bottom: 24px;
  border-radius: 18px;
  overflow: hidden;
  background: #e2e8f0;
}

.bd-single-post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.bd-single-post-content {
  color: #334155;
  font-size: 17px;
  line-height: 1.85;
}

.bd-single-post-content::after {
  content: "";
  display: block;
  clear: both;
}

.bd-single-post-content > *:first-child {
  margin-top: 0;
}

.bd-single-post-content h1,
.bd-single-post-content h2,
.bd-single-post-content h3,
.bd-single-post-content h4,
.bd-single-post-content h5,
.bd-single-post-content h6 {
  color: #0f172a;
  line-height: 1.3;
  margin: 1.25em 0 0.55em;
  overflow-wrap: anywhere;
}

.bd-single-post-content p,
.bd-single-post-content li,
.bd-single-post-content blockquote,
.bd-single-post-content figcaption {
  overflow-wrap: anywhere;
}

.bd-single-post-content p,
.bd-single-post-content ul,
.bd-single-post-content ol,
.bd-single-post-content blockquote,
.bd-single-post-content pre,
.bd-single-post-content table,
.bd-single-post-content figure {
  margin: 0 0 1.1em;
}

.bd-single-post-content ul,
.bd-single-post-content ol {
  padding-left: 1.3em;
}

.bd-single-post-content a {
  color: #2563eb;
  text-decoration: underline;
}

.bd-single-post-content img,
.bd-single-post-content video,
.bd-single-post-content iframe,
.bd-single-post-content embed,
.bd-single-post-content object,
.bd-single-post-content canvas,
.bd-single-post-content svg {
  max-width: 100%;
  height: auto;
}

.bd-single-post-content .wp-caption,
.bd-single-post-content figure {
  max-width: 100%;
}

.bd-single-post-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 14px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
}

.bd-single-post-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.bd-single-post-content table td,
.bd-single-post-content table th {
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
}

.bd-single-post-content * {
  max-width: 100%;
  box-sizing: border-box;
}

.bd-single-post-content [style*="float:left"],
.bd-single-post-content [style*="float: left"],
.bd-single-post-content [style*="float:right"],
.bd-single-post-content [style*="float: right"] {
  max-width: min(100%, 320px);
}

.bd-single-post-content blockquote {
  border-left: 4px solid #2563eb;
  padding: 6px 0 6px 16px;
  color: #475569;
  background: #f8fafc;
}

@media (max-width: 991px) {
  .bd-news-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bd-news-cards-page,
  .bd-single-post-main {
    padding: 26px 0 56px;
  }

  .bd-news-cards-container,
  .bd-single-post-container {
    width: min(100% - 20px, 1000px);
  }

  .bd-news-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bd-news-cards-page-title-button {
    min-width: 150px;
    padding: 12px 22px;
  }

  .bd-news-card-badge {
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .bd-news-card-body {
    padding: 12px;
  }

  .bd-news-card-title {
    font-size: 15px;
    line-height: 1.4;
  }

  .bd-news-card-excerpt {
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .bd-news-card-readmore {
    min-height: 36px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .bd-single-post-inner {
    padding: 18px;
  }

  .bd-single-post-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .bd-single-post-content {
    font-size: 16px;
    line-height: 1.75;
  }
}
