/* =====================================================
   TREVIONYXAL — Research Media Interface
   Global Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #122438;
  --steel:      #1C3A5A;
  --steel-mid:  #2A5080;
  --amber:      #C9962A;
  --amber-light:#E4B84A;
  --off-white:  #EFF2F7;
  --light-gray: #D6DCE8;
  --mid-gray:   #8A96AB;
  --text-main:  #EFF2F7;
  --text-muted: #8A96AB;
  --border:     #1F3650;
  --border-light: #2C4A68;
  --bg-card:    #0F2236;
  --bg-inset:   #091929;
  --font-mono:  'JetBrains Mono', monospace;
  --font-sans:  'Inter', sans-serif;
  --radius:     4px;
  --transition: 0.22s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--navy);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber-light); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--steel-mid); border-radius: 3px; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.page-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 64px);
}

/* =====================================================
   TOP BAR
   ===================================================== */
.topbar {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  height: 32px;
  display: flex;
  align-items: center;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
}
.topbar__sys {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid-gray);
  letter-spacing: 0.08em;
}
.topbar__status {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid-gray);
}
.topbar__dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3AB76F;
  margin-right: 4px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header {
  background: var(--navy-mid);
  border-bottom: 2px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo__mark {
  width: 36px; height: 36px;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: -0.05em;
}
.logo__text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
  letter-spacing: 0.04em;
}
.logo__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mid-gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1px;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mid-gray);
  padding: 8px 14px;
  border: 1px solid transparent;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  text-transform: uppercase;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--amber);
  border-color: var(--border-light);
  background: rgba(201,150,42,0.06);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-main);
  transition: all var(--transition);
}

/* ---- Mobile nav ---- */
.mobile-nav {
  display: none;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mid-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--amber); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border-radius: var(--radius);
}
.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
}
.btn--primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: var(--navy);
}
.btn--outline {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
}
.btn--outline:hover {
  background: rgba(201,150,42,0.1);
  color: var(--amber-light);
}
.btn--steel {
  background: var(--steel);
  border-color: var(--border-light);
  color: var(--text-main);
}
.btn--steel:hover {
  background: var(--steel-mid);
  border-color: var(--amber);
  color: var(--amber);
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--mid-gray);
}
.btn--ghost:hover {
  border-color: var(--border-light);
  color: var(--text-main);
}
.btn--sm { padding: 6px 16px; font-size: 11px; }
.btn--lg { padding: 14px 32px; font-size: 13px; }

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  background: var(--bg-inset);
  border-right: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar__section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar__label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mid-gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 20px 8px;
}
.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.sidebar__nav a:hover,
.sidebar__nav a.active {
  color: var(--amber);
  background: rgba(201,150,42,0.05);
  border-left-color: var(--amber);
}
.sidebar__nav a .nav-icon {
  width: 14px; height: 14px;
  opacity: 0.6;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content { padding: 32px; overflow: hidden; }
.content-full { padding: 32px 24px; }

/* =====================================================
   PAGE HEADER (breadcrumb + title area)
   ===================================================== */
.page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid-gray);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--mid-gray); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .sep { color: var(--border-light); }

.page-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.page-subtitle {
  font-size: 14px;
  color: var(--mid-gray);
  margin-top: 8px;
  line-height: 1.5;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0,
    var(--border) 1px,
    transparent 1px,
    transparent 40px
  );
  opacity: 0.3;
  pointer-events: none;
}
.hero__sys {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid-gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.025em;
  max-width: 760px;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--amber);
}
.hero__desc {
  font-size: 16px;
  color: var(--mid-gray);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 56px;
}
.hero__metric {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.hero__metric:last-child { border-right: none; }
.hero__metric-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.hero__metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* =====================================================
   GRID LAYOUTS
   ===================================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-light); }
.card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__body { padding: 20px; }
.card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
}
.card__text {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.6;
}
.card__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-inset);
}
.card__footer-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid-gray);
  letter-spacing: 0.05em;
}

/* =====================================================
   DATA TABLES
   ===================================================== */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead { background: var(--bg-inset); }
