/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1b33;
  --navy-mid: #1a2d52;
  --orange: #f05a23;
  --teal: #0d9488;
  --green: #22a84a;
  --border: #dde3ee;
  --bg: #f2f4f8;
  --text: #1a2742;
  --text-soft: #5a6a8a;
  --text-xsoft: #8a9ab8;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(26,39,66,0.10);
  --shadow-lg: 0 8px 40px rgba(26,39,66,0.16);
}

html { font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── Nav ── */
#top-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-logo { font-size: 1.7rem; line-height: 1; }
.nav-title { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; }
.nav-sub { font-size: 0.72rem; color: #8fa3cc; margin-top: 1px; }


/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a6a 60%, #1a4a5c 100%);
  color: #fff; padding: 80px 32px 96px;
  text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 20px;
  padding: 6px 18px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #a8c8ff; margin-bottom: 24px;
}
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero p { font-size: 1.05rem; color: #b8cce8; line-height: 1.7; max-width: 580px; margin: 0 auto; }

/* ── Sections ── */
.courses-section, .coming-section, .features-section {
  max-width: 1000px; margin: 0 auto; padding: 56px 24px;
}
.section-heading {
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.section-subhead {
  font-size: 0.9rem; color: var(--text-soft); margin-bottom: 28px; line-height: 1.5;
}
.section-divider {
  border: none; border-top: 2px solid var(--border); margin: 48px 0;
}
.section-block + .section-block { padding-top: 0; }

/* ── Course Cards ── */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.course-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 2px solid var(--border);
  padding: 32px; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.course-card.featured { border-color: var(--orange); }
.course-card.featured::before {
  content: 'Most Comprehensive';
  position: absolute; top: 16px; right: -28px;
  background: var(--orange); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 4px 36px;
  transform: rotate(45deg); transform-origin: center;
}

.course-hour-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  font-size: 1.4rem; font-weight: 900; margin-bottom: 16px;
}
.course-card.osha10 .course-hour-badge { background: #f0fdfa; color: var(--teal); }
.course-card.osha30 .course-hour-badge { background: #fff3ee; color: var(--orange); }
.course-card.hazwoper .course-hour-badge { background: #fffbeb; color: #d97706; }
.hazwoper .course-btn { background: #d97706; color: #fff; }
.course-card.osha10gi .course-hour-badge { background: #eef2ff; color: #4f46e5; }
.course-card.osha30gi .course-hour-badge { background: #ecfdf5; color: #059669; }
.osha10gi .course-progress-fill { background: #4f46e5; }
.osha30gi .course-progress-fill { background: #059669; }
.osha10gi .course-btn { background: #4f46e5; color: #fff; }
.osha30gi .course-btn { background: #059669; color: #fff; }
.course-card.osha10m .course-hour-badge { background: #e0f2fe; color: #0284c7; }
.course-card.osha30m .course-hour-badge { background: #dbeafe; color: #1d4ed8; }
.osha10m .course-progress-fill { background: #0284c7; }
.osha30m .course-progress-fill { background: #1d4ed8; }
.osha10m .course-btn { background: #0284c7; color: #fff; }
.osha30m .course-btn { background: #1d4ed8; color: #fff; }
.course-card.claudeai .course-hour-badge { background: #ede9fe; color: #7c3aed; font-size: 1.6rem; }
.course-card.chatgpt .course-hour-badge { background: #d1fae5; color: #10a37f; font-size: 1.6rem; }
.claudeai .course-progress-fill { background: #7c3aed; }
.chatgpt .course-progress-fill { background: #10a37f; }
.claudeai .course-btn { background: #7c3aed; color: #fff; }
.chatgpt .course-btn { background: #10a37f; color: #fff; }
.course-card.gemini .course-hour-badge { background: #e8f4fd; color: #1a73e8; font-size: 1.6rem; }
.course-card.perplexity .course-hour-badge { background: #f0faf8; color: #20b2aa; font-size: 1.6rem; }
.course-card.copilot .course-hour-badge { background: #eff6ff; color: #0078d4; font-size: 1.6rem; }
.gemini .course-progress-fill { background: #1a73e8; }
.perplexity .course-progress-fill { background: #20b2aa; }
.copilot .course-progress-fill { background: #0078d4; }
.course-card.promptlib .course-hour-badge { background: #f0fdf4; color: #16a34a; font-size: 1.6rem; }
.promptlib .course-progress-fill { background: #16a34a; }
.promptlib .course-btn { background: #16a34a; color: #fff; }

/* ── Language course cards ── */
.course-card[class*="lang-"] .course-hour-badge { font-size: 1.8rem; background: #f8f9ff; }
.lang-es .course-hour-badge { background: #fff0f0; } .lang-es .course-progress-fill { background: #c62828; } .lang-es .course-btn { background: #c62828; color:#fff; }
.lang-fr .course-hour-badge { background: #f0f4ff; } .lang-fr .course-progress-fill { background: #1565c0; } .lang-fr .course-btn { background: #1565c0; color:#fff; }
.lang-de .course-hour-badge { background: #fffde7; } .lang-de .course-progress-fill { background: #f57f17; } .lang-de .course-btn { background: #f57f17; color:#fff; }
.lang-it .course-hour-badge { background: #f0fff4; } .lang-it .course-progress-fill { background: #2e7d32; } .lang-it .course-btn { background: #2e7d32; color:#fff; }
.lang-tr .course-hour-badge { background: #fff0f6; } .lang-tr .course-progress-fill { background: #ad1457; } .lang-tr .course-btn { background: #ad1457; color:#fff; }
.lang-ar .course-hour-badge { background: #e8f5e9; } .lang-ar .course-progress-fill { background: #00695c; } .lang-ar .course-btn { background: #00695c; color:#fff; }
.lang-ko .course-hour-badge { background: #e8eaf6; } .lang-ko .course-progress-fill { background: #283593; } .lang-ko .course-btn { background: #283593; color:#fff; }
.lang-zh .course-hour-badge { background: #fff0f0; } .lang-zh .course-progress-fill { background: #b71c1c; } .lang-zh .course-btn { background: #b71c1c; color:#fff; }
.lang-yue .course-hour-badge { background: #f3e5f5; } .lang-yue .course-progress-fill { background: #6a1b9a; } .lang-yue .course-btn { background: #6a1b9a; color:#fff; }
.lang-ja .course-hour-badge { background: #fff3e0; } .lang-ja .course-progress-fill { background: #e64a19; } .lang-ja .course-btn { background: #e64a19; color:#fff; }
.lang-hk .course-hour-badge { background: #efebe9; } .lang-hk .course-progress-fill { background: #4e342e; } .lang-hk .course-btn { background: #4e342e; color:#fff; }
.lang-pt .course-hour-badge { background: #fff0f0; } .lang-pt .course-progress-fill { background: #c62828; } .lang-pt .course-btn { background: #c62828; color:#fff; }
.lang-gr .course-hour-badge { background: #f0f4ff; } .lang-gr .course-progress-fill { background: #1565c0; } .lang-gr .course-btn { background: #1565c0; color:#fff; }
.lang-nl .course-hour-badge { background: #fffde7; } .lang-nl .course-progress-fill { background: #f57f17; } .lang-nl .course-btn { background: #f57f17; color:#fff; }
.lang-ru .course-hour-badge { background: #fce4ec; } .lang-ru .course-progress-fill { background: #880e4f; } .lang-ru .course-btn { background: #880e4f; color:#fff; }
.lang-sw .course-hour-badge { background: #e8f5e9; } .lang-sw .course-progress-fill { background: #1b5e20; } .lang-sw .course-btn { background: #1b5e20; color:#fff; }
.lang-hi .course-hour-badge { background: #fff3e0; } .lang-hi .course-progress-fill { background: #e65100; } .lang-hi .course-btn { background: #e65100; color:#fff; }
.lang-th .course-hour-badge { background: #fff0f6; } .lang-th .course-progress-fill { background: #ad1457; } .lang-th .course-btn { background: #ad1457; color:#fff; }
.gemini .course-btn { background: #1a73e8; color: #fff; }
.perplexity .course-btn { background: #20b2aa; color: #fff; }
.copilot .course-btn { background: #0078d4; color: #fff; }

.course-title { font-size: 1.5rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.course-subtitle { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 20px; }

.course-stats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.course-stat { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-soft); }
.course-stat-icon { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.course-stat strong { color: var(--text); }

.course-progress-wrap { margin-bottom: 24px; }
.course-progress-label { font-size: 0.78rem; color: var(--text-soft); margin-bottom: 6px; display: flex; justify-content: space-between; }
.course-progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.course-progress-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.osha10 .course-progress-fill { background: var(--teal); }
.osha30 .course-progress-fill { background: var(--orange); }
.hazwoper .course-progress-fill { background: #d97706; }

.course-btn {
  display: block; width: 100%; text-align: center;
  padding: 14px; border-radius: 10px; font-size: 0.95rem; font-weight: 700;
  border: none; cursor: pointer; transition: opacity 0.15s; margin-top: auto;
  text-decoration: none;
}
.osha10 .course-btn { background: var(--teal); color: #fff; }
.osha30 .course-btn { background: var(--orange); color: #fff; }
.course-btn:hover { opacity: 0.88; }

/* ── Coming Soon ── */
.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.coming-card {
  background: var(--card); border: 1.5px dashed var(--border);
  border-radius: var(--radius); padding: 24px;
  text-align: center; opacity: 0.7;
}
.coming-icon { font-size: 2rem; margin-bottom: 10px; }
.coming-title { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.coming-sub { font-size: 0.8rem; color: var(--text-soft); line-height: 1.5; }


/* ── Features ── */
.features-section { padding-top: 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-title { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feature-desc { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; }

/* ── Footer ── */
.footer { text-align: center; padding: 24px; font-size: 0.78rem; color: var(--text-xsoft); border-top: 1px solid var(--border); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .coming-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  #top-nav { padding: 0 16px; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px 64px; }
}
