/* ECOP Learn · Shared styles */
:root {
  --navy: #0a2030;
  --navy-2: #14304a;
  --gold: #f5c832;
  --gold-deep: #b88c00;
  --gold-line: #e8d49a;
  --white: #ffffff;
  --bg: #fafaf7;
  --text: #14304a;
  --text-soft: #3d5266;
  --text-mute: #8a98a8;
  --green: #2d7a3e;
  --green-bg: #e8f5ec;
  --red: #c44545;
  --red-bg: #fdf2f2;
  --blue-soft: #f0f4f9;
  --amber: #b88c00;
  --amber-bg: #fdf2dc;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'IBM Plex Sans Thai', 'IBM Plex Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #0a2030 0%, #14304a 100%);
  color: white;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .logo {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: white;
}
.site-header .logo span { color: var(--gold); }
.site-header .nav { display: flex; gap: 24px; }
.site-header .nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.site-header .nav a:hover, .site-header .nav a.active { color: var(--gold); }
.site-header .profile {
  background: var(--gold);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Breadcrumb */
.breadcrumb {
  background: white;
  border-bottom: 1px solid var(--gold-line);
  padding: 14px 32px;
  font-size: 13px;
  color: var(--text-soft);
}
.breadcrumb a { color: var(--gold-deep); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--text-mute); margin: 0 8px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.15s;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #ffd24a; }
.btn-secondary {
  background: white;
  color: var(--navy);
  border: 1.5px solid var(--gold-line);
}
.btn-secondary:hover { border-color: var(--gold); }
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--gold-line);
}
.btn-ghost:hover { background: white; color: var(--navy); }
.btn-success { background: var(--green); color: white; }
.btn-danger { background: var(--red); color: white; }
.btn-block { width: 100%; }

/* Card */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(10, 32, 48, 0.06);
  padding: 24px;
  border: 1px solid rgba(184, 140, 0, 0.08);
}

/* Page footer */
.page-bottom {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 30px 32px;
  text-align: center;
  font-size: 13px;
  margin-top: 60px;
}
.page-bottom .brand { color: var(--gold); font-weight: 600; }

@media (max-width: 700px) {
  .site-header { padding: 14px 18px; }
  .site-header .nav { display: none; }
}