.data-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--mid-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table .mono { font-family: var(--font-mono); font-size: 12px; }
.data-table .tag {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid;
  border-radius: 2px;
}
.tag--amber { color: var(--amber); border-color: rgba(201,150,42,0.4); background: rgba(201,150,42,0.08); }
.tag--blue { color: #5B9BD5; border-color: rgba(91,155,213,0.4); background: rgba(91,155,213,0.08); }
.tag--green { color: #3AB76F; border-color: rgba(58,183,111,0.4); background: rgba(58,183,111,0.08); }
.tag--gray { color: var(--mid-gray); border-color: var(--border); background: transparent; }

/* =====================================================
   SECTION / PANEL COMPONENTS
   ===================================================== */
.section { margin-bottom: 48px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-head__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--mid-gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-head__title span {
  color: var(--amber);
  margin-right: 8px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
}
.panel__head-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.panel__body { padding: 20px; }

/* =====================================================
   STATS / METRICS
   ===================================================== */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
}
.metric-cell {
  padding: 20px;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
}
.metric-cell:last-child { border-right: none; }
.metric-cell__value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.metric-cell__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* =====================================================
   TIMELINE
   ===================================================== */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline__item {
  display: flex;
  gap: 24px;
  padding: 0 0 32px 0;
  position: relative;
}
.timeline__dot {
  width: 26px; height: 26px;
  min-width: 26px;
  background: var(--bg-inset);
  border: 1px solid var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.timeline__content {}
.timeline__week {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.timeline__desc {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.6;
}

/* =====================================================
   ACCORDION / FAQ
   ===================================================== */
.accordion__item {
  border: 1px solid var(--border);
  margin-bottom: 4px;
  background: var(--bg-card);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.accordion__trigger-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}
.accordion__icon {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--amber);
  transition: transform var(--transition);
  min-width: 20px;
}
.accordion__item.open .accordion__icon { transform: rotate(45deg); }
.accordion__body {
  display: none;
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.accordion__item.open .accordion__body { display: block; padding-top: 16px; }

/* =====================================================
   FORMS
   ===================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-input,
.form-select,
.form-textarea {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(201,150,42,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }

.form-notice {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid-gray);
  line-height: 1.5;
}

.success-msg {
  display: none;
  padding: 16px 20px;
  background: rgba(58,183,111,0.1);
  border: 1px solid rgba(58,183,111,0.4);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #3AB76F;
  margin-top: 16px;
}
.success-msg.show { display: flex; align-items: center; gap: 10px; }

/* =====================================================
   CHART BARS (CSS-only)
   ===================================================== */
.chart-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.chart-bar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid-gray);
  width: 160px;
  min-width: 160px;
}
.chart-bar__track {
  flex: 1;
  height: 8px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  position: relative;
}
.chart-bar__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--amber);
  transition: width 1s ease;
}
.chart-bar__fill--blue { background: #3A78C9; }
.chart-bar__fill--green { background: #3AB76F; }
.chart-bar__value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  width: 36px;
  text-align: right;
}

/* =====================================================
   PROGRESS / MODULE MARKERS
   ===================================================== */
.module-list { display: flex; flex-direction: column; gap: 12px; }
.module-item {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
}
.module-item__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  font-weight: 700;
  width: 28px;
  min-width: 28px;
  padding-top: 1px;
}
.module-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}
.module-item__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid-gray);
}

/* =====================================================
   INSTRUCTOR CARD
   ===================================================== */
.instructor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: start;
}
.instructor-card__img {
  width: 100px; height: 100px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.instructor-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.instructor-card__role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.instructor-card__bio {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.7;
}

/* =====================================================
   TESTIMONIAL
   ===================================================== */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 24px;
}
.testimonial__quote {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial__author {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid-gray);
  letter-spacing: 0.05em;
}
.testimonial__author strong { color: var(--amber); }

/* =====================================================
   TAGS / FILTERS
   ===================================================== */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tag-filter a {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  color: var(--mid-gray);
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.tag-filter a:hover,
.tag-filter a.active {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(201,150,42,0.08);
}

/* =====================================================
   BLOG
   ===================================================== */
.article-list { display: flex; flex-direction: column; gap: 1px; }
.article-row {
  display: grid;
  grid-template-columns: 180px 1fr 160px;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  align-items: stretch;
}
.article-row:last-child { border-bottom: 1px solid var(--border); }
.article-row__img-col { overflow: hidden; }
.article-row__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  min-height: 110px;
}
.article-row__body { padding: 16px 20px; }
.article-row__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.article-row__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}
.article-row__excerpt {
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.6;
}
.article-row__meta-col {
  padding: 16px;
  border-left: 1px solid var(--border);
  background: var(--bg-inset);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.article-row__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid-gray);
}
.article-row__read-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid-gray);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--bg-inset);
  border-top: 2px solid var(--border);
  padding: 48px 0 0;
  margin-top: 64px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer__brand p {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-top: 16px;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-size: 13px;
  color: var(--mid-gray);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--amber); }
.footer__contact-item {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  min-width: 56px;
  padding-top: 1px;
}
.footer__contact-val {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.5;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid-gray);
}
.footer__policy-links { display: flex; gap: 20px; }
.footer__policy-links a { color: var(--mid-gray); }
.footer__policy-links a:hover { color: var(--amber); }

/* =====================================================
   UTILITY
   ===================================================== */
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-mono { font-family: var(--font-mono); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--mid-gray); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-right { text-align: right; }
.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}
.inline-code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  padding: 2px 6px;
  color: var(--amber);
}
.note-block {
  background: rgba(201,150,42,0.06);
  border-left: 3px solid var(--amber);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin: 16px 0;
}
.warning-block {
  background: rgba(212,58,58,0.06);
  border-left: 3px solid #D43A3A;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin: 16px 0;
}

/* =====================================================
   POLICY PAGES
   ===================================================== */
.policy-page { max-width: 820px; margin: 0 auto; }
.policy-section { margin-bottom: 40px; }
.policy-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.policy-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  margin-top: 20px;
}
.policy-section p {
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 12px;
}
.policy-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}
.policy-section ul li {
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 4px;
}

/* =====================================================
   COURSE DETAIL
   ===================================================== */
.course-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  margin-bottom: 40px;
}
.course-hero__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--border);
}
.course-sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
}
.course-sidebar-box__price {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 16px;
}
.course-sidebar-box__features { margin: 20px 0; }
.course-sidebar-box__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--mid-gray);
}
.course-sidebar-box__feature:last-child { border-bottom: none; }
.feat-icon { color: var(--amber); font-size: 14px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
  .hero__metric { border-bottom: 1px solid var(--border); }
  .course-hero { grid-template-columns: 1fr; }
  .grid-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; position: static; height: auto; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .article-row { grid-template-columns: 1fr; }
  .article-row__img-col { display: none; }
  .article-row__meta-col { border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .main-content { padding: 20px; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .instructor-card { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer__policy-links { flex-wrap: wrap; justify-content: center; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .metric-cell { border-bottom: 1px solid var(--border); }
}
