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

.huongdan-section {
  padding: 80px 0 50px;
  background: #f0f4fa;
  min-height: 80vh;
}

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

/* Layout */
.huongdan-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Sidebar */
.huongdan-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
}
.huongdan-sidebar ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
.huongdan-sidebar ul li {
  border-bottom: 1px solid #e8ecf0;
}
.huongdan-sidebar ul li:last-child {
  border-bottom: none;
}
.huongdan-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;
}
.huongdan-sidebar ul li a:hover {
  background: #e8f0fe;
  color: #1a5cb5;
}
.huongdan-sidebar ul li:first-child a {
  background: #073380;
  color: #fff;
  font-weight: 700;
}
.huongdan-sidebar ul li:first-child a:hover {
  background: #0a4399;
  color: #fff;
}

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

/* Cards grid */
.huongdan-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Card */
.huongdan-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.huongdan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(7,51,128,0.15);
}
.huongdan-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #e8ecf0;
}
.huongdan-card-label {
  text-align: center;
  padding: 12px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #073380;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 1024px) {
  .huongdan-layout {
    flex-direction: column;
  }
  .huongdan-sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
  }
  .huongdan-sidebar ul {
    display: flex;
    width: 100%;
  }
  .huongdan-sidebar ul li {
    border-bottom: none;
    border-right: 1px solid #e8ecf0;
    flex-shrink: 0;
  }
  .huongdan-sidebar ul li a {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  .huongdan-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .huongdan-section { padding: 70px 10px 30px; }
  .huongdan-title h1 { font-size: 1.1rem; }
  .huongdan-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .huongdan-card-label {
    font-size: 0.75rem;
    padding: 8px 6px;
  }
}

@media (max-width: 480px) {
  .huongdan-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
