/* ============================================================
   HIRUSH GLOBAL — SEO TRAINING PROGRAM
   styles.css — All styles for the SEO Training Platform
   ============================================================ */

:root {
  --blue: #1e3a8a;
  --gold: #f59e0b;
  --light-blue: #3b5fc0;
  --bg: #f8faff;
  --text: #1e293b;
  --muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --code-bg: #1e293b;
  --green: #10b981;
  --red: #ef4444;

  /* New brand tokens (navbar + index page only) */
  --nav-bg: #102E50;
  --nav-bg-dark: #0B1E35;
  --nav-amber: #FFB74D;
  --nav-amber-glow: rgba(255, 183, 77, 0.35);
  --nav-border: rgba(255, 255, 255, 0.1);
  --nav-glass: rgba(16, 46, 80, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* SIDEBAR — hirushglobal.com themed */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--nav-bg-dark);
  border-right: 1px solid var(--nav-border);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-header img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  padding: 4px;
}

.sidebar-header .brand {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.sidebar-header .brand span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--nav-amber);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar nav {
  padding: 16px 0;
  flex: 1;
}

.nav-section {
  padding: 8px 20px 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255, 183, 77, 0.06);
  color: var(--nav-amber);
  border-left-color: rgba(255, 183, 77, 0.4);
}

.nav-item.active {
  background: rgba(255, 183, 77, 0.1);
  color: var(--nav-amber);
  border-left-color: var(--nav-amber);
  box-shadow: inset 3px 0 12px rgba(255, 183, 77, 0.08);
  font-weight: 600;
}

.nav-item .icon {
  font-size: 1rem;
  width: 20px;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--nav-amber);
  color: var(--nav-bg);
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

/* MAIN */
.main {
  margin-left: 280px;
  min-height: 100vh;
}

/* TOP BAR — glassmorphism navbar */
.topbar {
  background: var(--nav-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.progress-bar {
  width: 160px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nav-amber), #ffa000);
  box-shadow: 0 0 10px var(--nav-amber-glow);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s;
}

/* CONTENT */
.content {
  padding: 40px;
  max-width: 960px;
}

/* HERO — deep navy + amber glow */
.hero {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #1a3e6a 60%, var(--nav-bg-dark) 100%);
  border: 1px solid var(--nav-border);
  border-radius: 20px;
  padding: 48px;
  color: white;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px var(--nav-amber-glow);
}

.hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  background: rgba(255, 183, 77, 0.1);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  background: rgba(255, 183, 77, 0.06);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 183, 77, 0.15);
  border: 1px solid rgba(255, 183, 77, 0.35);
  color: var(--nav-amber);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 500px;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--nav-amber);
}

.hero-stat .lbl {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 2px;
}

/* MODULE SECTION */
.section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.module-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.module-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--light-blue));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.module-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
}

