/* =========================
   ROOT VARIABLES
   ========================= */
:root {
  --brand: #EFBA32;
  --muted: #6b6b6b;
  --panel: #fafafa;
  --border: #e6e6e6;
  --radius: 12px;
  --max-width: 1200px;
}

/* =========================
   PAGE WRAPPER
   ========================= */
.hc-page {
  padding: 48px 4%;
  max-width: var(--max-width);
  margin: 0 auto;
  font-family: var(--body-font);
  color: #111;
}

/* =========================
   BREADCRUMB
   ========================= */
.hc-breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.hc-breadcrumb a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

/* =========================
   HEADER
   ========================= */
.hc-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 30px;
}

.hc-header h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.hc-sub {
  color: var(--muted);
  font-size: 1rem;
}

/* =========================
   CONTROLS (Tabs + Categories)
   ========================= */
.hc-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Tabs */
.hc-tab-wrap {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
  justify-content: center;
}

.hc-tab {
  background: #f5f5f5;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.hc-tab.active {
  background: var(--brand);
  color: #000000;
  box-shadow: 0 4px 14px rgba(239, 186, 50, 0.25);
}
.hc-tab:hover {
  background: #fff4d4;
}

/* =========================
   CATEGORIES BUTTON (☰)
   ========================= */
   
/* ============================
   MOBILE CATEGORY TOGGLE BUTTON
/* ============================
   Minimal Animated Sidebar Toggle
   ============================ */
.hc-sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: #f7f7f7;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hc-sidebar-toggle-btn:hover {
  background: #fff;
  border-color: #ddd;
}

.hc-sidebar-toggle-btn:active {
  transform: scale(0.97);
}

/* Hamburger Icon */
.hc-sidebar-toggle-btn .icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hc-sidebar-toggle-btn .icon::before,
.hc-sidebar-toggle-btn .icon::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hc-sidebar-toggle-btn .icon::before {
  top: -6px;
}

.hc-sidebar-toggle-btn .icon::after {
  top: 6px;
}

/* Morph ☰ → ✕ when expanded */
.hc-sidebar-toggle-btn[aria-expanded="true"] .icon {
  background: transparent;
}

.hc-sidebar-toggle-btn[aria-expanded="true"] .icon::before {
  transform: rotate(45deg);
  top: 0;
  background: var(--brand);
}

.hc-sidebar-toggle-btn[aria-expanded="true"] .icon::after {
  transform: rotate(-45deg);
  top: 0;
  background: var(--brand);
}

/* Label text */
.hc-sidebar-toggle-btn .label {
  font-size: 0.95rem;
  color: #111;
  font-weight: 500;
  padding-left: 5px;
}

/* When open, tint label brand color */
.hc-sidebar-toggle-btn[aria-expanded="true"] .label {
  color: var(--brand);
}

/* Mobile only */
@media (max-width: 900px) {
  .hc-sidebar-toggle-btn {
    margin-top: 12px;
  }
}

/* Hide on desktop */
@media (min-width: 901px) {
  .hc-sidebar-toggle-btn {
    display: none;
  }
}

/* =========================
   MOBILE HINT
   ========================= */
.mobile-hint {
  display: none;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
  animation: fadeOut 3s ease forwards;
}
@keyframes fadeOut {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* =========================
   MAIN GRID LAYOUT
   ========================= */
.hc-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

/* =========================
   SIDEBAR
   ========================= */
.hc-sidebar {
  position: sticky;
  top: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  height: fit-content;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.side-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-cat {
  background: transparent;
  border: 0;
  padding: 10px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.side-cat:hover,
.side-cat.active {
  background: #fff6e6;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.side-count {
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
  font-size: 0.95rem;
}

/* =========================
   MAIN CONTENT AREA
   ========================= */
.hc-main {
  min-height: 300px;
}

/* =========================
   HELP CARDS GRID
   ========================= */
.hc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.help-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.help-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.card-meta {
  display: flex;
  flex-direction: column;
}
.card-head h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111;
}
.card-head .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Read more link */
.read-more {
  text-decoration: none;
  font-weight: 600;
  color: var(--brand);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: inline-block;
}
.help-card:hover .read-more {
  opacity: 1;
  transform: translateY(0);
}
.read-more:hover {
  text-decoration: underline;
  color: #000;
}

/* =========================
   MOBILE RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .hc-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-top: 15%;
  }

  .hc-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hc-tab-wrap {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 340px;
  }

  .hc-tab {
    width: 100%;
    font-size: 0.9rem;
  }

  .hc-sidebar {
    /* position: relative; */
    display: none;
  }

  .hc-sidebar-toggle,
  .hc-sidebar-toggle-btn {
    display: block;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-hint {
    display: block;
  }

  .hc-body {
    grid-template-columns: 1fr;
  }

  .read-more {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   DESKTOP LAYOUT
   ========================= */
@media (min-width: 901px) {
  .hc-header {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hc-controls {
    flex-direction: column;
    align-items: flex-end;
  }

  .hc-tab-wrap {
    display: flex;
    gap: 12px;
  }

  .hc-sidebar-toggle-btn {
    margin-top: 6px;
  }

  .mobile-hint {
    display: none !important;
  }
}
