:root {
  /* Tuts+ Inspired Vibrant Palette */
  --primary-color: #297be6;
  --secondary-color: #f2f5f8;
  --accent-color: #ff5a5f;

  --text-dark: #2c3e50;
  --text-muted: #6b7c93;
  --bg-light: #f7f9fa;
  --bg-white: #ffffff;
  --border-color: #e3e8ee;

  --success-color: #00b894;
  --warning-color: #fdcb6e;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Outfit', var(--font-primary);

  --box-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --box-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --border-radius: 8px;
  --border-radius-lg: 12px;

  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

p {
  text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  text-transform: capitalize;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #1a5ab3;
}

/* Navbar */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--box-shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  position: relative;
  text-transform: capitalize;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #1a5ab3;
  border-color: #1a5ab3;
  box-shadow: var(--box-shadow-md);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 8rem 0;
  color: #ffffff;
  border-bottom: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.bg-white .hero-title,
.bg-white .hero-subtitle {
  color: #333;
  text-shadow: none
}

/* Search Box */
.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input {
  padding: 1rem 1.5rem;
  padding-right: 4rem;
  border-radius: 50px;
  border: 2px solid var(--border-color);
  box-shadow: var(--box-shadow-sm);
  font-size: 1.1rem;
}

.search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.bg-blur {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.border-white-50 {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.search-box button {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  border-radius: 50px;
  width: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  background: var(--bg-white);
  box-shadow: var(--box-shadow-sm);
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.card-img-top {
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.card-title a {
  color: var(--text-dark);
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Badges */
.badge-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Icons */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.bg-light-primary {
  background-color: rgba(41, 123, 230, 0.1);
  color: var(--primary-color);
}

.bg-light-accent {
  background-color: rgba(255, 90, 95, 0.1);
  color: var(--accent-color);
}

.bg-light-success {
  background-color: rgba(0, 184, 148, 0.1);
  color: var(--success-color);
}

/* Section Titles */
.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  font-weight: 800;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin-top: 1rem;
  border-radius: 2px;
}

.section-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background-color: #1a202c;
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer p {
  color: #cbd5e0;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #cbd5e0;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Video Player Wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  padding-top: 25px;
  height: 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  margin-bottom: 2rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Sidebar Navigation (Lessons/Forum) */
.sidebar-box {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--box-shadow-sm);
  position: sticky;
  top: 20px;
}

.lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lesson-list li {
  border-bottom: 1px solid var(--border-color);
}

.lesson-list li:last-child {
  border-bottom: none;
}

.lesson-list a {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-dark);
  font-weight: 500;
  text-transform: capitalize;
}

.lesson-list a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.lesson-list a.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* Forum List */
.forum-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.forum-item:hover {
  box-shadow: var(--box-shadow-md);
  border-color: #cbd5e0;
}

.forum-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  text-align: center;
}

.forum-stats .count {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.forum-stats .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-box {
  padding: 0.5rem;
  border-radius: var(--border-radius);
  background: var(--secondary-color);
  margin-bottom: 0.5rem;
  width: 100%;
}

.stat-box.answered {
  background: rgba(0, 184, 148, 0.1);
  color: var(--success-color);
}

/* Comments / Answers */
.comment-box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.comment-meta {
  flex-grow: 1;
}

.comment-author {
  font-weight: 700;
  margin: 0;
}

.comment-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* CTA Banner (e.g. Guest Post) */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a5ab3 100%);
  color: #fff;
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--box-shadow-lg);
}

.cta-banner h3 {
  color: #fff;
}

.btn-group-sm>.btn,
.btn-sm {
  padding: 0.5rem 1.25rem;
  border-radius: 8px
}

/* Breadcrumbs Capitalization */
.breadcrumb-item {
    text-transform: capitalize;
}

/* Topic / Category Badges */
.badge-category {
    text-transform: capitalize !important;
}