/* =========================================
   BLOG DETAIL PAGE — card layout
   Placeholder colors — swap to theme colors later
   ========================================= */

:root {
  --bd-accent: #e05a2b;
  /* category tag / links — swap to theme accent */
  --bd-dark: #1a1a2e;
  --bd-text: #333;
  --bd-muted: #777;
  --bd-bg: #f0f0f0;
  --bd-white: #ffffff;
  --bd-border: #ececec;
  --bd-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  --bd-radius: 8px;
  --bd-pill-bg: #f2f2f2;
  --bd-follow-bg: #fdece6;
}

.bd-page {
  background: var(--bd-bg);
  min-height: 100vh;
}

.bd-outer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  box-sizing: border-box;
}

.bd-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* =========================================
   ARTICLE (LEFT)
   ========================================= */
.bd-article {
  background: var(--bd-white);
  border-radius: var(--bd-radius);
  overflow: hidden;
  box-shadow: var(--bd-shadow);
}

.bd-hero-img {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.bd-hero-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.bd-article-head {
  padding: 24px 28px 0;
}

.bd-category-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #00196E;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.bd-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--bd-dark);
  line-height: 1.3;
  margin: 0 0 14px;
}

.bd-meta-row {
  font-size: 16px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bd-border);
  margin-bottom: 4px;
}

.bd-meta-sep {
  opacity: 0.5;
}

/* ── Article body ── */
.bd-body {
  padding: 20px 28px 8px;
}

.bd-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--bd-dark);
  margin: 26px 0 12px;
  line-height: 1.3;
}

.bd-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--bd-dark);
  margin: 20px 0 10px;
}

.bd-body p {
  font-size: 17px;
  color: #000;
  line-height: 1.8;
  margin-bottom: 14px;
}

.bd-body ul {
  margin: 0 0 16px 0;
  padding: 0;
  list-style: none;
}

.bd-body ul li {
  font-size: 17px;
  color: #000;
  line-height: 1.75;
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}

.bd-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: #00196E;
  border-radius: 50%;
}

.bd-body ol {
  margin: 0 0 16px 18px;
  padding: 0;
}

.bd-body ol li {
  font-size: 16px;
  color: var(--bd-text);
  line-height: 1.8;
  margin-bottom: 8px;
}

.bd-body strong,
.bd-body b {
  color: var(--bd-dark);
  font-weight: 700;
}

.bd-body a {
  color: #FF0000;
  text-decoration: underline;
}

.bd-body a:hover {
  text-decoration: none;
}

/* ── FAQ Accordion ── */
.bd-faq {
  margin: 12px 28px 28px;
  padding: 20px;
  border-top: 1px solid var(--bd-border);
  background-color: #FFF0D9;
}

.bd-faq-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--bd-dark);
  margin: 0 0 16px;
}

.bd-faq-accordion {
  display: flex;
  flex-direction: column;
}

.bd-faq-item {
  border-bottom: 1px solid var(--bd-border);
}

.bd-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 700;
  color: #000;
  text-align: left;
  cursor: pointer;
}

.bd-faq-toggle {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: #00196E;
}

.bd-faq-answer {
  padding: 0 4px 16px;
  font-size: 16px;
  color: #000;
  line-height: 1.75;
}

/* =========================================
   SIDEBAR (RIGHT)
   ========================================= */
.bd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.bd-widget {
  background: var(--bd-white);
  border-radius: var(--bd-radius);
  box-shadow: var(--bd-shadow);
  padding: 18px;
}

.bd-widget-title {
  font-size: 18px;
  font-weight: 800;
  color: #000;
  margin: 0 0 14px;
}

/* Related posts */
.bd-related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bd-related-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--bd-border);
}

.bd-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bd-related-thumb {
  flex-shrink: 0;
  width: 58px;
  height: 44px;
  overflow: hidden;
  border-radius: 4px;
  background: #ddd;
}

.bd-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bd-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #dde;
  display: block;
}

.bd-related-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bd-related-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--bd-dark);
  line-height: 1.35;
}

.bd-related-label:hover {
  color: #00196E;
}

.bd-related-date {
  font-size: 12px;
  color: #000;
}

.bd-empty-note {
  font-size: 12px;
  color: var(--bd-muted);
  padding: 6px 0;
  margin: 0;
}

/* Categories with count */
.bd-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bd-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--bd-border);
}

.bd-cat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bd-cat-name {
  font-size: 16px;
  color: #000;
  font-weight: 500;
}

.bd-cat-name:hover {
  color: #00196E;
}

.bd-cat-count {
  font-size: 12px;
  font-weight: 700;
  color: #00196E;
  background: var(--bd-pill-bg);
  border-radius: 12px;
  padding: 2px 10px;
}

/* Tag cloud */
.bd-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-tag-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--bd-text);
  background: var(--bd-pill-bg);
  border-radius: 16px;
  padding: 6px 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.bd-tag-pill:hover {
  background: var(--bd-accent);
  color: #fff;
}

/* Follow us box */
.bd-follow-box {
  background: #FFF0D9;
  border-radius: var(--bd-radius);
  padding: 20px 18px;
}

.bd-follow-title {
  font-size: 18px;
  font-weight: 800;
  color: #000;
  margin: 0 0 6px;
}

.bd-follow-sub {
  font-size: 12px;
  color: #000;
  margin: 0 0 14px;
  line-height: 1.5;
}

.bd-follow-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bd-follow-links a {
  font-size: 13px;
  font-weight: 600;
  color: #FF0000;
  text-decoration: none;
}

.bd-follow-links a:hover {
  color: #25CC18;
  text-decoration: underline;
}

/* Social links */
.bd-follow-links a span {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  vertical-align: middle;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23FF0000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  transition: transform 0.25s ease;
}

/* Hover */
.bd-follow-links a:hover span {
  transform: translateX(10px);

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%2325CC18' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .bd-layout {
    grid-template-columns: 1fr;
  }

  .bd-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .bd-follow-box {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .bd-outer {
    padding: 18px 14px 40px;
  }

  .bd-hero-img img {
    height: 220px;
  }

  .bd-article-head {
    padding: 20px 18px 0;
  }

  .bd-title {
    font-size: 22px;
  }

  .bd-body {
    padding: 16px 18px 6px;
  }

  .bd-faq {
    margin: 12px 18px 20px;
  }

  .bd-sidebar {
    grid-template-columns: 1fr;
  }

  .bd-follow-box {
    grid-column: span 1;
  }
}