/* blog detail (single.php): post header, table of contents + article body, related posts */
.blog_detail_head {
  padding: 23.4rem 0 0;
  background: linear-gradient(180deg, #eaf1f9 1.2rem, rgba(234, 241, 249, 0) 76.3rem) no-repeat;
}
.blog_detail_head .text {
  text-align: center;
}
.blog_detail_head h1 {
  max-width: 100rem;
  margin: 0 auto;
  color: var(--title);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 4.8rem;
  line-height: 5.8rem;
}
.blog_detail_head .desc {
  max-width: 84rem;
  margin: 2.6rem auto 0;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 2.8rem;
}
.blog_detail_head .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem 12.2rem;
  margin-top: 3rem;
}
.blog_detail_head .meta li {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  color: var(--text);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 2rem;
}
.blog_detail_head .meta .icon {
  flex-shrink: 0;
  display: block;
  width: 4.05rem;
  height: 4.05rem;
  border-radius: 50%;
  background-color: #182b85;
}
.blog_detail_head .meta .icon img {
  display: block;
  width: 100%;
  height: 100%;
}
.blog_detail_head .meta .breadcrumbs {
  display: flex;
  gap: 0.9rem;
}
.blog_detail_head .meta .breadcrumbs a {
  transition: all 0.3s;
}
.blog_detail_head .meta .breadcrumbs a:hover {
  color: var(--primary);
}
.blog_detail_head .thumb {
  height: 64rem;
  margin-top: 14.4rem;
  border-radius: 2.4rem;
  box-shadow: 0 1rem 2rem rgba(188, 188, 188, 0.35);
}

.blog_detail_main {
  padding: 9rem 0 15.8rem;
}
.blog_detail_main .content {
  display: flex;
  align-items: stretch;
  gap: 7.1rem;
}
.blog_detail_main .side {
  flex-shrink: 0;
  width: 41.7rem;
}
.blog_detail_main .side .sticky {
  position: sticky;
  top: 12rem;
}
.blog_detail_main .toc strong {
  display: block;
  color: var(--title);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 2rem;
}
.blog_detail_main .toc ul {
  margin-top: 2.7rem;
}
.blog_detail_main .toc li + li {
  margin-top: 0.7rem;
}
.blog_detail_main .toc a {
  display: block;
  padding: 1.1rem 1.8rem;
  color: rgba(16, 20, 38, 0.75);
  font-size: 1.8rem;
  line-height: 2.6rem;
  border-radius: 2.4rem;
  transition: all 0.3s;
}
.blog_detail_main .toc a:hover {
  color: var(--primary);
}
.blog_detail_main .toc li.active a {
  color: var(--title);
  font-weight: 500;
  background-color: #f5f5f5;
}
.blog_detail_main .brand {
  margin-top: 3.5rem;
  padding: 3rem 0 0 0.9rem;
  border-top: 1px solid #ebebee;
}
.blog_detail_main .brand img {
  display: block;
  width: auto;
  height: 6.9rem;
}
.blog_detail_main .article {
  flex: 1;
  min-width: 0;
}

/* post content (the_content) */
.post_content {
  color: var(--text);
  font-size: 1.8rem;
  line-height: 3rem;
}
.post_content > *:first-child {
  margin-top: 0;
}
.post_content .lead {
  color: var(--title);
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 3.8rem;
}
.post_content p + p {
  margin-top: 3rem;
}
.post_content h2 {
  color: var(--title);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 3.4rem;
  margin: 5rem 0 1.3rem;
  scroll-margin-top: 12rem;
}
.post_content h3 {
  color: var(--title);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 3rem;
  margin: 2.4rem 0 0.6rem;
}
.post_content a {
  color: var(--blue);
  text-decoration: underline;
}
.post_content strong {
  color: var(--title);
  font-weight: 600;
}
.post_content ul {
  margin-top: 0.6rem;
}
.post_content ul li {
  position: relative;
  padding-left: 1.9rem;
}
.post_content ul li::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: var(--text);
}
.post_content blockquote {
  margin: 3.5rem 0 6.4rem;
  padding: 2.8rem 4.4rem 2.8rem 3rem;
  font-family: 'Archivo', sans-serif;
  line-height: 3.2rem;
  border-left: 3px solid var(--secondary);
  border-radius: 0 1.6rem 1.6rem 0;
  background-color: #f2f5fa;
}
.post_content blockquote strong {
  color: #0a0c1b;
  margin-right: 0.5rem;
}
.post_content blockquote p + p {
  margin-top: 1rem;
}
.post_content .table_wrap {
  margin: 4.5rem 0 6.2rem;
  overflow-x: auto;
  border-radius: 1.6rem;
  border: 1px solid #e4e9f2;
}
.post_content table {
  width: 100%;
  min-width: 56rem;
  border-collapse: collapse;
  text-align: left;
}
.post_content th {
  height: 5.2rem;
  padding: 0 1.9rem;
  color: #182b85;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  background-color: #f2f5fa;
}
.post_content td {
  height: 5.76rem;
  padding: 0 1.9rem;
  color: #0a0c1b;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 2rem;
  border-top: 1px solid #e4e9f2;
}
.post_content th:first-child,
.post_content td:first-child {
  width: 24%;
  padding-left: 2.4rem;
}
.post_content th:nth-child(2),
.post_content td:nth-child(2) {
  width: 25%;
}
.post_content th:nth-child(3),
.post_content td:nth-child(3) {
  width: 25%;
}

