/* =========================
   Prof School Blog Styles
   Colors from profaffiliate.com
   ========================= */

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #343a40;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
}

body { 
  background: var(--light-bg);
  font-family: 'Alexandria', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.brand { 
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--dark-color) !important;
  font-size: 1.5rem;
}

.nav-cats a { 
  white-space: nowrap;
  color: var(--dark-color);
  font-weight: 500;
  transition: color .3s;
}

.nav-cats a:hover {
  color: var(--primary-color);
}

/* Cards */
.card {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: transform .3s, box-shadow .3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,.1);
}

.post-card img { 
  object-fit: cover;
  height: 160px;
  border-radius: 10px 10px 0 0;
}

.sidebar-card { 
  object-fit: cover;
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.section-title { 
  font-weight: 800;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  border-radius: 8px;
  transition: all .3s;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,123,255,.3);
}

.btn-dark {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
  font-weight: 600;
  border-radius: 8px;
  transition: all .3s;
}

.btn-dark:hover {
  background-color: #23272b;
  border-color: #1d2124;
  transform: translateY(-2px);
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
}

.text-bg-secondary {
  background-color: var(--secondary-color) !important;
}

/* Sidebar */
.sticky-sidebar { 
  position: sticky;
  top: 16px;
}

/* Rating Stars */
#rating-stars {
  font-size: 28px;
  cursor: pointer;    
  user-select: none;
}

#rating-stars .star {
  color: #ccc;
  transition: color .2s;
}

#rating-stars .star:hover,
#rating-stars .star.hovered {
  color: var(--warning-color);
}

#rating-stars.disabled {
  pointer-events: none;
  opacity: .6;
}

/* Carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--dark-color);
  border-radius: 50%;
  padding: 20px;
}

/* Links */
a {
  color: var(--primary-color);
  transition: color .3s;
}

a:hover {
  color: #0056b3;
}

/* Article Content */
article {
  font-size: 1.1rem;
  line-height: 1.8;
}

article h1, article h2, article h3 {
  color: var(--dark-color);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

article p {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sticky-sidebar {
    position: relative;
    top: 0;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
}