/**
 * Lời giới thiệu - UI giống web gốc borealisrecords.com
 * Layout: tabs bên trái + nội dung bên phải, click tab scroll tới H2/H3
 */

/* Import Oswald font (dùng cho h2, h3) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

/* Container chính */
.section__desc.home-intro-about {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Tiêu đề section */
.section__desc.home-intro-about .intro-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.6rem);
  color: #CB461B;
  margin: 0 0 1rem;
  padding: 0;
}

/* Hàng hai cột */
.intro-tabs-row {
  display: flex;
  flex-wrap: wrap;
}

/* Cột TOC (tabs) bên trái */
.intro-toc-col {
  padding-right: 0;
}

@media (min-width: 992px) {
  .intro-toc-col {
    padding-right: 15px;
  }
}

.intro-toc {
  background: #1A1D23;
  border-top-left-radius: 6px;
  padding: 15px 0 15px 15px;
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .intro-toc {
    padding: 20px;
    max-height: 710px;
    overflow-y: auto;
    margin-bottom: 0;
  }
}

.intro-toc-label {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #F2F3F3;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.intro-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro-toc-item {
  margin: 0;
  padding: 0;
}

.intro-toc-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #F2F3F3;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.intro-toc-link:hover {
  background: rgba(1, 178, 67, 0.15);
  color: #CB461B;
  text-decoration: none;
}

.intro-toc-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #CB461B;
  font-weight: 600;
}

.intro-toc-h3 .intro-toc-link {
  padding-left: 24px;
  font-size: 13px;
  color: #b8bcc4;
}

.intro-toc-h3 .intro-toc-link:hover,
.intro-toc-h3 .intro-toc-link.active {
  color: #CB461B;
}

/* Khi không có TOC - content full width */
.intro-no-toc .intro-content-col {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Cột nội dung bên phải */
.intro-content-col {
  padding-left: 0;
}

@media (min-width: 992px) {
  .intro-content-col {
    padding-left: 0;
  }
}

/* Nội dung - dark theme như borealisrecords.com */
.section__desc .content.intro,
.section__desc.home-intro-about .content {
  padding: 20px;
  position: relative;
  background: #1A1D23;
  max-height: 710px;
  overflow-y: auto;
  font-style: normal;
  font-weight: normal;
  font-size: 15px;
  line-height: 25px;
  color: #F2F3F3;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
  padding-top: 20px;
}

@media (min-width: 992px) {
  .section__desc.home-intro-about .content {
    border-top-left-radius: 0;
  }
}

/* Scrollbar styling - giống web gốc */
.section__desc .content.intro::-webkit-scrollbar,
.section__desc.home-intro-about .content::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}

.section__desc .content.intro::-webkit-scrollbar-thumb,
.section__desc.home-intro-about .content::-webkit-scrollbar-thumb {
  background: #494e5f;
  border-radius: 12px;
}

.section__desc .content.intro::-webkit-scrollbar-track,
.section__desc.home-intro-about .content::-webkit-scrollbar-track {
  background: #191920;
}

/* Typography - h2, h3 */
.section__desc .content h2,
.section__desc .content h3,
.section__desc.home-intro-about .content h2,
.section__desc.home-intro-about .content h3 {
  font-family: "Oswald", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  color: #F2F3F3;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.section__desc .content h2,
.section__desc.home-intro-about .content h2 {
  font-size: clamp(1.3rem, 2.5vw + 0.5rem, 1.8rem);
}

.section__desc .content h3,
.section__desc.home-intro-about .content h3 {
  font-size: clamp(1.1rem, 2vw + 0.4rem, 1.6rem);
}

/* Hình ảnh */
.section__desc .content figure,
.section__desc .content img,
.section__desc.home-intro-about .content figure,
.section__desc.home-intro-about .content img {
  max-width: 100%;
  height: auto;
}

/* Link */
.section__desc .content a,
.section__desc.home-intro-about .content a {
  color: #009B3A !important;
  text-decoration: none;
}

.section__desc .content a:hover,
.section__desc.home-intro-about .content a:hover {
  color: #CB461B !important;
  text-decoration: underline;
}

/* Strong/Bold - xanh lá như web gốc */
.section__desc .content strong,
.section__desc.home-intro-about .content strong {
  color: #008000 !important;
}

/* Span - màu trắng */
.section__desc .content span,
.section__desc.home-intro-about .content span {
  color: #F2F3F3 !important;
}

/* Danh sách */
.section__desc .content ul,
.section__desc.home-intro-about .content ul {
  padding-left: 15px;
  margin-top: 0;
  margin-bottom: 1rem;
}

.section__desc .content ul li,
.section__desc.home-intro-about .content ul li {
  list-style-type: disc;
  margin-bottom: 0.25rem;
}

.section__desc .content ul ul,
.section__desc.home-intro-about .content ul ul {
  margin-bottom: 0;
}

/* Caption ảnh */
.section__desc .content .wp-caption-text,
.section__desc.home-intro-about .content .wp-caption-text {
  text-align: center;
  font-style: italic;
  font-size: 90%;
  color: #6c757d;
}

/* Background trang trí góc phải - giống borealisrecords.com */
.section__desc .content:after,
.section__desc.home-intro-about .content:after {
  content: '';
  background-image: url('https://static.borealisrecords.com/images/bg-after-desc.png');
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 192px;
  height: 223px;
  pointer-events: none;
}

/* Paragraph */
.section__desc .content p,
.section__desc.home-intro-about .content p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Table */
.section__desc .content table,
.section__desc.home-intro-about .content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.section__desc .content table td,
.section__desc .content table th,
.section__desc.home-intro-about .content table td,
.section__desc.home-intro-about .content table th {
  padding: 8px 12px;
  border: 1px solid #3a3f4a;
  color: #F2F3F3;
}

/* Scrollbar cho TOC */
.intro-toc::-webkit-scrollbar {
  width: 4px;
}

.intro-toc::-webkit-scrollbar-thumb {
  background: #494e5f;
  border-radius: 12px;
}

.intro-toc::-webkit-scrollbar-track {
  background: #191920;
}

/* Responsive - mobile */
@media screen and (max-width: 991px) {
  .intro-toc {
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
    max-height: 200px;
    overflow-y: auto;
  }

  .section__desc .content.intro,
  .section__desc.home-intro-about .content {
    padding: 1.5rem 15px !important;
    max-height: none;
    overflow-y: visible;
    border-radius: 0 0 6px 6px !important;
  }

  .section__desc .content:after,
  .section__desc.home-intro-about .content:after {
    width: 120px;
    height: 140px;
    background-size: contain;
  }
}
