/* Full-bleed app container on these pages */
.page-id-2855 .ene-akademy,
.page-id-2845 .ene-akademy,
.page-id 2849 .ene-akademy,
.page-id-2743 .ene-akademy,
.page-id-2813 .ene-akademy,
.page-id-2815 .ene-akademy,
.page-id-2821 .ene-akademy,
.page-id-2795 .ene-akademy {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 0!important; 
}


/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red-dark: #B9041C;
  --red-mid: #d9192e;
  --red-light: #fde8ea;
  --red-bg-soft: #f4d8da;
  --error: #c0392b;
  --error-bg: #fff0f0;
  --yellow-bg: #fffbea;
  --yellow-border: #f0c040;
  --yellow-text: #7a6000;
  --locked-bg: #f5f5f7;
  --locked-text: #a0a0a8;
  --sidebar-w: 268px;
  --header-h: 56px;
  --bg: #ffffff;
  --bg2: #fdf5f5;
  --bg3: #f5e8e9;
  --border: #e8d0d2;
  --border2: #d4b8bb;
  --text1: #111827;
  --text2: #4b5563;
  --text3: #9ca3af;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
}
html, body { font-family: 'Segoe UI', system-ui, sans-serif; font-size: 16px; color: var(--text1); background: var(--bg2); }

/* ─── LAYOUT ─── */
.app { display: flex; flex-direction: column; }

