:root {
  --primary: #1a237e;
  --primary-dark: #0d1449;
  --primary-light: #3949ab;
  --accent: #ffb300;
  --light-gray: #f7f9fa;
  --border-gray: #e0e0e0;
  --text-dark: #1c1d1f;
  --text-muted: #6a6f73;
}

body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
}

a {
  text-decoration: none;
}

/* ---------- Navbar ---------- */
.navbar-brand-custom {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.navbar-custom {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-gray);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.navbar-custom .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.5rem 1rem !important;
}

.navbar-custom .nav-link:hover {
  color: var(--primary);
}

.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
}

.btn-primary-custom:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-outline-primary-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  padding: 0.4rem 1.4rem;
}

.btn-outline-primary-custom:hover {
  background-color: var(--primary);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 5rem 0;
}

.hero-section h1 {
  font-weight: 800;
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.hero-section p.lead {
  font-size: 1.2rem;
  color: #dcdfff;
  margin-bottom: 2rem;
}

.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.hero-stats .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

/* ---------- Section titles ---------- */
.section-title {
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--text-dark);
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ---------- Cards ---------- */
.card-custom {
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.card-custom:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.card-img-top-custom {
  height: 180px;
  object-fit: cover;
  background-color: var(--light-gray);
}

.badge-category {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
}

.card-body .card-title {
  font-weight: 700;
  color: var(--text-dark);
}

.video-play-overlay {
  position: relative;
}

.video-play-overlay::after {
  content: '\f04b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2.2rem;
  background: rgba(26, 35, 126, 0.75);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
}

/* ---------- Auth pages ---------- */
.auth-card {
  max-width: 440px;
  margin: 3rem auto;
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.auth-card h2 {
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary);
}

/* ---------- Footer ---------- */
.footer-custom {
  background-color: #1c1d1f;
  color: #c1c3c5;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-custom h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-custom a {
  color: #c1c3c5;
}

.footer-custom a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #3a3b3d;
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #8e9092;
}

/* ---------- Dashboard ---------- */
.stat-card {
  border-radius: 10px;
  padding: 1.5rem;
  background-color: var(--light-gray);
  border: 1px solid var(--border-gray);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* ---------- Blog post ---------- */
.blog-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
}

.comment-box {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

/* ---------- Video watch page ---------- */
video.video-player {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

/* ---------- Misc ---------- */
.section-divider {
  padding: 4rem 0;
}

.section-divider.bg-light-gray {
  background-color: var(--light-gray);
}

.text-primary-custom {
  color: var(--primary) !important;
}

.badge-admin {
  background-color: var(--accent);
  color: #1c1d1f;
  font-weight: 700;
}
