/* =============================================================
   91LAB — ABOUT PAGE  (91lab-about.css)
   Values copied 1:1 from 91lab-single.css where structure matches.
   ============================================================= */

/* ===========================
   PAGE WRAPPER — same margin as .single-post-wrapper
   =========================== */
.about-page-wrapper {
  margin: 40px 0;
}

/* ===========================
   MARQUEE — copied 1:1 from .single-marquee-container
   =========================== */
.about-marquee-container {
  background: #ff1f8f;
  padding: 6px 0;
  overflow: visible;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  z-index: 1;
  margin-bottom: 40px;
}

.about-marquee-container.about-marquee-footer {
  background: #000;
  margin-bottom: 0;
}

.about-marquee-content {
  position: relative;
  z-index: 2;
  display: flex;
  animation: about-marquee 20s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.about-marquee-text {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  padding: 0 40px;
  display: inline-block;
}

.about-marquee-footer .about-marquee-text {
  color: #ff1f8f !important;
}

.about-marquee-text span {
  margin: 0 15px;
}

@keyframes about-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===========================
   GRID LAYOUT — copied from .single-layout-container
   =========================== */
.about-layout-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* ===========================
   LEFT COLUMN — copied from .single-content-column
   =========================== */
.about-content-column {
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ===========================
   SIDEBAR — sticky, NO negative margin (about design: sidebar
   starts at top aligned with breadcrumb, no marquee in between)
   =========================== */
.about-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  z-index: 3;
}

/* ===========================
   BREADCRUMB — copied from .blog-breadcrumb
   =========================== */
.about-breadcrumb {
  font-size: 14px;
  margin-bottom: 30px;
  font-family: inherit;
}

.about-breadcrumb a {
  color: #ff1f8f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-breadcrumb a:hover {
  color: #000;
}

.about-breadcrumb-sep {
  margin: 0 8px;
  color: #999;
}

.about-breadcrumb-current {
  color: #000;
}

/* ===========================
   HERO LOGO
   =========================== */
.about-hero-logo {
  margin-bottom: 16px;
  text-align: center;
}

.about-logo-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===========================
   SUBTITLE ROW: "CÂU CHUYỆN" + "VỀ CHÚNG TÔI *"
   Star uses same asterisk-crop.svg + filter as single.css tabs
   =========================== */
.about-hero-subtitle {
  display: flex;
  align-items: baseline;
  justify-content: end;
  gap: 12px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.about-subtitle-left {
  font-size: 22px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.3px;
}

.about-subtitle-right {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  background: #a7a9ac;
  padding: 3px 16px;
  position: relative;
  letter-spacing: 0.3px;
}

/* Spinning asterisk — SVG + filter copied from single.css .single-content-tab::before */
.about-subtitle-star {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url(../../template/images/asterisk-crop.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) saturate(100%) invert(28%) sepia(96%) saturate(6539%)
    hue-rotate(320deg) brightness(100%) contrast(105%);
  animation: about-star-spin 3s linear infinite;
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 0; /* hide any text node */
}

@keyframes about-star-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===========================
   PAGE CONTENT — the_content() output
   Typography copied from .blog-post-content in single.css
   =========================== */
.about-page-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.about-page-content p {
  margin-bottom: 20px;
}

.about-page-content h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 30px;
  color: #000;
}

.about-page-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #000;
}

.about-page-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 15px;
  color: #000;
}

.about-page-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 25px 0 12px;
  color: #000;
}

.about-page-content strong {
  font-weight: 700;
  color: #000;
}

.about-page-content a {
  color: #ff1f8f;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.about-page-content a:hover {
  opacity: 0.7;
}

.about-page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
}

.about-page-content blockquote {
  border-left: 4px solid #ff1f8f;
  padding: 20px 30px;
  margin: 30px 0;
  background: #f9f9f9;
  font-style: italic;
  color: #555;
}

.about-page-content ul,
.about-page-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.about-page-content li {
  margin-bottom: 10px;
}

/* ===========================
   SIDEBAR SECTION SPACING
   =========================== */
.about-sidebar-section {
  margin-bottom: 30px;
  background: #80808012;
}

