@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --bg:         #000033;
  --text:       #FFFFCC;
  --text-muted: #CCCC99;
  --accent:     #FFCC66;
  --nav-bg:     rgba(255,255,255,0.07);
  --nav-hover:  rgba(255,204,102,0.18);
  --btn-border: #FFCC66;
  --panel-bg:   rgba(0, 0, 50, 0.72);
}

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

body {
  background-color: #c86800;
  background-image: url('images/homepat.gif');
  background-repeat: repeat;
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ──────────────────────────────────────────── */

.page {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 32px;
  gap: 24px;
  align-items: flex-start;
}

/* ── SIDEBAR ─────────────────────────────────────────── */

.sidebar {
  width: 190px;
  flex-shrink: 0;
  background: rgba(0,0,40,0.82);
  border: 1px solid rgba(255,204,102,0.2);
  border-radius: 6px;
  padding: 12px;
}

.sidebar-logo {
  display: block;
  text-align: center;
  border: 1px solid rgba(255,204,102,0.35);
  padding: 8px 6px;
  border-radius: 6px;
  background: rgba(0,0,20,0.5);
  margin-bottom: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.sidebar-logo:hover { background: rgba(0,0,20,0.7); text-decoration: none; }
.sidebar-logo img { display: block; width: 100%; height: auto; }

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar nav a {
  display: block;
  padding: 9px 13px;
  color: var(--text-muted);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,204,102,0.2);
  border-radius: 4px;
  background: var(--nav-bg);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--nav-hover);
  color: var(--accent);
  text-decoration: none;
}

/* ── CONTENT ─────────────────────────────────────────── */

.content {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,40,0.82);
  border: 1px solid rgba(255,204,102,0.2);
  border-radius: 6px;
  padding: 16px;
}

.page-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,204,102,0.25);
  padding-bottom: 10px;
}

.content p { margin-bottom: 10px; color: var(--text-muted); }
.content p a { color: var(--accent); }

/* ── DEBATE HERO BANNER ──────────────────────────────── */

.debate-hero {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  margin-bottom: 0;
}
.debate-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.debate-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,40,0.85) 40%, rgba(0,0,40,0.4) 100%);
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.debate-hero-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* ── STEPS BAR ───────────────────────────────────────── */

.steps-wrap {
  background: rgba(0,0,40,0.6);
  border: 1px solid rgba(255,204,102,0.2);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  flex: 1;
  cursor: pointer;
}
span.step { cursor: default; }

.step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,204,102,0.3);
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: all 0.15s;
}
.step:hover .step-circle {
  border-color: var(--accent);
  background: rgba(255,204,102,0.15);
  color: var(--accent);
}
.step-active .step-circle {
  border-color: var(--accent);
  background: rgba(255,204,102,0.2);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(255,204,102,0.3);
}

.step-label {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.step:hover .step-label { color: var(--accent); }
.step-active .step-label { color: var(--accent); }

.step-connector {
  width: 24px; height: 2px;
  background: rgba(255,204,102,0.2);
  flex-shrink: 0;
  margin-bottom: 22px;
}

/* ── OPINIONS ────────────────────────────────────────── */

.opinions-list { display: flex; flex-direction: column; gap: 12px; }

.opinion-item {
  border: 1px solid rgba(255,204,102,0.15);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.15s;
}
.opinion-item:hover { border-color: rgba(255,204,102,0.35); }
.opinion-item.active { border-color: rgba(255,204,102,0.5); background: rgba(255,204,102,0.06); }

.opinion-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}
.opinion-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,204,102,0.12);
  border: 1px solid rgba(255,204,102,0.4);
  color: var(--accent);
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.opinion-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--text);
  line-height: 1.3;
}
.opinion-title a { color: var(--text-muted); font-weight: normal; }
.opinion-title a:hover { color: var(--accent); text-decoration: none; }

.opinion-body {
  padding: 0 18px 16px 66px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid rgba(255,204,102,0.12);
  padding-top: 14px;
}

.continue-link {
  margin-top: 20px;
  text-align: right;
}
.continue-link a {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: background 0.15s;
}
.continue-link a:hover { background: rgba(255,204,102,0.15); text-decoration: none; }

/* ── TEACHER INFO ─────────────────────────────────────── */

.teacher-section { margin-bottom: 22px; }
.teacher-section h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,204,102,0.2);
  padding-bottom: 5px;
}
.teacher-section ul { list-style: none; padding: 0; }
.teacher-section ul li {
  padding: 4px 0 4px 16px;
  position: relative;
  color: var(--text-muted);
  font-size: 14px;
}
.teacher-section ul li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.teacher-section ol { padding-left: 20px; }
.teacher-section ol li { color: var(--text-muted); font-size: 14px; margin-bottom: 7px; }

/* ── BACKGROUND PAGE ──────────────────────────────────── */

.bg-layout { display: flex; gap: 16px; align-items: flex-start; }
.bg-text { flex: 1; color: var(--text-muted); font-size: 14px; }
.bg-text p { margin-bottom: 10px; }
.bg-map { flex-shrink: 0; width: 240px; min-width: 0; }
.bg-map img { width: 100%; border: 1px solid rgba(255,255,255,0.1); }
.bg-map p { font-size: 13px; word-wrap: break-word; overflow-wrap: break-word; }

/* ── PLACEHOLDER ─────────────────────────────────────── */

.placeholder-box {
  border: 1px dashed rgba(255,204,102,0.3);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  margin-top: 12px;
}
.placeholder-box p { margin-bottom: 6px; }

/* ── VIDEO ───────────────────────────────────────────── */

.video-wrap { text-align: center; margin-bottom: 16px; }
.video-wrap video { max-width: 100%; border: 1px solid rgba(255,204,102,0.2); border-radius: 4px; }
