/* ==== FONT CHÍNH TOÀN SITE ==== */
body {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', sans-serif;
  font-weight: 400;
  color: #3a3a3a;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  color: #2b2b2b;
  margin: 1.6em 0 0.8em;
}

h5 {
  color: #1967D2;
  font-weight: bold;
  margin: 1.5em 0 0.5em;
}

ul li > h6 {
  display: inline;
  margin: 0 0.3em 0.2em 0;
  font-weight: 600;
}

/* ==== CƠ BẢN CHO ĐOẠN CHỮ ==== */
p, ul, ol {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1.5em;
  color: inherit;
  font-family: 'Noto Sans JP', sans-serif;
}

ul, ol {
  padding-left: 1.4em;
  margin-bottom: 0.4em;
}

ul li, ol li {
  margin-bottom: 0.4em;
}

/* ==== TABLE ==== */
table {
  border-collapse: collapse;
  width: 100%;
}
table, th, td {
  border: 1px solid #000;
  padding: 8px;
}

/* ==== SINGLE POST BLOCK ==== */
.singlePost .col-lg-9.d-flex.flex-column {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 40px;
  margin-bottom: 32px;
  box-sizing: border-box;
}
.singlePost__content {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  margin: 0;
}
.singlePost .singleTool__content,
.singlePost .content {
  margin: 0 !important;
  padding-top: 0 !important;
}

/* ==== CONTACT SECTION ==== */
.homeContact__main {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  padding: 2rem;
}

/* ==== ẨN TẠM DANH MỤC BLOG CHƯA DÙNG ==== */
a[href*="ai-case-studies"],
a[href*="ai-tools-comparison"] {
  display: none !important;
}

/* ==== TIÊU ĐỀ VÀ ẢNH BÀI VIẾT ==== */
.singlePost__title {
  margin: 8px 0 12px !important;
}
.homeNews__list .post__content .post__title,
.archivePage__posts .post__content .post__title,
.relatedPosts .post__content .post__title {
  margin-top: 10px !important;
}
.footer__posts {
  gap: 6px !important;
}
.footer__title.mb-3.mb-lg-4 {
  margin-bottom: 4px !important;
}
.footer__posts .item {
  padding-bottom: 8px !important;
}

/* ==== BREADCRUMB RÚT NGẮN TÊN DANH MỤC ==== */
.breadcrumbs span.breadcrumb-title {
  display: inline-block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* ==== FAQ ACCORDION MANUAL STYLE ==== */
.faq-section {
  margin-top: 30px;
}
.faq-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #f9fafb;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  text-align: left;
}
.faq-question:hover {
  background-color: #f0f4f8;
}
.faq-item.active .faq-question {
  background-color: #007cba;
  color: #fff;
}
.faq-label {
  flex: 1;
  display: block;
  margin-right: 10px;
}
.faq-icon {
  font-size: 18px;
  transition: transform 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 20px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  color: #444;
  text-align: left;
}

/* ==== DANH SÁCH CÓ DẤU CHẤM BOLD ==== */
ul li > b {
  display: inline-block;
  font-weight: 600;
  margin-right: 0.3em;
  color: #2b2b2b;
}

/* ==== RESPONSIVE (SMARTPHONE) ==== */
@media screen and (max-width: 768px) {
  p, ul, ol {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 1.2em;
  }

  h1, h2, h3, h4, h5, h6 {
    margin: 1.4em 0 0.7em;
  }

  .singlePost__title {
    margin: 6px 0 10px !important;
  }

  .homeNews__list .post__content .post__title,
  .archivePage__posts .post__content .post__title,
  .relatedPosts .post__content .post__title {
    margin-top: 8px !important;
  }

  .footer__posts {
    gap: 8px !important;
  }

  .footer__title.mb-3.mb-lg-4 {
    margin-bottom: 8px !important;
  }

  .footer__posts .item {
    padding-bottom: 6px !important;
  }

  .singlePost .col-lg-9.d-flex.flex-column {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .singlePost__content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  ul li > b {
    display: inline !important;
  }
}

/*——————————————————————
  関連記事 (Blog) → clone hoàn toàn style .tool từ Related ツール
——————————————————————*/

/* 1) Container giữ gap 24px */
body.single-post .sibarRelatedPosts .footer__posts {
  display: flex !important;
  flex-direction: column !important;
  row-gap: 24px !important;     
  margin: 0 !important;
  padding: 0 !important;
}

/* 2) Card wrapper: background, border, shadow, radius, padding y hệt .tool */
body.single-post .sibarRelatedPosts .footer__posts .item {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid #dedede !important;                                    
  box-shadow: 0 0 12px 0 rgba(96,157,249,0.24) !important;                  
  border-radius: 8px !important;                                          
  padding: 8px 12px !important;                                           
  transition: .15s ease-in-out !important;                                
  margin: 0 !important;
  overflow: hidden !important;
}

/* 3) Thumbnail full‑width, 16:9, no extra inset */
body.single-post .sibarRelatedPosts .footer__posts .item__img {
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  overflow: hidden !important;
  border-radius: 4px !important;  
}

body.single-post .sibarRelatedPosts .footer__posts .item__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .15s ease-in-out !important;
}

/* 4) Zoom nhẹ khi hover */
body.single-post .sibarRelatedPosts .footer__posts .item:hover .item__img img {
  transform: scale(1.05) !important;
}

/* 5) Title dưới thumbnail: cách 12px, font + hover chuẩn .tool */
body.single-post .sibarRelatedPosts .footer__posts .item__title {
  margin: 12px 0 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: normal !important;
}

body.single-post .sibarRelatedPosts .footer__posts .item__title a {
  color: #000 !important;
  transition: color .15s ease-in-out !important;
}
body.single-post .sibarRelatedPosts .footer__posts .item__title a:hover {
  color: #3960EF !important;
}