/* ===========================
   SIDEBAR TITLE BAR — copied 1:1 from
   .single-sidebar-content .blog-sidebar-title
   =========================== */
.about-sidebar-title {
  background: #000;
  color: #fff;
  padding: 12px 15px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  text-transform: uppercase;
}

/* ::before — copied 1:1 from .blog-sidebar-title::before */
.about-sidebar-title::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url(../../template/images/asterisk-crop.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  filter: brightness(0) saturate(100%) invert(28%) sepia(96%) saturate(6539%)
    hue-rotate(320deg) brightness(100%) contrast(105%);
  animation: about-star-spin 3s linear infinite;
  flex-shrink: 0;
}

/* Pink title variant for BƯỚC RA NGOÀI */
.about-sidebar-title--pink {
  background: #ff1f8f;
}

.about-sidebar-title--pink::before {
  filter: brightness(0) invert(1); /* white asterisk on pink bg */
}

/* ===========================
   TIMELINE — CỐT MỐC
   Flat items, no container box, thin grey separators
   =========================== */
.about-timeline {
  padding: 0;
  background: #80808012;
}

.about-timeline-year {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  padding: 8px 15px;
  background: #808080a0;
}

.about-timeline-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #333;
  padding: 12px 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-line; /* Giữ nguyên xuống dòng từ editor */
  margin-bottom: 0 !important;
}

.about-timeline-desc strong {
  color: #ff1f8f;
  font-weight: 700;
}

.about-timeline-sub {
  font-size: 11.5px;
  color: #888;
  line-height: 1.4;
  margin: 4px 0 0;
}

/* ===========================
   BƯỚC RA NGOÀI — PULL QUOTE
   Big type floats left, body text wraps beside it
   =========================== */
.about-quote-block {
  padding: 14px;
  overflow: hidden; /* contain the float */
  background: #ff1f8f;
}

.about-quote-highlight {
  float: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 8px;
  margin-bottom: 4px;
}

.about-quote-big {
  display: block;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.05;
  font-size: 36px;
}

.about-quote-big--pink {
  font-size: 54px;
  line-height: 0.9;
}

.about-quote-body {
  font-size: 11.5px;
  line-height: 1.55;
  color: #666;
  margin: 0 0 6px;
  white-space: pre-line; /* Giữ nguyên xuống dòng */
}

.about-quote-footer {
  font-size: 11.5px;
  line-height: 1.5;
  color: #666;
  margin: 0;
  font-style: italic;
  white-space: pre-line; /* Giữ nguyên xuống dòng */
}

/* ===========================
   FROM THE LAB — 2×2 grid
   Container bg + border copied from .blog-sidebar-lab-grid:
   bg #f5f5f5, border 1px solid #787878, padding 15px
   =========================== */
