:root {
  --primary: #059eff;
  --secondary: #def3ff;
  --text-dark: #1a1a1a;
  --text-body: #000000;
  --bg-page: #f5f5f5;
  --border-color: #e5e9f0;
  --sidebar-bg: #ffffff;
  --accent-red: #8b0000;
  --accent-red-dark: #660000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", "Segoe UI", sans-serif;
}

.blog-detail-page {
  background-color: var(--bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

.container-1200 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.section-padding {
  padding: 40px 0 60px;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.bd-main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  width: 100%;
}

/* ============================================================
   ARTICLE
   ============================================================ */
.bd-article-body {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: transparent;
  padding: 0;
  min-width: 0;
}

.bd-featured-image {
  width: 100%;
  margin-bottom: 20px;
}

.bd-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Breadcrumb */
.bd-breadcrumb {
  font-size: 14px;
  color: #000000;
  margin-bottom: 20px;
  padding: 0 4px;
}

.bd-breadcrumb a {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s;
}

.bd-breadcrumb a:hover {
  color: #2e9e46;
  text-decoration: underline;
}

.bd-breadcrumb span {
  color: #999;
  margin: 0 6px;
}

.bd-page-title {
  margin: 0 0 25px;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

.bd-entry-content {
  color: #333;
  font-size: 15px;
  line-height: 1.8;
}

.bd-entry-content p {
  margin-bottom: 20px;
}

.bd-entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin: 35px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #00ae44;
}

.bd-entry-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #000;
  margin: 28px 0 12px;
}

.bd-entry-content ul,
.bd-entry-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.bd-entry-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.bd-entry-content a {
  color: #00ae44;
  text-decoration: underline;
}

.bd-entry-content a:hover {
  text-decoration: none;
}

.bd-entry-content img,
.bd-entry-content iframe,
.bd-entry-content video {
  max-width: 100%;
  height: auto;
}

.bd-entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.bd-faq-section {
  background: #ffeee7;
  border: 1px solid var(--border-color);
  padding: 28px;
  margin: 40px 0;
  border-radius: 4px;
}

.bd-faq-section h2 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 20px;
  color: #000;
  border: none;
  padding: 0;
}

.bd-faq-item {
  margin-bottom: 18px;
}

.bd-faq-item strong {
  display: block;
  font-size: 15px;
  color: #000;
  margin-bottom: 6px;
  font-weight: 600;
}

.bd-faq-item .bd-faq-a {
  color: #444;
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.bd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-width: 0;
}

.bd-widget {
  background: #fff;
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.bd-widget-title {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 0 0 18px;
  padding-left: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* .bd-widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: var(--accent-red);
  border-radius: 2px;
} */

/* Categories */
.bd-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bd-category-list li {
  border-bottom: 1px solid #f0f0f0;
}

.bd-category-list li:last-child {
  border-bottom: none;
}

.bd-category-list a {
  display: block;
  padding: 12px 0;
  color: #000000;
  font-size: 14px;
  text-decoration: none;
  transition:
    color 0.2s,
    padding-left 0.2s;
}

.bd-category-list a:hover,
.bd-category-list a.is-active {
  color: var(--accent-red);
  padding-left: 4px;
}

/* Recent Posts */
.bd-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bd-recent-list li {
  /* display: flex; */
  align-items: flex-start;
  gap: 14px;
}

.bd-recent-thumb {
  display: block;
  width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border-radius: 15px;
}

.bd-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.bd-recent-thumb:hover img {
  transform: scale(1.05);
}

.bd-recent-info {
  flex: 1;
  min-width: 0;
  padding: 15px;
  background-color: #fff;
}

.bd-recent-info a {
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.bd-recent-info a:hover {
  color: #2e9e46;
}

/* Share Widget */
.bd-widget-share {
  background: #00ae44;
  color: #fff;
}

.bd-widget-share .bd-widget-title {
  color: #fff;
}

.bd-widget-share .bd-widget-title::before {
  background: #fff;
}

.bd-widget-share p {
  margin: 0 0 14px;
  font-size: 14px;
  opacity: 0.9;
}

.bd-share-icons {
  display: flex;
  gap: 12px;
}

.bd-share-icons a {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  opacity: 0.85;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.bd-share-icons a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Tags */
.bd-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-tags-cloud a {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 6px 12px;
  color: #000000;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.bd-tags-cloud a:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   BOTTOM SECTIONS
   ============================================================ */
.well1.ins3.bg-primary {
  position: relative;
  background-color: #00ae44;
  padding: 26px 0;
  overflow: hidden;
}

.well1.ins3.bg-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.5) 1.5px,
    transparent 1.5px
  );
  background-size: 55px 55px;
  background-position:
    0 0,
    28px 28px;
  opacity: 0.55;
  pointer-events: none;
}

.well1.ins3.bg-primary .numlink {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
  cursor: pointer;
  /* text-align: left; */
}

.well1:not(.ins3) {
  background-color: #ffffff;
  padding: 50px 0;
}

.well1:not(.ins3) .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.well1:not(.ins3) .grid_4 {
  min-width: 0;
}

.well1:not(.ins3) .grid_4 h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #1a1a1a;
  text-transform: uppercase;
}

.well1:not(.ins3) .grid_4 p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.well1:not(.ins3) .grid_4 p a {
  color: #00ae44;
  text-decoration: none;
  transition: color 0.2s ease;
}

.well1:not(.ins3) .grid_4 p a:hover {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bd-main-layout {
    grid-template-columns: 1fr 280px;
    gap: 30px;
  }
}

@media (max-width: 991px) {
  .bd-main-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bd-sidebar {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .bd-widget-share {
    grid-column: 1 / -1;
  }

  .well1:not(.ins3) .row {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 30px 0 40px;
  }

  .bd-page-title {
    font-size: 24px;
  }

  .bd-entry-content h2 {
    font-size: 20px;
  }

  .bd-entry-content h3 {
    font-size: 17px;
  }

  .bd-faq-section {
    padding: 20px;
    margin: 30px 0;
  }

  .well1.ins3.bg-primary .numlink {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .bd-sidebar {
    grid-template-columns: 1fr;
  }

  .well1.ins3.bg-primary {
    padding: 20px 0;
  }

  .well1:not(.ins3) {
    padding: 40px 0;
  }

  .well1:not(.ins3) .row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .container-1200 {
    padding: 0 10px;
  }

  .bd-page-title {
    font-size: 22px;
  }

  .bd-widget {
    padding: 18px;
  }

  .bd-recent-thumb {
    width: 60px;
    height: 50px;
  }
}

.bd-share-icons a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition:
    opacity 0.2s,
    transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.bd-share-icons a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.bg-gray-7.inner-sect img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .bg-gray-7.inner-sect {
    height: 200px;
    overflow: hidden;
  }

  .bg-gray-7.inner-sect img {
    width: auto;
    max-width: none;
    height: 180px;
    object-fit: cover;
    object-position: left center !important;
  }
}
