/* =========================================================
   Single post redesign — scoped to individual WordPress posts.
   Does not alter blog archive, category archive or Flatsome sidebar.
   ========================================================= */

.single-post .blog-wrapper.blog-single {
  background: #fff;
}

/* =========================================================
   Single post header: Breadcrumb + H1 + Meta
   ========================================================= */

.single-post .entry-header {
  margin: 0 0 28px !important;
  padding: 0 0 22px !important;
  border-bottom: 1px solid #e6ebef !important;
}

.single-post .entry-header .entry-header-text,
.single-post .entry-header .entry-header-text-top {
  text-align: left !important;
}

.single-post .entry-header .entry-divider {
  display: none !important;
}

/* Breadcrumb */

.single-post .bk-single-breadcrumb,
.single-post .rank-math-breadcrumb,
.single-post .rank-math-breadcrumb p {
  margin: 0 0 14px !important;
  color: #74818d !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.single-post .bk-single-breadcrumb a,
.single-post .rank-math-breadcrumb a {
  color: #71808d !important;
  text-decoration: none !important;
}

.single-post .bk-single-breadcrumb a:hover,
.single-post .rank-math-breadcrumb a:hover {
  color: var(--bk-red, #e60000) !important;
}

/* H1 */

.single-post .entry-header .entry-title,
.single-post .entry-header h1.entry-title {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--bk-red, #e60000) !important;
  font-size: clamp(29px, 3vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  text-transform: none !important;
}

/* Ẩn meta Flatsome cũ, phòng trường hợp file template cũ vẫn đang cache */
.single-post .entry-header > .entry-meta {
  display: none !important;
}

/* Meta mới: ngày | tác giả | lượt xem */

.single-post .entry-header .bk-single-meta {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin: 16px 0 0 !important;
  color: #71808d !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.single-post .entry-header .bk-single-meta__item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #71808d !important;
  white-space: nowrap !important;
}

.single-post .entry-header .bk-single-meta__item + .bk-single-meta__item {
  margin-left: 14px !important;
  padding-left: 14px !important;
  border-left: 1px solid #d9e0e6 !important;
}

.single-post .entry-header .bk-single-meta__item svg {
  width: 15px !important;
  height: 15px !important;
  color: #7c8995 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
}

.single-post .entry-header .bk-single-meta__item a {
  color: inherit !important;
  text-decoration: none !important;
}

.single-post .entry-header .bk-single-meta__item a:hover,
.single-post .entry-header .bk-single-meta__item a:focus-visible {
  color: var(--bk-red, #e60000) !important;
}

@media screen and (max-width: 549px) {
  .single-post .entry-header .entry-title,
  .single-post .entry-header h1.entry-title {
    font-size: 28px !important;
  }

  .single-post .entry-header .bk-single-meta {
    gap: 8px 0 !important;
  }

  .single-post .entry-header .bk-single-meta__item + .bk-single-meta__item {
    margin-left: 10px !important;
    padding-left: 10px !important;
  }
}

/* ---------- Article content ---------- */

.single-post .bk-single-content {
  color: #26333e;
  font-size: 16px;
  line-height: 1.85;
}

.single-post .bk-single-content > :first-child {
  margin-top: 0 !important;
}

.single-post .bk-single-content p {
  margin: 0 0 20px;
}

.single-post .bk-single-content h2,
.single-post .bk-single-content h3,
.single-post .bk-single-content h4 {
	color: #001B3A;
	clear: both;
  	margin: 34px 0 14px;
  	font-weight: 800;
  	line-height: 1.35;
}

.single-post .bk-single-content h2 {
  font-size: 28px;
}

.single-post .bk-single-content h3 {
  font-size: 23px;
}

.single-post .bk-single-content h4 {
  font-size: 19px;
}

.single-post .bk-single-content a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.single-post .bk-single-content a:hover {
  color: var(--bk-navy, #001f3a);
}

.single-post .bk-single-content figure,
.single-post .bk-single-content .wp-caption {
  max-width: 100%;
  margin: 26px auto;
}

.single-post .bk-single-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.single-post .bk-single-content figcaption,
.single-post .bk-single-content .wp-caption-text {
  margin-top: 8px;
  color: #77838f;
  font-size: 13px;
  font-style: italic;
  line-height: 1.55;
  text-align: center;
}

.single-post .bk-single-content ul,
.single-post .bk-single-content ol {
  margin: 0 0 22px 24px;
}

.single-post .bk-single-content li {
  margin-bottom: 8px;
}

.single-post .bk-single-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--bk-red, #e60000);
  background: #f7f9fb;
  color: #314150;
  font-size: 18px;
  line-height: 1.7;
}

/* Preserve the current WordPress/Rank Math TOC markup but give it a clean box. */
.single-post .bk-single-content #rank-math-toc,
.single-post .bk-single-content .rank-math-toc-block {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid #dde5eb;
  border-radius: 8px;
  background: #f8fafc;
}

.single-post .bk-single-content #rank-math-toc h2,
.single-post .bk-single-content .rank-math-toc-block h2 {
  margin: 0 0 10px;
  color: var(--bk-navy, #001f3a);
  font-size: 18px;
}

.single-post .bk-single-content #rank-math-toc ul,
.single-post .bk-single-content .rank-math-toc-block ul {
  margin: 0 0 0 18px;
}

.single-post .bk-single-share {
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e8edf1;
}

/* ---------- Existing Flatsome Author Box ---------- */

.single-post .bk-single-author-box {
  margin: 38px 0 0 !important;
  padding: 22px 24px !important;
  border: 1px solid #e2e8ee !important;
  border-left: 4px solid var(--bk-red, #e60000) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 31, 58, 0.06) !important;
}

.single-post .bk-single-author-box .flex-row {
  align-items: center !important;
}

.single-post .bk-single-author-box .blog-author-image img {
  display: block !important;
  width: 74px !important;
  height: 74px !important;
  border: 3px solid #f2f5f7 !important;
  border-radius: 50% !important;
}

.single-post .bk-single-author-box .author-name {
  margin: 0 0 7px !important;
  color: var(--bk-navy, #001f3a) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

.single-post .bk-single-author-box .author-name a {
  color: inherit !important;
  text-decoration: none !important;
}

.single-post .bk-single-author-box .author-name a:hover,
.single-post .bk-single-author-box .author-name a:focus-visible {
  color: var(--bk-red, #e60000) !important;
}

.single-post .bk-single-author-box .author-desc {
  margin: 0 !important;
  color: #5f6e7b !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

/* ---------- Comments and comment form ---------- */

.single-post .bk-comments-area {
  margin-top: 42px !important;
  padding-top: 32px !important;
  border-top: 1px solid #e7edf1 !important;
}

.single-post .bk-comments-title,
.single-post .bk-comment-reply-title {
  margin: 0 0 18px !important;
  color: var(--bk-navy, #001f3a) !important;
  font-size: 25px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

.single-post .bk-comments-title span {
  color: inherit !important;
}

.single-post .bk-comments-area .comment-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.single-post .bk-comments-area .comment-list > li {
  margin: 0 0 18px !important;
  padding: 20px !important;
  border: 1px solid #e2e8ee !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.single-post .bk-comments-area .comment-author img {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
}

.single-post .bk-comments-area .comment-author .fn,
.single-post .bk-comments-area .comment-author .fn a {
  color: var(--bk-navy, #001f3a) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.single-post .bk-comments-area .comment-metadata,
.single-post .bk-comments-area .comment-metadata a {
  color: #8994a0 !important;
  font-size: 12px !important;
  text-decoration: none !important;
}

.single-post .bk-comments-area .comment-content {
  margin-top: 12px !important;
  color: #34414c !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.single-post .bk-comments-area .comment-reply-link {
  color: var(--bk-red, #e60000) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.single-post .bk-comments-area .comment-respond {
  margin-top: 30px !important;
  padding: 24px !important;
  border: 1px solid #e2e8ee !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

.single-post .bk-comments-area .bk-comment-notes {
  margin: -6px 0 18px !important;
  color: #687784 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.single-post .bk-comments-area .comment-form label {
  display: block !important;
  margin-bottom: 7px !important;
  color: var(--bk-navy, #001f3a) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.single-post .bk-comments-area .comment-form textarea,
.single-post .bk-comments-area .comment-form input[type="text"],
.single-post .bk-comments-area .comment-form input[type="email"],
.single-post .bk-comments-area .comment-form input[type="url"] {
  width: 100% !important;
  border: 1px solid #ccd6df !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.single-post .bk-comments-area .comment-form textarea {
  min-height: 145px !important;
  padding: 14px !important;
  resize: vertical !important;
}

.single-post .bk-comments-area .comment-form input[type="text"],
.single-post .bk-comments-area .comment-form input[type="email"],
.single-post .bk-comments-area .comment-form input[type="url"] {
  height: 44px !important;
  padding: 0 14px !important;
}

.single-post .bk-comments-area .bk-comment-submit {
  min-width: 158px !important;
  height: 44px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bk-red, #e60000) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

.single-post .bk-comments-area .bk-comment-submit:hover {
  background: #b80000 !important;
}

/* ---------- Full-width Contact Form 7 CTA after comments ---------- */

.bk-single-contact-cta {
  --bk-single-contact-bg: none;
  position: relative;
  margin-top: 52px;
  overflow: hidden;
  background-color: #071f38;
  background-image:
    linear-gradient(90deg, rgba(0, 22, 40, 0.88), rgba(0, 22, 40, 0.48)),
    var(--bk-single-contact-bg);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.bk-single-contact-cta__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bk-single-contact-cta__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0;
}

.bk-single-contact-cta__content {
  width: min(620px, 100%);
}

.bk-single-contact-cta__eyebrow {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bk-single-contact-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}

.bk-single-contact-cta__intro {
  max-width: 590px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.65;
}

.bk-single-contact-cta .bk-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bk-single-contact-cta .bk-contact-grid > p {
  margin: 0;
}

.bk-single-contact-cta .bk-contact-full {
  grid-column: 1 / -1;
}

.bk-single-contact-cta input[type="text"],
.bk-single-contact-cta input[type="email"],
.bk-single-contact-cta input[type="tel"],
.bk-single-contact-cta textarea,
.bk-single-contact-cta select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  color: #17222d;
  box-shadow: none;
}

.bk-single-contact-cta input[type="text"],
.bk-single-contact-cta input[type="email"],
.bk-single-contact-cta input[type="tel"],
.bk-single-contact-cta select {
  height: 46px;
  padding: 0 14px;
}

.bk-single-contact-cta textarea {
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
}

.bk-single-contact-cta .bk-contact-consent {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.5;
}

.bk-single-contact-cta .bk-contact-submit {
  margin: 16px 0 0;
}

.bk-single-contact-cta input[type="submit"] {
  min-width: 170px;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--bk-red, #e60000);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.bk-single-contact-cta input[type="submit"]:hover {
  background: #b80000;
}

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

@media screen and (max-width: 849px) {
  .single-post .entry-header .entry-title,
  .single-post .entry-header h1.entry-title {
    font-size: 29px !important;
  }

  .single-post .bk-single-content {
    font-size: 15px;
    line-height: 1.78;
  }

  .single-post .bk-single-content h2 {
    font-size: 24px;
  }

  .single-post .bk-single-content h3 {
    font-size: 21px;
  }

  .bk-single-contact-cta__inner {
    width: min(100% - 32px, 1200px);
    padding: 46px 0;
  }
}

@media screen and (max-width: 549px) {
  .single-post .bk-single-author-box {
    padding: 18px !important;
  }

  .single-post .bk-single-author-box .blog-author-image img {
    width: 58px !important;
    height: 58px !important;
  }

  .single-post .bk-comments-area .comment-respond {
    padding: 18px !important;
  }

  .single-post .bk-comments-title,
  .single-post .bk-comment-reply-title {
    font-size: 21px !important;
  }

  .bk-single-contact-cta .bk-contact-grid {
    grid-template-columns: 1fr;
  }

  .bk-single-contact-cta .bk-contact-full {
    grid-column: auto;
  }
}
/*Author Box: social icons*/

.single-post .bk-author-socials {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}

.single-post .bk-author-social {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--bk-navy, #001f3a) !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

.single-post .bk-author-social:hover {
  background: var(--bk-red, #e60000) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

.single-post .bk-author-social svg {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  fill: currentColor !important;
}

.single-post .bk-author-social--instagram svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
}

@media screen and (max-width: 549px) {
  .single-post .bk-author-social {
    width: 28px !important;
    height: 28px !important;
  }

  .single-post .bk-author-social svg {
    width: 14px !important;
    height: 14px !important;
  }
}