.blog_detail_main .tags {
  display: flex;
  align-items: center;
  gap: 1.6rem 4.2rem;
  margin-top: 6.5rem;
  padding-top: 2.1rem;
  border-top: 1px solid rgba(25, 25, 30, 0.15);
}
.blog_detail_main .tags strong {
  color: #000;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 2.4rem;
}
.blog_detail_main .tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
}
.blog_detail_main .tags a {
  display: block;
  min-width: 14.4rem;
  padding: 0 1.6rem;
  text-align: center;
  color: #4c4c4c;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 3.4rem;
  border-radius: 0.56rem;
  background-color: #f8f8f9;
  transition: all 0.3s;
}
.blog_detail_main .tags a:hover {
  color: #fff;
  background-color: var(--primary);
}

.blog_detail_related {
  padding: 15.5rem 0 15.8rem;
  background-color: var(--bg);
}
.blog_detail_related .head .btn {
  margin-bottom: 0.1rem;
}
.blog_detail_related .swiper_content {
  margin-top: 4.5rem;
}
.blog_detail_related .swiper_btns {
  justify-content: center;
  gap: 2.8rem;
  margin-top: 3.1rem;
}
.blog_detail_related .swiper_btns div {
  width: 5.8rem;
  height: 5.8rem;
}
.blog_detail_related .post_card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid #ebeef3;
  background-color: #fff;
  transition: all 0.3s;
}
.blog_detail_related .post_card .img {
  flex-shrink: 0;
  height: 28.3rem;
  border-radius: 1.2rem;
}
.blog_detail_related .post_card .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 3.1rem 3rem 2.8rem;
}
.blog_detail_related .post_card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
  font-family: 'Archivo', sans-serif;
  font-size: 1.6rem;
  line-height: 2rem;
  text-transform: uppercase;
}
.blog_detail_related .post_card .meta .cat {
  color: var(--blue);
  font-weight: 600;
}
.blog_detail_related .post_card .meta .date {
  color: #4f4f4f;
  letter-spacing: 0.03em;
}
.blog_detail_related .post_card .title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 36rem;
  color: #0a0a0a;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 3.2rem;
  margin-top: 1.1rem;
  transition: all 0.3s;
}
.blog_detail_related .post_card .desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 2.8rem;
  margin-top: 2.2rem;
}
.blog_detail_related .post_card .link {
  margin-top: auto;
  padding-top: 3.8rem;
}
.blog_detail_related .post_card:hover {
  border-color: #fff;
  box-shadow: 0 1rem 3rem rgba(23, 42, 133, 0.08);
}
.blog_detail_related .post_card:hover .img img {
  transform: scale(1.04);
}
.blog_detail_related .post_card:hover .title {
  color: var(--primary);
}
.blog_detail_related .post_card:hover .btn_i {
  color: var(--secondary);
}
.blog_detail_related .post_card:hover .btn_i::after {
  transform: translateX(30%);
}

