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

:root {
  --bg: #0f0f15;
  --bg-2: #1a1a24;
  --primary: #c41e3a;
  --gold: #d4af37;
  --text: #f0f0f0;
  --text-muted: #a8a8b8;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
}

/* ===== HIỆU ỨNG DẢI BĂNG TRƯỢT NGANG ===== */
.presentation { 
  position: relative; 
  width: 100vw; 
  height: 100vh; 
  overflow: hidden; 
}

/* Dải băng chứa tất cả các slide */
.slides-wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Từng slide chiếm trọn 1 màn hình */
.slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  padding: 40px 60px 80px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  position: relative;
}

/* Nền mờ ảo nghệ thuật */
.slide::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.05) 0%, transparent 60%);
  z-index: -1; pointer-events: none;
}

.slide-content { width: 100%; max-width: 1300px; }

h2 {
  font-size: 2.2rem; color: var(--gold);
  margin-bottom: 25px;
  border-left: 5px solid var(--primary);
  padding-left: 15px;
}

.conclusion h2 {
  border-left: none;
  padding-left: 0;
  text-align: center;
}

h3 { font-size: 1.2rem; color: var(--primary); margin: 15px 0 10px; }

/* ===== SLIDE TIÊU ĐỀ ===== */
.title-slide { text-align: center; padding: 20px; }
.title-slide h1 { font-size: 3.5rem; color: var(--primary); letter-spacing: 6px; margin-bottom: 15px; text-shadow: 0 0 30px rgba(196, 30, 58, 0.5); }
.title-slide .subtitle { font-size: 1.4rem; color: var(--gold); margin-bottom: 10px; }
.title-slide .source { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px; }

.hero-image-container {
  width: 320px; height: 200px; margin: 0 auto 20px auto;
  border-radius: 10px; overflow: hidden;
  border: 3px solid var(--gold); box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.hero-image-container img { width: 100%; height: 100%; object-fit: cover; }

.group-btn {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold); padding: 10px 25px;
  font-size: 1.1rem; font-weight: bold; border-radius: 30px;
  cursor: pointer; transition: all 0.3s; margin-bottom: 20px;
  display: inline-block;
}
.group-btn:hover { background: var(--gold); color: var(--bg); }
.hint { color: var(--text-muted); font-style: italic; font-size: 0.9rem; }

/* ===== HAI CỘT CƠ BẢN ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.col ul { list-style: none; }
.col ul li { padding: 8px 0 8px 25px; position: relative; line-height: 1.6; }
.col ul li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }
.col.highlight { background: linear-gradient(135deg, rgba(196, 30, 58, 0.15), rgba(212, 175, 55, 0.08)); border: 1px solid var(--primary); padding: 25px; border-radius: 12px; }
.col.highlight .big { font-size: 2rem; color: var(--gold); font-weight: bold; margin: 10px 0; }

/* CSS HÌNH MINH HỌA */
.inline-image { margin-top: 15px; border-radius: 8px; overflow: hidden; border: 2px solid rgba(212, 175, 55, 0.5); }
.inline-image img { width: 100%; height: 180px; object-fit: cover; display: block; }

.image-col { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.framed-image {
  background: #fff; padding: 10px 10px 20px 10px;
  border-radius: 5px; box-shadow: 0 15px 30px rgba(0,0,0,0.6);
  transform: rotate(2deg); transition: transform 0.3s;
  max-width: 350px;
}
.framed-image:hover { transform: rotate(0deg) scale(1.05); }
.framed-image img { width: 100%; height: auto; border-radius: 3px; display: block; }
.img-caption { color: #333; text-align: center; font-size: 0.85rem; margin-top: 10px; font-style: italic; font-weight: bold; }

/* ===== TIMELINE ===== */
.timeline { max-height: 70vh; overflow-y: auto; padding: 10px 20px 10px 0; }
.tl-item { display: flex; gap: 25px; padding: 12px 15px; border-bottom: 1px solid rgba(212, 175, 55, 0.15); border-radius: 6px; transition: background 0.2s; }
.tl-item:hover { background: rgba(196, 30, 58, 0.1); }
.tl-year { flex-shrink: 0; min-width: 130px; font-size: 1.2rem; font-weight: bold; color: var(--gold); padding-top: 3px; }
.tl-content h3 { margin: 0 0 4px; color: var(--primary); font-size: 1.05rem; }
.tl-content p { color: var(--text-muted); line-height: 1.5; font-size: 0.92rem; }

/* ===== BẢN ĐỒ TƯƠNG TÁC 2 CỘT ===== */
.map-slide { height: 100%; }
.map-layout { display: grid; grid-template-columns: 350px 1fr; gap: 20px; height: 70vh; }
.map-info-panel { background: var(--bg-2); padding: 25px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.3); display: flex; flex-direction: column; }
.step-indicator { color: var(--gold); font-size: 0.9rem; font-weight: bold; margin-bottom: 10px; text-transform: uppercase; }
.map-info-panel h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 15px; }
.map-info-panel p { line-height: 1.7; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }

