@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:           #1e1e22;
  --bg-card:      #27272d;
  --bg-card-2:    #2f2f38;
  --bg-input:     #2a2a32;
  --primary:      #D97757;
  --primary-glow: rgba(217, 119, 87, 0.4);
  --secondary:    #9CAF88;
  --text:         #f5f0ea;
  --text-muted:   #999aaa;
  --border:       rgba(255, 255, 255, 0.09);
  --radius:       16px;
  --radius-sm:    10px;
  --font:         'Poppins', sans-serif;
  --transition:   all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; }

#snowCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999999999999999999999999999;
  padding: 18px 0;
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(30, 30, 34, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 240, 234, 0.75);
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-menu { position: relative; }

.user-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--text);
}
.user-icon-btn:hover,
.user-icon-btn.active {
  background: rgba(217,119,87,0.18);
  border-color: var(--primary);
}
.user-icon-btn svg { width: 20px; height: 20px; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card-2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  min-width: 170px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(-6px);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 200;
}
.user-dropdown.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.user-dropdown a:hover {
  background: rgba(217,119,87,0.12);
  color: var(--primary);
}
.user-dropdown .dd-icon {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; flex-shrink: 0;
}
.dropdown-divider { height: 1px; background: var(--border); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: transparent;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 40px rgba(0,0,0,0.4);
  overflow-y: auto;
}
.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.sidebar-close {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
}
.sidebar-close:hover {
  background: rgba(217,119,87,0.18);
  border-color: var(--primary);
  color: var(--primary);
}

.sidebar-nav {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(245, 240, 234, 0.8);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover {
  color: var(--primary);
  background: rgba(217,119,87,0.08);
  border-left-color: var(--primary);
}
.sidebar-nav a svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: var(--transition);
}
.sidebar-nav a:hover svg {
  color: var(--primary);
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 24px;
}

.sidebar-auth {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.sidebar-auth-btn svg {
  flex-shrink: 0;
}

.sidebar-auth-btn.login-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text);
}
.sidebar-auth-btn.login-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(217,119,87,0.1);
}

.sidebar-auth-btn.register-btn {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 0 16px rgba(217,119,87,0.3);
}
.sidebar-auth-btn.register-btn:hover {
  background: #c96a48;
  box-shadow: 0 0 24px rgba(217,119,87,0.5);
}

#hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.slider { position: absolute; inset: 0; z-index: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #1e1e22 0%, rgba(30,30,34,0.72) 50%, rgba(30,30,34,0.28) 100%);
}

.hero-content {
  position: relative; z-index: 10; text-align: center;
  padding: 0 24px; max-width: 900px; margin-top: 80px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: #fff;
}
.hero-content h1 span { color: var(--primary); text-shadow: 0 0 30px var(--primary-glow); }
.hero-content p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.75); max-width: 600px;
  margin: 0 auto 36px; font-weight: 300;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  padding: 14px 36px; background: var(--primary); color: #fff;
  border-radius: 50px; font-size: 1rem; font-weight: 600;
  transition: var(--transition); box-shadow: 0 0 20px var(--primary-glow);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: #c96a48; box-shadow: 0 0 35px rgba(217,119,87,0.6);
  transform: translateY(-2px);
}
.btn-ghost {
  padding: 14px 36px; background: rgba(255,255,255,0.09); color: #fff;
  border-radius: 50px; font-size: 1rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px);
  transition: var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

.slide-dots {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 10px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50px;
  background: rgba(255,255,255,0.3); border: none; transition: var(--transition); cursor: pointer;
}
.dot.active { width: 28px; background: var(--primary); box-shadow: 0 0 10px rgba(217,119,87,0.7); }

.section { padding: 40px 0; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 12px; }
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1rem; }