/* ─── TOPBAR ─── */
.topbar {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; background: var(--bg); border-bottom: 1px solid var(--border);
  position: relative; z-index: 100; flex-shrink: 0; gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo { font-size: 20px; font-weight: 700; color: var(--red-dark); letter-spacing: -0.5px; }
.logo span { color: var(--red-mid); }
.course-badge {
  background: var(--red-bg-soft); color: var(--red-dark);
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 20px; letter-spacing: 0.3px; white-space: nowrap;
}
.hamburger {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 10px; cursor: pointer;
  font-size: 16px; color: var(--text2); line-height: 1;
}
.nav-buttons {
  display: flex; align-items: center; gap: 8px;
}
.nav-btn {
  background: var(--bg); color: var(--text2);
  border: 1px solid var(--border2);
  padding: 7px 14px; border-radius: 20px; cursor: pointer;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-btn:hover {
  background: var(--bg2);
  color: var(--text1);
  border-color: var(--border2);
  transform: translateY(-1px);
}
.nav-btn:active { transform: translateY(0); }
.nav-btn.next {
  background: var(--red-dark);
  color: white;
  border-color: var(--red-dark);
}
.nav-btn.next:hover {
  background: #8c0315;
  border-color: #8c0315;
}
.progress-summary { display: flex; align-items: center; gap: 10px; }
.progress-bar-wrap { width: 130px; height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--red-mid); border-radius: 3px; transition: width 0.5s ease; width: 0%; }
.progress-label { font-size: 12px; color: var(--text2); white-space: nowrap; }
.full-test-btn {
  background: var(--red-dark); color: white; border: none;
  padding: 7px 14px; border-radius: 20px; cursor: pointer;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.2px;
}
.full-test-btn:hover { background: #8c0315; transform: translateY(-1px); }
.full-test-btn:active { transform: translateY(0); }

/* ─── FULL TEST OVERLAY ─── */
.ft-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: var(--bg); overflow-y: auto;
}
.ft-overlay.open { display: block; }
.ft-header {
  position: sticky; top: 0; background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; z-index: 10;
}
.ft-header-left { display: flex; align-items: center; gap: 12px; }
.ft-title { font-size: 16px; font-weight: 700; color: var(--red-dark); }
.ft-subtitle { font-size: 12px; color: var(--text3); }
.ft-close-btn {
  background: none; border: 1px solid var(--border2);
  padding: 6px 14px; border-radius: 20px; cursor: pointer;
  font-size: 13px; color: var(--text2); transition: all 0.2s;
}
.ft-close-btn:hover { background: var(--bg2); color: var(--text1); }
.ft-progress-bar-wrap { flex: 1; max-width: 200px; height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.ft-progress-bar-fill { height: 100%; background: var(--red-mid); border-radius: 3px; transition: width 0.4s ease; width: 0%; }
.ft-progress-label { font-size: 12px; color: var(--text2); white-space: nowrap; }

.ft-body { max-width: 760px; margin: 0 auto; padding: 28px 24px 60px; }

.ft-module-block { margin-bottom: 32px; }
.ft-module-title {
  font-size: 13px; font-weight: 700; color: var(--red-dark);
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 8px 0; margin-bottom: 12px;
  border-bottom: 2px solid var(--red-bg-soft);
  display: flex; align-items: center; gap: 8px;
}
.ft-mod-badge {
  background: var(--red-bg-soft); color: var(--red-dark);
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
}

.ft-actions {
  position: sticky; bottom: 0; background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ft-check-btn {
  background: var(--red-dark); color: white; border: none;
  padding: 11px 28px; border-radius: 24px; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: background 0.2s;
}
.ft-check-btn:hover { background: #8c0315; }
.ft-retry-btn {
  background: var(--bg); color: var(--text2);
  border: 1px solid var(--border2); padding: 11px 22px;
  border-radius: 24px; cursor: pointer; font-size: 14px;
  transition: all 0.2s; display: none;
}
.ft-retry-btn:hover { color: var(--text1); border-color: var(--border2); }
.ft-answered-counter { font-size: 13px; color: var(--text3); margin-left: auto; }

.ft-result {
  margin: 20px 24px 0; padding: 18px 20px;
  border-radius: var(--radius-lg); display: none;
  font-size: 14px; line-height: 1.7;
}
.ft-result.show { display: block; }
.ft-result.great { background: var(--red-bg-soft); color: var(--red-dark); border: 1px solid var(--red-mid); }
.ft-result.retry { background: #fff0f0; color: #c0392b; border: 1px solid var(--error); }
.ft-result h3 { font-size: 18px; margin-bottom: 8px; }
.ft-module-scores { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.ft-mod-score {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 12px;
  font-size: 12px; color: var(--text2);
}
.ft-mod-score.pass { border-color: var(--red-mid); background: var(--red-bg-soft); color: var(--red-dark); }
.ft-mod-score.fail { border-color: var(--error); background: #fff0f0; color: #c0392b; }
.ft-mod-score strong { display: block; font-size: 13px; margin-bottom: 2px; }

/* ─── BODY ROW ─── */
.body-row { display: flex; align-items: flex-start; }

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--bg); border-right: 1px solid var(--border);
  padding: 16px 0; display: flex; flex-direction: column;
  position: sticky; top: 20px;
}
.sidebar-section-label {
  font-size: 10px; font-weight: 700; color: var(--text3);
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0 16px 12px;
}
.mod-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; position: relative;
  border-left: 3px solid transparent; transition: background 0.15s;
}
.mod-item.unlocked { cursor: pointer; }
.mod-item.unlocked:hover { background: var(--bg2); }
.mod-item.active { background: var(--red-bg-soft); border-left-color: var(--red-mid); }

.mod-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
  border: 1.5px solid var(--border2); color: var(--text3);
  background: var(--bg2); transition: all 0.2s;
}
.mod-item.active .mod-num { background: var(--red-dark); border-color: var(--red-dark); color: white; }
.mod-item.done .mod-num { background: var(--red-light); border-color: var(--red-mid); color: var(--red-dark); }

.mod-info { flex: 1; min-width: 0; }
.mod-title { font-size: 13px; color: var(--text2); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-item.active .mod-title { color: var(--red-dark); font-weight: 600; }
.mod-sub { font-size: 11px; color: var(--text3); margin-top: 1px; }

.mod-status-icon { font-size: 13px; flex-shrink: 0; }

/* ─── MAIN ─── */
.main { flex: 1; padding: 28px 32px; }
.mod-wrap { max-width: 720px; margin: 0 auto; }

/* ─── MODULE HEADER ─── */
.mod-header { margin-bottom: 24px; }
.mod-header-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mod-tag { font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }
.mod-header h2 { font-size: 22px; font-weight: 600; color: var(--text1); margin-bottom: 4px; }
.mod-header-en { font-size: 14px; color: var(--text3); margin-bottom: 10px; font-style: italic; }
.mod-objective {
  font-size: 14px; color: var(--text2); line-height: 1.6;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px;
  display: flex; align-items: flex-start; gap: 8px;
}
.obj-label { font-weight: 600; color: var(--text1); flex-shrink: 0; }

/* ─── COMPLETION BANNER ─── */
.completion-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--red-bg-soft); border: 1px solid var(--red-mid);
  border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.banner-text { font-size: 14px; color: var(--red-dark); }
.banner-text strong { font-weight: 600; }
.banner-btn {
  background: var(--red-dark); color: white; border: none;
  padding: 8px 16px; border-radius: 20px; cursor: pointer;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background 0.2s;
}
.banner-btn:hover { background: #145e42; }

/* ─── STEPPER (also serves as tab nav) ─── */
.stepper {
  display: flex; align-items: stretch;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 24px;
  overflow: hidden;
}
.step {
  display: flex; align-items: center; gap: 10px; flex: 1;
  cursor: pointer; padding: 14px 16px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
  background: var(--bg2);
}
.step:last-child { border-right: none; }
.step:hover { background: var(--red-bg-soft); }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  border: 2px solid var(--border2); color: var(--text3); background: var(--bg);
  transition: all 0.25s;
}
.step-label { font-size: 13px; color: var(--text2); font-weight: 500; }
.step-sublabel { font-size: 11px; color: var(--text3); margin-top: 1px; }
.step.active { background: var(--red-bg-soft); }
.step.active .step-circle { background: var(--red-dark); border-color: var(--red-dark); color: white; }
.step.active .step-label { color: var(--red-dark); font-weight: 700; }
.step.done { background: var(--bg2); }
.step.done .step-circle { background: var(--red-light); border-color: var(--red-mid); color: var(--red-dark); }
.step-arrow { display: none; }

/* ─── TAB CONTENT ─── */
.tab-content { display: none; }
.tab-content.active { display: block; }
.section-header { margin-bottom: 16px; }
.section-header h3 { font-size: 17px; font-weight: 600; color: var(--text1); margin-bottom: 5px; }
.section-desc { font-size: 13px; color: var(--text2); line-height: 1.65; }

/* ─── VIDEO ─── */
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  margin-bottom: 14px; background: #0d1f18;
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-placeholder {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2e0a0f 0%, #1a0508 100%);
  color: white; gap: 10px;
}
.video-placeholder .play-icon { font-size: 44px; opacity: 0.35; }
.video-placeholder .vp-label { font-size: 13px; opacity: 0.45; letter-spacing: 0.3px; }
.video-placeholder .vp-sub { font-size: 11px; opacity: 0.3; }

/* ─── TIP BOX ─── */
.tip-box {
  background: var(--bg2); border-left: 3px solid var(--red-mid);
  padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; color: var(--text2); margin-bottom: 14px; line-height: 1.55;
}
.tip-box strong { color: var(--text1); }

/* ─── VIDEO TOPICS ─── */
.video-topics { margin-bottom: 14px; }
.video-topics h4 { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.topics-list { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-pill { font-size: 12px; color: var(--text2); background: var(--bg); border: 1px solid var(--border); padding: 4px 10px; border-radius: 20px; }

/* ─── NUDGE ─── */
.next-nudge {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px; margin-top: 14px; gap: 12px;
}
.nudge-text { font-size: 13px; color: var(--text2); }
.nudge-text strong { color: var(--text1); }
.nudge-btn {
  background: var(--red-mid); color: white; border: none;
  padding: 8px 16px; border-radius: 20px; cursor: pointer;
  font-size: 13px; font-weight: 500; transition: background 0.2s; white-space: nowrap;
}
.nudge-btn:hover { background: var(--red-dark); }

/* ─── PODCAST PLACEHOLDER ─── */
.podcast-placeholder {
  border: 1px dashed var(--border2); border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center; margin-bottom: 14px; background: var(--bg);
}
.podcast-icon { font-size: 32px; margin-bottom: 12px; }
.podcast-placeholder h4 { font-size: 15px; font-weight: 500; color: var(--text1); margin-bottom: 6px; }
.podcast-placeholder p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.coming-badge {
  display: inline-block; margin-top: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text3); font-size: 11px; padding: 3px 10px; border-radius: 12px;
}

/* ─── QUIZ ─── */
.quiz-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
}
.quiz-meta-left { font-size: 13px; color: var(--text2); }
.quiz-meta-left strong { color: var(--text1); }
.attempt-badge {
  font-size: 11px; color: var(--text3);
  background: var(--bg2); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 12px;
}

.question {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  margin-bottom: 10px; transition: border-color 0.2s, background 0.2s;
}
.question.correct { border-color: var(--red-mid); background: var(--red-bg-soft); }
.question.wrong { border-color: var(--error); background: var(--error-bg); }
.question p { font-size: 14px; font-weight: 500; color: var(--text1); margin-bottom: 10px; }
.question label { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px; cursor: pointer; font-size: 14px; color: var(--text2); padding: 3px 0; transition: color 0.15s; }
.question label:hover { color: var(--text1); }
.question label input { flex-shrink: 0; margin-top: 3px; accent-color: var(--red-dark); }
.question label.correct-answer { color: var(--red-dark); font-weight: 500; }
.question label.wrong-answer { color: var(--error); text-decoration: line-through; opacity: 0.7; }

.answer-feedback {
  font-size: 12px; margin-top: 10px; font-weight: 500;
  padding: 7px 11px; border-radius: var(--radius-sm); line-height: 1.5;
}
.answer-feedback.correct { color: var(--red-dark); background: rgba(45,190,135,0.12); }
.answer-feedback.wrong { color: #c0392b; background: rgba(224,85,85,0.10); }

.quiz-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.btn-check {
  background: var(--red-mid); color: white; border: none;
  padding: 10px 24px; border-radius: 24px; cursor: pointer;
  font-size: 14px; font-weight: 500; transition: background 0.2s;
}
.btn-check:hover { background: var(--red-dark); }
.btn-retry {
  background: var(--bg); color: var(--text2);
  border: 1px solid var(--border2); padding: 10px 20px;
  border-radius: 24px; cursor: pointer; font-size: 14px;
  transition: all 0.2s; display: none;
}
.btn-retry:hover { color: var(--text1); }
.quiz-counter { font-size: 12px; color: var(--text3); margin-left: auto; }

.quiz-result {
  margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 14px; display: none; line-height: 1.6;
}
.quiz-result.show { display: block; }
.quiz-result.great { background: var(--red-bg-soft); color: var(--red-dark); border: 1px solid var(--red-mid); }
.quiz-result.good { background: var(--yellow-bg); color: var(--yellow-text); border: 1px solid var(--yellow-border); }
.quiz-result.retry { background: var(--error-bg); color: #c0392b; border: 1px solid var(--error); }

.unlock-progress {
  margin-top: 10px; padding: 10px 14px;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(185,4,28,0.15);
  border-radius: var(--radius-sm); font-size: 13px; color: #c0392b;
}
.unlock-progress .unlock-bar-wrap { height: 4px; background: rgba(185,4,28,0.08); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.unlock-progress .unlock-bar { height: 100%; background: var(--red-mid); border-radius: 2px; transition: width 0.3s; }

/* ─── MOBILE ─── */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 199; }
.sidebar-overlay.open { display: block; }

@media (max-width: 768px) {
  .full-test-btn { font-size: 11px; padding: 6px 10px; }
  .hamburger { display: flex; align-items: center; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; z-index: 200; overflow-y: auto;
    transform: translateX(-100%); transition: transform 0.25s ease;
    box-shadow: var(--shadow-md);
  }
  .sidebar.open { transform: translateX(0); }
  .main { padding: 20px 16px; }
  .progress-summary { display: none; }
  .next-nudge { flex-direction: column; align-items: flex-start; }
  .completion-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .mod-header h2 { font-size: 18px; }
  .stepper { padding: 10px; }
  .step-sublabel { display: none; }
}