.action-btn { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 8px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: background 0.3s; }
.action-btn:hover { background: #a0182f; }
.action-btn:disabled { background: #555; cursor: not-allowed; }

.map-wrapper { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 20px rgba(212, 175, 55, 0.15); }
#map { width: 100%; height: 100%; background: #222; }

/* ===== MAP LEGEND & MARKERS ===== */
.map-legend { position: absolute; bottom: 15px; left: 15px; background: rgba(15, 15, 21, 0.92); padding: 10px 15px; border-radius: 8px; border: 1px solid var(--gold); z-index: 1000; font-size: 0.8rem; }
.legend-item { display: flex; align-items: center; gap: 8px; padding: 2px 0; color: var(--text); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid white; }
.dot.start { background: #2ecc71; } .dot.battle { background: #e74c3c; } .dot.capital { background: #f39c12; }
.line { display: inline-block; width: 20px; height: 0; border-top: 3px dashed var(--primary); }

.custom-marker { background: none !important; border: none !important; }
.custom-marker div { width: 20px; height: 20px; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.6); }
.custom-marker.start div { background: #2ecc71; }
.custom-marker.battle div { background: #e74c3c; animation: pulse 1.5s infinite; }
.custom-marker.capital div { background: #f39c12; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 5px rgba(231, 76, 60, 0.6); } 50% { box-shadow: 0 0 20px rgba(231, 76, 60, 1); } }

/* ===== TRƯỚC - SAU ===== */
.before-after { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }
.ba-box { flex: 1; max-width: 380px; padding: 15px; border-radius: 10px; text-align: center; }
.ba-box.before { background: rgba(100, 100, 100, 0.15); border: 1px solid #555; }
.ba-box.after { background: rgba(46, 204, 113, 0.15); border: 1px solid #2ecc71; }
.ba-box h4 { color: var(--gold); margin-bottom: 8px; font-size: 1.1rem; }
.ba-box p { color: var(--text-muted); line-height: 1.5; font-size: 0.95rem;}
.arrow { font-size: 2.5rem; color: var(--primary); font-weight: bold; }

/* ===== KẾT LUẬN ===== */
.conclusion { text-align: center; }
.quote-box {
  position: relative;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.15), rgba(15, 15, 21, 0.8));
  border: 1px solid var(--gold); 
  border-radius: 15px;
  padding: 50px;
  margin: 30px auto;
  max-width: 900px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.quote-box::before {
  content: '“'; position: absolute; top: -10px; left: 20px;
  font-size: 6rem; color: var(--primary); font-family: serif; opacity: 0.5;
}
.big-quote { font-size: 1.4rem; font-style: italic; color: var(--gold); line-height: 1.8; margin: 0; }
.thanks { font-size: 1.3rem; color: var(--primary); margin-top: 30px; letter-spacing: 2px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 2000;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background: var(--bg-2); padding: 40px; border-radius: 15px;
  border: 1px solid var(--gold); max-width: 600px; text-align: left;
  transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-content h2 { border: none; padding: 0; color: var(--gold); text-align: center; margin-bottom: 20px; }
.close-btn { display: block; width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 1rem; }

.member-list { list-style: none; margin-bottom: 25px; }
.member-list li { padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); color: var(--text-muted); }
.member-list li strong { color: var(--text); }

/* ===== NÚT TẢI BÁO CÁO ===== */
.report-btn {
  position: fixed; bottom: 28px; left: 30px;
  background: rgba(15, 15, 21, 0.85); color: var(--gold);
  border: 1px solid var(--gold); padding: 8px 16px;
  border-radius: 20px; cursor: pointer; font-size: 0.9rem;
  z-index: 1000; transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.report-btn:hover { background: var(--gold); color: var(--bg); }

/* ===== ĐIỀU HƯỚNG ===== */
.nav-controls { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; z-index: 1000; }
.nav-btn { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--gold); background: rgba(15, 15, 21, 0.85); color: var(--gold); font-size: 1.5rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.nav-btn:hover:not(:disabled) { background: var(--primary); color: white; border-color: var(--primary); }
.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.dots { display: flex; gap: 8px; }
.dot-btn { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(212, 175, 55, 0.3); cursor: pointer; transition: all 0.2s; padding: 0; }
.dot-btn.active { background: var(--gold); transform: scale(1.4); }
.slide-counter { position: fixed; bottom: 28px; right: 30px; color: var(--gold); font-size: 0.9rem; z-index: 1000; background: rgba(15, 15, 21, 0.85); padding: 4px 12px; border-radius: 15px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); } ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-info-panel { height: auto; }
  .map-wrapper { height: 50vh; }
  .two-col { grid-template-columns: 1fr; }
  .framed-image { max-width: 100%; margin-top: 20px; }
}