.about-lab-grid {
  background: #f5f5f5;
  border-top: none;
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-lab-item {
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.about-lab-item:hover {
  transform: translateY(-2px);
}

.about-lab-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  transition: box-shadow 0.3s ease;
}

.about-lab-item:hover img {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.about-lab-placeholder {
  background: #c8c8c8;
  border-radius: 6px;
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* ===========================
   BOTTOM NAV BAR
   =========================== */
.about-bottom-nav {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #000;
  padding: 16px 0;
}

.about-bottom-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-bottom-nav-label {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-bottom-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.about-bottom-nav-question {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.about-bottom-nav-link {
  color: #ff1f8f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.about-bottom-nav-link:hover {
  opacity: 0.7;
}

/* =============================================================
   📱 RESPONSIVE SIDEBAR — About page (mirror of single)
   Floating button bên phải, sidebar xổ từ phải, close btn,
   click-outside đóng, ESC đóng.  Selector prefix: about-sidebar-*
   ============================================================= */

/* --- Floating toggle button (ẩn mặc định, JS thêm .show) --- */
.about-sidebar-floating-toggle {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #ff1f8f;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 998;
  display: none; /* ẩn mặc định */
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.about-sidebar-floating-toggle:hover {
  background: #ff1f8f;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.about-sidebar-floating-toggle.show {
  display: flex;
}

/* ẩn button khi sidebar đang mở */
.about-sidebar-floating-toggle.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

/* --- Nút đóng bên trong sidebar --- */
.about-sidebar-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: #ff1f8f;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* JS set display:flex khi cần */
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.about-sidebar-close:hover {
  background: #ff1f8f;
  transform: rotate(90deg);
}

/* =============================================================
   RESPONSIVE — breakpoints
   ============================================================= */

/* ---- 1024px: sidebar chuyển thành slide-out từ phải ---- */
@media (max-width: 1024px) {
  /* layout về 1 cột */
  .about-layout-container {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  /* floating button hiện */
  .about-sidebar-floating-toggle.show {
    display: flex;
  }

  /* sidebar → fixed panel bên phải, ẩn ngoài viewport */
  .about-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -340px !important; /* ẩn bên phải */
    width: 320px !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 999 !important;
    background: #f5f5f5 !important;
    transition: right 0.3s ease !important;
    padding: 60px 20px 20px 20px !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
    align-self: auto !important;
  }

  /* mở sidebar */
  .about-sidebar.active {
    right: 0 !important;
  }

  /* hiện nút đóng */
  .about-sidebar-close {
    display: flex !important;
  }

  .about-quote-big {
    font-size: 30px;
  }

  .about-quote-big--pink {
    font-size: 44px;
  }
}

/* ---- tablet: nâng button lên cao hơn để tránh bị che ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .about-sidebar-floating-toggle {
    top: 25%;
  }
}

/* ---- 768px: mobile layout + sidebar rộng hơn ---- */
@media (max-width: 768px) {
  .about-sidebar-floating-toggle {
    right: 15px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  /* sidebar rộng 90%, max 350px */
  .about-sidebar {
    right: -100% !important;
    width: 90% !important;
    max-width: 350px !important;
  }

  .about-hero-subtitle {
    flex-wrap: wrap;
    gap: 8px;
  }

  .about-subtitle-left,
  .about-subtitle-right {
    font-size: 18px;
  }

  .about-quote-big {
    font-size: 28px;
  }

  .about-quote-big--pink {
    font-size: 40px;
  }

  .about-marquee-text {
    font-size: 14px;
    padding: 0 30px;
  }

  .about-bottom-nav-inner {
    padding: 0 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .about-page-content {
    font-size: 15px;
  }
}

/* ---- 480px: mobile nhỏ ---- */
@media (max-width: 480px) {
  .about-sidebar-floating-toggle {
    right: 12px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  /* sidebar gần full width */
  .about-sidebar {
    right: -100% !important;
    width: 85% !important;
    max-width: 300px !important;
  }

  .about-subtitle-left,
  .about-subtitle-right {
    font-size: 16px;
  }

  .about-quote-big {
    font-size: 24px;
  }

  .about-quote-big--pink {
    font-size: 34px;
  }

  .about-marquee-text {
    font-size: 12px;
    padding: 0 20px;
  }

  .about-page-content {
    font-size: 15px;
  }

  .about-page-content h1 {
    font-size: 28px;
  }
}

/* =============================================================
   SCROLLBAR — sidebar panel (webkit)
   ============================================================= */
.about-sidebar::-webkit-scrollbar {
  width: 8px;
}

.about-sidebar::-webkit-scrollbar-track {
  background: #e0e0e0;
}

.about-sidebar::-webkit-scrollbar-thumb {
  background: #ff1f8f;
}

.about-sidebar::-webkit-scrollbar-thumb:hover {
  background: #ff1f8f;
}

/* ===========================
   PODCAST SECTION
   =========================== */
.about-podcast-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-podcast-item {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.about-podcast-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-podcast-question {
  font-size: 13px;
  line-height: 1.55;
  color: #333;
  margin-bottom: 8px;
  font-weight: 600;
  white-space: pre-line; /* Giữ nguyên xuống dòng */
}

.about-podcast-review {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  font-style: italic;
  white-space: pre-line; /* Giữ nguyên xuống dòng */
}

.about-podcast-question strong,
.about-podcast-review strong {
  color: #ff1f8f;
  font-weight: 700;
}
