/* ============================================================
   brand.css — CSS riêng cho trang Brand
   Chỉ load khi xem trang chi tiết brand
   ============================================================ */

.brand-wrap {
  padding-top: 32px;
}
.brand-wrap.brand-wrap-body {
  padding-top: 40px;
  padding-bottom: 64px;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.brand-wrap > .bc {
  margin-bottom: 20px;
}

/* ── Header: logo + label + title ─────────────────────────── */
.brand-header {
  display: flex;
  align-items: center;
  gap: 17.6px;
  margin-bottom: 17.6px;
}
.brand-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1.5px solid var(--text);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-logo.brand-logo-icon {
  font-size: 28.8px;
  background: #f8f9fa;
}
.brand-header .ph-label {
  color: var(--green);
  margin-bottom: 6px;
}
.brand-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}

/* ── Description + count + official link ──────────────────── */
.brand-wrap .ph-desc {
  margin-top: 4px;
}
.brand-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.brand-wrap .ph-count {
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.brand-official-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: 6px 14px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.brand-official-link svg {
  width: 14px;
  height: 14px;
}
.brand-official-link:hover {
  background: var(--green);
  color: #fff;
}

/* ── Quick Answer / About block (AEO) ─────────────────────── */
.brand-about {
  border: 1.5px solid var(--text);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 22px;
  background: #fff;
}
.brand-about-label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--text);
}
.brand-about p {
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted2);
}
.brand-about p:last-child {
  margin-bottom: 0;
}

/* ── Type filter tabs (All / Tutorials / Compares / News) ─── */
.brand-wrap .stabs {
  margin-top: 24px;
}

/* ── FAQ (AEO) ─────────────────────────────────────────────── */
.brand-faq-wrap {
  padding-top: 0;
  padding-bottom: 64px;
}
.brand-faq-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px;
}
.brand-faq-list {
  display: flex;
  flex-direction: column;
  gap: 9.6px;
}
.brand-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  background: #fff;
}
.brand-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-faq-item summary::-webkit-details-marker {
  display: none;
}
.brand-faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--muted2);
  margin-left: 12px;
  flex-shrink: 0;
}
.brand-faq-item[open] summary::after {
  content: "−";
}
.brand-faq-item p {
  margin: 10px 0 0;
  color: var(--muted2);
  line-height: 1.6;
  font-size: 15px;
}

@media (max-width: 560px) {
  .brand-logo {
    width: 52px;
    height: 52px;
  }
  .brand-title {
    font-size: 24px;
  }
  .brand-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