.module-header p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.card p {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.info-box {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.tip-box {
  background: #fffbeb;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.success-box {
  background: #f0fdf4;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.danger-box {
  background: #fef2f2;
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.box-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.code-block {
  background: var(--code-bg);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  overflow-x: auto;
  position: relative;
}

.code-block pre {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #94a3b8;
  white-space: pre;
}

.code-block .tag {
  color: #7dd3fc;
}

.code-block .attr {
  color: #fde68a;
}

.code-block .val {
  color: #86efac;
}

.code-block .comment {
  color: #475569;
  font-style: italic;
}

.code-block .string {
  color: #fca5a5;
}

.code-label {
  background: var(--gold);
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  display: inline-block;
  margin-bottom: 8px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.serp-preview {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.serp-url {
  color: #202124;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.serp-title {
  color: #1a0dab;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  cursor: pointer;
}

.serp-title:hover {
  text-decoration: underline;
}

.serp-desc {
  color: #4d5156;
  font-size: 0.85rem;
  line-height: 1.5;
}

.kw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 16px 0;
}

.kw-table th {
  background: var(--blue);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
}

.kw-table th:first-child {
  border-radius: 8px 0 0 0;
}

.kw-table th:last-child {
  border-radius: 0 8px 0 0;
}

.kw-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.kw-table tr:hover td {
  background: #f8faff;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.pill-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.pill-green {
  background: #d1fae5;
  color: #065f46;
}

.pill-orange {
  background: #fed7aa;
  color: #9a3412;
}

.pill-red {
  background: #fee2e2;
  color: #991b1b;
}

.tool-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.1);
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tool-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  margin-bottom: 6px;
}

.tool-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.checklist {
  list-style: none;
  margin: 10px 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.checklist li:last-child {
  border: none;
}

.check-icon {
  width: 20px;
  height: 20px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.x-icon {
  width: 20px;
  height: 20px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 0;
  flex-wrap: wrap;
}

.flow-step {
  background: var(--blue);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  min-width: 100px;
}

.flow-arrow {
  color: var(--gold);
  font-size: 1.4rem;
  padding: 0 8px;
  font-weight: 700;
}

.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 20px 0;
}

.pyramid-layer {
  border-radius: 8px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Sora', sans-serif;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: var(--light-blue);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: white;
}

.diagram-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}

/* QUIZ */
.quiz-q {
  background: #f8fbff;
  border: 1.5px solid #e0eaff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.quiz-q p {
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.9rem;
  line-height: 1.5;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.5;
  transition: all 0.18s;
  font-family: 'Sora', sans-serif;
  text-align: left;
  width: 100%;
}

.quiz-option:hover:not([style*="pointer-events: none"]) {
  border-color: var(--blue);
  background: #eff6ff;
  transform: translateX(3px);
}

.quiz-option.correct {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #14532d;
  font-weight: 600;
}

.quiz-option.correct::before {
  content: '✅ ';
}

.quiz-option.wrong {
  border-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

.quiz-option.wrong::before {
  content: '❌ ';
}

.quiz-explain {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.6;
  background: #eff6ff;
  color: #1e3a8a;
  border-left: 4px solid var(--blue);
  animation: fadeIn 0.3s ease;
}

/* IMPROVED CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(30, 58, 138, 0.04);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.09);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  border-radius: 16px;
}

.card-header:hover {
  background: #f5f8ff;
}

.card.open .card-header {
  border-bottom-color: var(--border);
  border-radius: 16px 16px 0 0;
  background: #f5f8ff;
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-toggle {
  width: 28px;
  height: 28px;
  background: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.25s, background 0.2s;
}

.card.open .card-toggle {
  transform: rotate(180deg);
  background: var(--blue);
  color: white;
}

.card-body {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.card.open .card-body {
  max-height: 4000px;
  padding: 24px 28px 28px;
}

.card p {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.module-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 28px;
  font-size: 0.8rem;
  color: var(--muted);
}

.module-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.module-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 10px;
  transition: width 0.4s ease;
  width: 0%;
}

.module-progress-label {
  font-weight: 600;
  color: var(--blue);
  min-width: 70px;
  text-align: right;
}

.section-intro {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

.expand-all-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-xs {
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-xs:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.card-body>*:first-child {
  margin-top: 0;
}

.card-body>*:last-child {
  margin-bottom: 0;
}

.warning-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .main {
    margin-left: 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 20px;
  }

  .hero {
    padding: 28px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .card-header {
    padding: 18px 20px;
  }

  .card.open .card-body {
    padding: 16px 20px 20px;
  }
}

.vs-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.vs-col {
  border-radius: 12px;
  padding: 20px;
}

.vs-col.good {
  background: #f0fdf4;
  border: 2px solid var(--green);
}

.vs-col.bad {
  background: #fef2f2;
  border: 2px solid var(--red);
}

.vs-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.vs-col.good h4 {
  color: #065f46;
}

.vs-col.bad h4 {
  color: #991b1b;
}

.assignment-card {
  background: linear-gradient(135deg, var(--blue), #2d4fd1);
  color: white;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

.assignment-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.assignment-card p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 12px;
}

.assignment-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assignment-card .a-tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* VIDEO CARDS */
.video-section {
  margin-bottom: 24px;
}

.video-section>h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.video-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.15);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #0f172a;
}

.video-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.88);
}

.video-card:hover .video-thumb-wrap img {
  transform: scale(1.06);
  filter: brightness(0.75);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 56px;
  height: 56px;
  background: rgba(255, 0, 0, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.video-card:hover .play-btn {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 6px 28px rgba(255, 0, 0, 0.6);
}

.play-btn svg {
  margin-left: 4px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 9px;
  background: rgba(0, 0, 0, 0.82);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'DM Mono', monospace;
  z-index: 4;
}

.watch-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 4;
  pointer-events: none;
}

.video-card:hover .watch-label {
  opacity: 1;
  transform: translateY(0);
}

.video-info {
  padding: 12px 14px 14px;
}

.video-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.4;
}

.video-card:hover .video-title {
  color: #ff0000;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.video-channel {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.yt-badge {
  background: #ff0000;
  color: white;
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

/* BEGINNER STYLES */
.jargon {
  border-bottom: 2px dashed var(--gold);
  cursor: help;
  position: relative;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.jargon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  width: 240px;
  white-space: normal;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 999;
}

.jargon::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 999;
}

