/* ===== HƯỚNG DẪN DETAIL PAGE ===== */

.guide-detail-section {
  padding: 80px 0 50px;
  background: #f0f4fa;
}

/* Title */
.guide-detail-title {
  text-align: center;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #073380, #1a5cb5);
  padding: 18px 30px;
  border-radius: 12px;
}
.guide-detail-title h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
}

/* Layout with sidebar */
.guide-detail-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Reuse sidebar from huongdan-page */
.guide-detail-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 80px;
  margin-top: 94px;
  max-height: calc(100vh - 100px);
}
.guide-detail-sidebar ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
.guide-detail-sidebar ul li {
  border-bottom: 1px solid #e8ecf0;
}
.guide-detail-sidebar ul li:last-child {
  border-bottom: none;
}
.guide-detail-sidebar ul li a {
  display: block;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #073380;
  transition: all 0.2s;
  text-decoration: none;
}
.guide-detail-sidebar ul li a:hover {
  background: #e8f0fe;
  color: #1a5cb5;
}
.guide-detail-sidebar ul li a.active {
  background: #073380;
  color: #fff;
  font-weight: 700;
}
.guide-detail-sidebar ul li a.active:hover {
  background: #0a4399;
  color: #fff;
}

/* Sidebar submenu */
.guide-detail-sidebar .sidebar-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.guide-detail-sidebar .sidebar-submenu-toggle::after {
  content: '\25BC';
  font-size: 0.6rem;
  transition: transform 0.2s;
}
.guide-detail-sidebar .sidebar-submenu-toggle.open::after {
  transform: rotate(180deg);
}
.guide-detail-sidebar .sidebar-submenu {
  display: none;
  background: #f5f7fa;
}
.guide-detail-sidebar .sidebar-submenu.open {
  display: block;
}
.guide-detail-sidebar .sidebar-submenu li {
  border-bottom: 1px solid #e8ecf0;
}
.guide-detail-sidebar .sidebar-submenu li:last-child {
  border-bottom: none;
}
.guide-detail-sidebar .sidebar-submenu li a {
  padding: 8px 16px 8px 28px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #555;
}
.guide-detail-sidebar .sidebar-submenu li a:hover {
  background: #e8f0fe;
  color: #073380;
}
.guide-detail-sidebar .sidebar-submenu li a.active {
  background: #1a5cb5;
  color: #fff;
  font-weight: 600;
}

/* Search bar */
.guide-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.guide-search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #d0d7e3;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.guide-search-bar input:focus {
  border-color: #073380;
}
.guide-search-bar button {
  padding: 10px 24px;
  background: #073380;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.guide-search-bar button:hover {
  background: #0a4399;
}

/* Title with breadcrumb inline */
.guide-detail-title--inline {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 16px 30px;
}
.guide-detail-title--inline h1 {
  font-size: 2rem;
}
.guide-detail-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

/* Feature grid (Sản phẩm cards) */
.guide-breadcrumb {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}
.guide-feature-title {
  font-size: 2rem;
  font-weight: 900;
  color: #073380;
  margin-bottom: 28px;
  text-align: center;
}
.guide-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.guide-feature-card {
  display: block;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid #d0d7e3;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #073380;
  text-decoration: none;
  transition: all 0.2s;
}
.guide-feature-card:hover {
  border-color: #073380;
  background: #e8f0fe;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7,51,128,0.1);
}

/* Main content area */
.guide-detail-main {
  flex: 1;
  min-width: 0;
}

/* Video section */
.guide-video-wrap {
  margin-bottom: 40px;
}
.guide-video-wrap h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}
.guide-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}
.guide-video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Content section */
.guide-content-wrap {
  margin-bottom: 30px;
}
.guide-content-wrap h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #073380;
  margin-bottom: 16px;
  text-transform: uppercase;
  text-align: left;
}
.guide-doc-embed {
  width: 100%;
  height: 2000px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.guide-doc-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* YouTube Shorts (video dọc) */
.guide-video-shorts {
  max-width: 350px;
  margin: 0 auto;
  padding-bottom: 0;
  height: 620px;
}

/* QR row (giống demo page) */
.guide-qr-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 24px 0 36px;
}
.guide-qr-item {
  text-align: center;
}
.guide-qr-placeholder {
  width: 200px;
  height: 200px;
  background: #e8ecf0;
  border-radius: 14px;
  margin-bottom: 16px;
}
.guide-qr-item p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #073380;
}

/* Inline content (không dùng Google Docs embed) */
.guide-content-inline {
  text-align: center;
}
.guide-content-inline h2 {
  text-align: left;
  font-size: 1.2rem;
  font-weight: 900;
}
.guide-content-inline h3 {
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  margin: 28px 0 12px;
}
.guide-content-inline p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
}
.guide-img-center {
  text-align: center;
  margin: 24px 0;
}
.guide-img-center img {
  max-width: 500px;
  width: 100%;
  display: inline-block;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.guide-img-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 24px 0;
}
.guide-img-row img {
  display: inline-block;
  max-width: 280px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* Back link */
.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #073380;
  text-decoration: none;
  transition: color 0.2s;
}
.guide-back:hover {
  color: #1a5cb5;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .guide-detail-layout {
    flex-direction: column;
  }
  .guide-detail-sidebar {
    width: 100%;
    position: static;
    display: flex;
    overflow-x: auto;
  }
  .guide-detail-sidebar ul {
    display: flex;
    width: 100%;
  }
  .guide-detail-sidebar ul li {
    border-bottom: none;
    border-right: 1px solid #e8ecf0;
    flex-shrink: 0;
  }
  .guide-detail-sidebar ul li a {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .guide-detail-section { padding: 70px 12px 30px; }
  .guide-detail-title h1 { font-size: 1.3rem; }
  .guide-doc-embed { height: 1200px; }
  .guide-feature-grid { grid-template-columns: 1fr; }
  .guide-feature-title { font-size: 1.4rem; }
  .guide-qr-row { flex-direction: column; align-items: center; gap: 30px; }
  .guide-img-row { flex-direction: column; align-items: center; }
}