#why-us { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.why-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  transition: var(--transition); opacity: 0; transform: translateY(30px);
}
.why-card.visible { opacity: 1; transform: translateY(0); }
.why-card:hover {
  border-color: rgba(217,119,87,0.3);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25); transform: translateY(-4px);
}
.why-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(217,119,87,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: var(--transition);
}
.why-icon svg { width: 26px; height: 26px; color: var(--primary); stroke: var(--primary); }
.why-card:hover .why-icon { background: rgba(217,119,87,0.2); box-shadow: 0 0 16px rgba(217,119,87,0.3); }
.why-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; transition: var(--transition); }
.why-card:hover h3 { color: var(--primary); }
.why-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

#issues { background: linear-gradient(180deg, var(--bg) 0%, #1b1b20 100%); }

.issues-actions {
  text-align: center;
  margin-bottom: 40px;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.issue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.issue-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.issue-card:hover {
  border-color: rgba(217,119,87,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(-3px);
}

.issue-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.issue-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(217,119,87,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(217,119,87,0.3);
}
.issue-avatar svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
}

.issue-user-info {
  flex: 1;
}
.issue-user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.issue-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.issue-type-badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-bank {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-oil {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-electric {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-media {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.badge-marketing {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}
.badge-hr {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.badge-mechanical {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.badge-other {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.issue-status {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(156, 175, 136, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(156, 175, 136, 0.3);
  white-space: nowrap;
}

.issue-content {
  font-size: 0.9rem;
  color: rgba(245,240,234,0.8);
  line-height: 1.7;
  padding-left: 58px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal::-webkit-scrollbar {
  display: none;
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}
.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.modal-close:hover {
  background: rgba(217,119,87,0.18);
  border-color: var(--primary);
  color: var(--primary);
}

.modal-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--bg-card-2);
  box-shadow: 0 0 0 3px rgba(217,119,87,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.custom-select {
  position: relative;
  user-select: none;
}

.custom-select-trigger {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.custom-select-trigger:hover {
  border-color: rgba(217,119,87,0.4);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--primary);
  background: var(--bg-card-2);
  box-shadow: 0 0 0 3px rgba(217,119,87,0.12);
}

.custom-select-value {
  color: var(--text-muted);
  transition: var(--transition);
}
.custom-select-value.has-value {
  color: var(--text);
}

.custom-select-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card-2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(217,119,87,0.4) transparent;
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 5px;
}
.custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(217,119,87,0.4);
  border-radius: 10px;
}

.custom-select.open .custom-select-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.custom-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: var(--text);
  border-left: 3px solid transparent;
}

.custom-select-option:hover {
  background: rgba(217,119,87,0.1);
  border-left-color: var(--primary);
}

.custom-select-option.selected {
  background: rgba(217,119,87,0.15);
  border-left-color: var(--primary);
  color: var(--primary);
}

.custom-select-option:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.option-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.option-icon svg {
  width: 18px;
  height: 18px;
}

.option-icon-bank {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.option-icon-bank svg { stroke: #60a5fa; }

.option-icon-oil {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.option-icon-oil svg { stroke: #fbbf24; }

.option-icon-electric {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.option-icon-electric svg { stroke: #34d399; }

.option-icon-media {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}
.option-icon-media svg { stroke: #a78bfa; }

.option-icon-marketing {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}
.option-icon-marketing svg { stroke: #f472b6; }

.option-icon-hr {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}
.option-icon-hr svg { stroke: #38bdf8; }

.option-icon-mechanical {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}
.option-icon-mechanical svg { stroke: #fb923c; }

.option-icon-other {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}
.option-icon-other svg { stroke: #9ca3af; }

.custom-select-option:hover .option-icon {
  transform: scale(1.1);
}

.btn-submit {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
  padding: 14px;
  border-radius: var(--radius-sm);
}

.search-wrap {
  margin-bottom: 28px;
  position: relative;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.search-wrap svg {
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  stroke: var(--text-muted); fill: none;
  pointer-events: none;
  transition: var(--transition);
}
#searchInput {
  width: 100%;
  padding: 13px 44px 13px 46px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
#searchInput::placeholder { color: var(--text-muted); }
#searchInput:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(217,119,87,0.12);
}
#searchInput:focus + svg,
.search-wrap:focus-within svg { stroke: var(--primary); }

.search-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: none;
  width: 24px; height: 24px; border-radius: 50%;
  color: var(--text-muted); font-size: 0.8rem; line-height: 1;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.search-clear:hover { background: rgba(217,119,87,0.2); color: var(--primary); }
.search-clear.show { display: flex; }

#courses { background: linear-gradient(180deg, #1b1b20 0%, #17171b 100%); }

.category-bar {
    display: flex;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    flex-wrap: nowrap;       /* 🔥 thêm dòng này */

    padding: 0 0 16px 0;
    margin-bottom: 32px;

    scrollbar-width: none;
}


.cat-btn {
    flex: 0 0 auto;          /* 🔥 thêm dòng này */
}
.category-bar::-webkit-scrollbar { display: none; }

.cat-btn {
  padding: 9px 22px; border-radius: 50px; font-size: 0.875rem; font-weight: 500;
  white-space: nowrap; background: var(--bg-card); color: var(--text-muted);
  border: 1px solid var(--border); transition: var(--transition); flex-shrink: 0;
}
.cat-btn:hover { border-color: rgba(217,119,87,0.4); color: var(--text); }
.cat-btn.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary); box-shadow: 0 0 16px rgba(217,119,87,0.4);
}

.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.course-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: var(--transition);
  opacity: 0; transform: translateY(24px);
}
.course-card.visible { opacity: 1; transform: translateY(0); }
.course-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(217,119,87,0.3);
  box-shadow: 0 12px 40px rgba(217,119,87,0.13);
}
.course-thumb { position: relative; height: 190px; overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.course-card:hover .course-thumb img { transform: scale(1.08); }
.course-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(30,30,34,0.85); backdrop-filter: blur(8px);
  padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text);
}
.course-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-title {
  font-size: 0.975rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; transition: var(--transition);
}
.course-card:hover .course-title { color: var(--primary); }
.course-desc {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.6;
}
.course-meta { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.teacher-name { font-size: 0.78rem; color: var(--text-muted); }
.teacher-name strong { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text); margin-top: 2px; }
.course-price { font-size: 0.85rem; font-weight: 700; color: var(--secondary); text-align: right; }
.course-price span { display: block; font-size: 0.72rem; font-weight: 400; color: var(--text-muted); margin-bottom: 2px; }
.btn-detail {
  width: 100%; padding: 10px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600;
  background: rgba(217,119,87,0.1); color: var(--primary);
  border: 1px solid rgba(217,119,87,0.2); transition: var(--transition);
}
.btn-detail:hover { background: var(--primary); color: #fff; box-shadow: 0 0 16px rgba(217,119,87,0.35); }
.no-results { grid-column: 1/-1; text-align: center; padding: 60px 0; color: var(--text-muted); }

#footer { background: #14141a; border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .logo { font-size: 1.4rem; margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-size: 0.9rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(245,240,234,0.6); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--primary); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 0.875rem; color: rgba(245,240,234,0.6); line-height: 1.5; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .issues-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .user-menu { display: none; }
  .hamburger { display: flex; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 320px; }
  .section { padding: 32px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .course-grid { grid-template-columns: 1fr; gap: 16px; }
  .issues-grid { grid-template-columns: 1fr; }
  .issue-content { padding-left: 0; margin-top: 12px; }
  .issue-user-name {
    font-size: 0.8rem !important;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

#issueModal {
  padding: 0 !important;
}

@media (max-width: 480px) {
  .course-grid { grid-template-columns: 1fr; }
  .modal { border-radius: 16px; }
  .modal-form { padding: 20px; }
  .modal-header { padding: 20px 20px 0; }
}