.jargon:hover::after,
.jargon:hover::before {
  opacity: 1;
}

.plain-english {
  background: linear-gradient(135deg, #fefce8, #fffbeb);
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  line-height: 1.65;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.plain-english .pe-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.plain-english .pe-body strong {
  display: block;
  color: #92400e;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 700;
}

.plain-english .pe-body {
  color: #78350f;
}

.beginner-note {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #14532d;
}

.beginner-note::before {
  content: '🌱';
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.beginner-note strong {
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #166534;
}

.analogy-box {
  background: #faf5ff;
  border: 1.5px solid #ddd6fe;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.87rem;
  line-height: 1.65;
  color: #4c1d95;
}

.analogy-box .analogy-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7c3aed;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.steps-list {
  list-style: none;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.step-num {
  min-width: 28px;
  height: 28px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.steps-list li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--blue);
}

.why-matters {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.87rem;
  line-height: 1.6;
}

.why-matters .wm-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 4px;
}

.glossary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.glossary-pill {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px 5px 10px;
  font-size: 0.78rem;
  color: var(--text);
  cursor: default;
  transition: border-color 0.15s, background 0.15s;
}

.glossary-pill:hover {
  border-color: var(--blue);
  background: #eff6ff;
}

.glossary-pill .gp-term {
  font-weight: 700;
  color: var(--blue);
}

.glossary-pill .gp-def {
  color: var(--muted);
}

.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}

.do-box,
.dont-box {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.84rem;
  line-height: 1.6;
}

.do-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}

.dont-box {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
}

.do-box .dod-label {
  font-weight: 700;
  color: #166534;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.dont-box .dod-label {
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.do-box ul,
.dont-box ul {
  list-style: none;
  padding: 0;
}

.do-box li,
.dont-box li {
  padding: 3px 0;
}

.do-box li::before {
  content: '✅ ';
}

.dont-box li::before {
  content: '❌ ';
}

.beginner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 8px;
}

.scenario-box {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 14px 0;
  font-size: 0.87rem;
  line-height: 1.65;
  color: #7c2d12;
}

.scenario-box .sc-label {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c2410c;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* MODULE LOCK SYSTEM */
.nav-item.locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.nav-item.locked::after {
  content: '🔒';
  margin-left: auto;
  font-size: 0.8rem;
}

.nav-item.locked .badge {
  display: none;
}

.section-locked-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.section-locked-overlay.show {
  display: flex;
}

.lock-modal {
  background: white;
  border-radius: 24px;
  padding: 40px 44px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lock-modal .lock-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.lock-modal h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
}

.lock-modal p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.lock-modal .lock-prev {
  font-weight: 700;
  color: var(--blue);
}

.lock-modal .btn-go {
  display: inline-block;
  padding: 12px 28px;
}

.btn-next-locked {
  opacity: 0.45;
  cursor: not-allowed !important;
  pointer-events: none;
}

.quiz-pass-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

.lock-badge {
  margin-left: auto;
  font-size: 0.78rem;
  opacity: 0.7;
}

.nav-item.completed::after {
  content: '✅';
  margin-left: auto;
  font-size: 0.72rem;
}

.nav-item.completed .badge {
  display: none;
}

.quiz-unlocked-banner {
  display: none;
  margin-top: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #86efac;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #14532d;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.quiz-unlocked-banner.show {
  display: block;
}

/* ===== LOADING SCREEN ===== */
#hg-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, var(--nav-bg) 0%, #0b1e35 55%, #05101d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s ease;
}

#hg-loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.hg-load-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px;
  margin-bottom: 20px;
  animation: hgPulse 1.8s ease-in-out infinite;
}

@keyframes hgPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.06);
    opacity: 0.85;
  }
}

.hg-load-brand {
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.hg-load-sub {
  color: var(--nav-amber);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 44px;
}

.hg-load-bar-wrap {
  width: 240px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.hg-load-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--nav-amber), #ffa000);
  border-radius: 10px;
  animation: hgLoad 2.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 10px var(--nav-amber-glow);
}

@keyframes hgLoad {
  0% {
    width: 0%
  }

  30% {
    width: 45%
  }

  60% {
    width: 72%
  }

  85% {
    width: 91%
  }

  100% {
    width: 100%
  }
}

.hg-load-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--nav-amber);
  border-radius: 50%;
  animation: hgSpin 0.85s linear infinite;
}

@keyframes hgSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== LOGIN SCREEN ===== */
#hg-login {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f2260 60%, #07144a 100%);
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hg-login.show {
  display: flex;
}

