/* Academy-like brand palette */
:root {
  --brand-red: #e41e26; /* primary accent */
  --brand-navy: #0b2a4a; /* deep navy for headings and footer */
  --brand-dark: #111435; /* general dark text */
  --text: #1c1f2a;
  --bg: #ffffff;
  --muted: #6b6f8a;
  --border: #e6e8f0;
  --hero-bg: #f7f8fa;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: #CB0101;
}
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0; }
.logo { height: 112px; display: block; }
.nav a { color: #fff; text-decoration: none; margin-inline-start: 16px; font-weight: 700; }
.nav a:hover { color: rgba(255,255,255,0.85); }

.hero { background: var(--hero-bg); color: var(--brand-navy); padding: 64px 0; border-bottom: 1px solid var(--border); }
.hero .container { text-align: center; }
.hero h1 { margin: 0 0 8px; font-size: 3rem; font-weight: 800; }
.hero .subtitle { margin: 0 0 24px; font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; }

.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-outline { background: transparent; color: var(--brand-red); border-color: var(--brand-red); }
.btn-outline:hover { background: rgba(228,30,38,0.08); }

.programs { padding: 40px 0; }
.programs h2 { font-size: 1.6rem; margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; box-shadow: 0 1px 2px rgba(17,20,53,0.06); }
.card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card.focus { border-color: var(--brand-red); }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(228,30,38,0.12); color: var(--brand-red); font-weight: 700; }

.about { padding: 32px 0; background: #CB0101; color: #fff; border-top: none; border-bottom: none; }
.about h2 { color: #fff; }
.about p { color: #fff; }

.site-footer { padding: 24px 0; background: #706F6F; color: #fff; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-content { display: flex; gap: 12px; align-items: center; justify-content: space-between; color: rgba(255,255,255,0.9); }

/* Partners */
.partners { padding: 32px 0; }
.partners h2 { font-size: 1.6rem; margin: 0 0 16px; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; align-items: center; }
.partners-grid .partner-logo { width: 100%; height: 150px; object-fit: contain; filter: grayscale(0%); background: #fff; padding: 8px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand-navy); }

/* Payment */
.narrow { max-width: 720px; }
.payment-card { text-align: center; margin: 40px auto; }
.payment-card .price { font-size: 1.8rem; margin: 12px 0; color: var(--brand-red); font-weight: 800; }
.fineprint { color: var(--muted); font-size: 0.9rem; }

/* Course layout */
.course-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 24px 0; }
.course-video h1 { margin: 0 0 12px; }

/* Course progress */
.course-summary .course-progress { margin-top: 16px; }
.course-summary .course-progress h3 { margin: 0 0 8px; font-size: 1.2rem; }
.course-summary .progress { position: relative; background: #f0f2f8; border: 1px solid var(--border); border-radius: 8px; height: 12px; }
.course-summary .progress-bar { background: var(--brand-red); height: 100%; border-radius: 8px; }
.course-summary .progress-text { display: block; margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.course-summary .chapters { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.course-summary .chapter { padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.course-summary .chapter.done { border-color: #ffd5d8; background: #fff5f6; }
.course-summary .chapter.current { border-color: var(--brand-red); background: rgba(228,30,38,0.10); font-weight: 700; }
.course-summary .chapter.upcoming { opacity: 0.9; }
.video-wrapper { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; min-height: 540px; }
.video-wrapper video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.simulate { margin: 12px 0; color: var(--muted); }
.course-summary { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; }
.course-summary h2 { margin: 0 0 8px; }
.course-summary ul { margin: 0; padding: 0 18px; color: var(--muted); }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(17,20,53,0.55); display: grid; place-items: center; z-index: 1000; }
.modal.hidden { display: none; }
.modal-content { width: 95%; max-width: 560px; background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 16px; box-shadow: 0 6px 24px rgba(17,20,53,0.2); }
.choices { display: grid; gap: 8px; margin: 12px 0; }
.choices label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-start; gap: 8px; }
.feedback { margin-top: 8px; color: var(--brand-red); font-weight: 700; }

@media (max-width: 900px) {
  .course-layout { grid-template-columns: 1fr; }
}

/* Custom player controls */
.player-controls { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; margin-top: 12px; }
.btn-sm { padding: 8px 12px; font-size: 0.9rem; }
.time { color: var(--muted); font-weight: 600; }
.seek { width: 100%; }
.volume { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.player-controls input[type="range"] { accent-color: var(--brand-red); }
/* Volume slider guard to prevent interacting with 0–20% area */
.volume-slider { position: relative; display: inline-block; }
.volume input#volume { width: 180px; }
.volume-guard { position: absolute; left: 0; top: 0; height: 100%; width: 20%; pointer-events: auto; z-index: 2; cursor: not-allowed; background: transparent; }

/* Testimonials */
.testimonials { padding: 40px 0; }
.testimonials h2 { font-size: 1.6rem; margin: 0 0 16px; }
.testimonials .card { text-align: left; }