@media screen and (min-width: 769px) and (max-width: 1220px) {
  .blog_detail_main .content {
    gap: 5rem;
  }
  .blog_detail_main .side {
    width: 34rem;
  }
  .blog_detail_related .post_card .info {
    padding: 2.6rem 2.4rem;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .blog_detail_head h1 {
    font-size: 4.2rem;
    line-height: 1.3;
  }
  .blog_detail_head .meta {
    gap: 1.6rem 6rem;
  }
  .blog_detail_head .thumb {
    height: auto;
    aspect-ratio: 1380 / 640;
    margin-top: 8rem;
  }
  .blog_detail_main .side {
    width: 30rem;
  }
  .blog_detail_related .post_card .img {
    height: auto;
    aspect-ratio: 440 / 283;
  }
}
@media screen and (min-width: 769px) and (max-width: 896px) {
  .blog_detail_head h1 {
    font-size: 3.6rem;
  }
  .blog_detail_main .content {
    flex-direction: column;
  }
  .blog_detail_main .side {
    width: 100%;
  }
  .blog_detail_main .side .sticky {
    position: static;
  }
  .blog_detail_main .brand {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .blog_detail_head {
    padding-top: 110px;
    background: linear-gradient(180deg, #eaf1f9 0, rgba(234, 241, 249, 0) 420px) no-repeat;
  }
  .blog_detail_head h1 {
    font-size: 24px;
    line-height: 1.3;
  }
  .blog_detail_head .desc {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
  }
  .blog_detail_head .meta {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    margin: 20px auto 0;
  }
  .blog_detail_head .meta li {
    gap: 10px;
    font-size: 14px;
  }
  .blog_detail_head .meta .icon {
    width: 30px;
    height: 30px;
  }
  .blog_detail_head .thumb {
    height: auto;
    aspect-ratio: 1380 / 640;
    margin-top: 30px;
    border-radius: 12px;
  }
  .blog_detail_main {
    padding: 36px 0 60px;
  }
  .blog_detail_main .content {
    flex-direction: column;
    gap: 30px;
  }
  .blog_detail_main .side {
    width: 100%;
  }
  .blog_detail_main .side .sticky {
    position: static;
    padding: 16px;
    border-radius: 12px;
    background-color: #f8f9fb;
  }
  .blog_detail_main .toc strong {
    font-size: 15px;
  }
  .blog_detail_main .toc ul {
    margin-top: 10px;
  }
  .blog_detail_main .toc li + li {
    margin-top: 2px;
  }
  .blog_detail_main .toc a {
    font-size: 14px;
    line-height: 20px;
    padding: 8px 12px;
  }
  .blog_detail_main .toc li.active a {
    background-color: #fff;
  }
  .blog_detail_main .brand {
    display: none;
  }
  .post_content {
    font-size: 14px;
    line-height: 1.7;
  }
  .post_content .lead {
    font-size: 17px;
    line-height: 1.55;
  }
  .post_content p + p {
    margin-top: 14px;
  }
  .post_content h2 {
    font-size: 20px;
    line-height: 1.35;
    margin: 30px 0 8px;
    scroll-margin-top: 90px;
  }
  .post_content h3 {
    font-size: 17px;
    line-height: 1.4;
    margin: 18px 0 6px;
  }
  .post_content ul li {
    padding-left: 16px;
  }
  .post_content ul li::before {
    left: 4px;
    top: 10px;
    width: 4px;
    height: 4px;
  }
  .post_content blockquote {
    margin: 24px 0 30px;
    padding: 16px 18px;
    line-height: 1.7;
    border-radius: 0 10px 10px 0;
  }
  .post_content .table_wrap {
    margin: 24px 0 30px;
    border-radius: 10px;
  }
  .post_content table {
    min-width: 520px;
  }
  .post_content th {
    height: 42px;
    white-space: nowrap;
    padding: 0 12px;
    font-size: 12px;
  }
  .post_content td {
    height: 44px;
    white-space: nowrap;
    padding: 0 12px;
    font-size: 13px;
  }
  .post_content th:first-child,
  .post_content td:first-child {
    padding-left: 14px;
  }
  .blog_detail_main .tags {
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 36px;
    padding-top: 18px;
  }
  .blog_detail_main .tags strong {
    font-size: 15px;
  }
  .blog_detail_main .tags ul {
    gap: 8px;
  }
  .blog_detail_main .tags a {
    min-width: 0;
    font-size: 13px;
    line-height: 30px;
    padding: 0 14px;
  }
  .blog_detail_related {
    padding: 50px 0 60px;
  }
  .blog_detail_related .swiper_content {
    margin-top: 14px;
  }
  .blog_detail_related .swiper_btns {
    margin-top: 20px;
    gap: 14px;
  }
  .blog_detail_related .swiper_btns div {
    width: 40px;
    height: 40px;
  }
  .blog_detail_related .post_card {
    border-radius: 12px;
  }
  .blog_detail_related .post_card .img {
    height: auto;
    aspect-ratio: 440 / 283;
    border-radius: 12px;
  }
  .blog_detail_related .post_card .info {
    padding: 18px 18px 20px;
  }
  .blog_detail_related .post_card .meta {
    font-size: 12px;
    line-height: 18px;
    gap: 4px 10px;
  }
  .blog_detail_related .post_card .title {
    max-width: none;
    font-size: 18px;
    line-height: 1.4;
    margin-top: 8px;
  }
  .blog_detail_related .post_card .desc {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
  }
  .blog_detail_related .post_card .link {
    padding-top: 18px;
  }
}