#hg-login.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#hg-login::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  background: rgba(245, 158, 11, 0.07);
  border-radius: 50%;
  top: -120px;
  right: -140px;
  pointer-events: none;
}

#hg-login::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  background: rgba(59, 95, 192, 0.15);
  border-radius: 50%;
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}

.hg-login-card {
  background: white;
  border-radius: 24px;
  padding: 44px 40px 36px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
  animation: hgCardIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hgCardIn {
  from {
    transform: scale(0.88) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.hg-login-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}

.hg-login-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #eff6ff;
  padding: 4px;
}

.hg-login-brand-text {
  text-align: left;
}

.hg-login-brand-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e3a8a;
}

.hg-login-brand-text span {
  font-size: 0.68rem;
  color: #f59e0b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.hg-login-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 20px 0 6px;
}

.hg-login-subtitle {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 28px;
}

.hg-field-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
  display: block;
}

.hg-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  color: #1e293b;
  background: #f8faff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.hg-input:focus {
  border-color: #1e3a8a;
  background: white;
}

.hg-input.err {
  border-color: #ef4444;
  background: #fff5f5;
  animation: hgShake 0.35s;
}

@keyframes hgShake {

  0%,
  100% {
    transform: translateX(0)
  }

  20% {
    transform: translateX(-6px)
  }

  40% {
    transform: translateX(6px)
  }

  60% {
    transform: translateX(-4px)
  }

  80% {
    transform: translateX(4px)
  }
}

.hg-login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #3b5fc0);
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  margin-top: 4px;
}

.hg-login-btn:hover {
  background: linear-gradient(135deg, #2d4fd1, #4a6fd1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.hg-login-btn:active {
  transform: translateY(0);
}

.hg-login-err {
  display: none;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.hg-login-err.show {
  display: block;
  animation: fadeIn 0.25s;
}

.hg-login-footer {
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 22px;
  line-height: 1.6;
}

/* ===== SIDEBAR USER BADGE ===== */
.hg-user-badge {
  margin: 12px 16px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hg-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1e3a8a;
  flex-shrink: 0;
}

.hg-user-info {
  flex: 1;
  min-width: 0;
}

.hg-user-id {
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
}

.hg-user-role {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1px;
}

.hg-logout-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}

.hg-logout-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: white;
}

/* ===== SAVE PASSWORD ===== */
.hg-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  margin-top: -8px;
}

.hg-remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1e3a8a;
  cursor: pointer;
  flex-shrink: 0;
}

.hg-remember-row label {
  font-size: 0.78rem;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.hg-saved-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.76rem;
  color: #166534;
  font-weight: 600;
  margin-bottom: 12px;
  animation: fadeIn 0.3s ease;
}

/* ===== MODULE VIDEO SECTION ===== */
.module-videos {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.module-videos-title {
  font-size: 1rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-videos-sub {
  font-size: 0.78rem;
  color: #b45309;
  margin-bottom: 16px;
}

.vid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .vid-grid {
    grid-template-columns: 1fr;
  }
}

.vid-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #fde68a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.vid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.vid-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0f172a;
  overflow: hidden;
}

.vid-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.85);
}

.vid-item:hover .vid-thumb img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.vid-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 3;
}

.vid-item:hover .vid-play {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.6);
}

.vid-play svg {
  margin-left: 3px;
}

.vid-info {
  padding: 10px 12px 12px;
}

.vid-topic {
  font-size: 0.7rem;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.vid-title-text {
  font-size: 0.83rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.vid-item:hover .vid-title-text {
  color: #ff0000;
}

.vid-channel-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.vid-channel-name {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.vid-yt-badge {
  background: #ff0000;
  color: white;
  font-size: 0.58rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* ===== WELCOME TOAST ===== */
#hg-welcome-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99997;
  background: linear-gradient(135deg, #1e3a8a, #3b5fc0);
  color: white;
  padding: 16px 22px;
  border-radius: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
}

#hg-welcome-toast.show {
  transform: translateX(0);
}

/* ============================================================
   SCOPED: #home dashboard only — matches hirushglobal.com theme
   Everything below targets ONLY the index/dashboard page.
   Module pages are NOT affected.
   ============================================================ */

#home .tool-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nav-border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

#home .tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 183, 77, 0.3);
  box-shadow: 0 0 20px var(--nav-amber-glow);
}

#home .tool-name {
  color: var(--nav-amber);
}

#home .tool-desc {
  color: #90a4ae;
}

#home .tip-box {
  background: rgba(255, 183, 77, 0.07);
  border-left: 4px solid var(--nav-amber);
  color: #b0bec5;
}

#home .tip-box .box-title {
  color: var(--nav-amber);
}