
/* ========== RESET AND BASE STYLES ========== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #fafafa;
  line-height: 1.6;
}

a {
  color: #2980b9;
  text-decoration: none;
}

a:hover {
  color: #3498db;
  text-decoration: underline;
}

/* ========== TOP NAVIGATION ========== */

.top-nav {
  background-color: #fff;
  border-bottom: 1px solid #e1e8ed;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
}

.nav-brand {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.nav-brand:hover {
  color: #2980b9;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links > a {
  color: #666;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-links > a.active {
  color: #2980b9;
  border-bottom-color: #2980b9;
}

/* ========== THEME TOGGLE ========== */

.theme-toggle {
  background: none;
  border: 2px solid #666;
  color: #666;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  margin-left: 10px;
}

.theme-toggle:hover {
  background: #666;
  color: white;
  transform: translateY(-2px);
}

.theme-toggle i {
  transition: transform 0.3s ease;
}

/* ========== BLOG STYLES ========== */

.blog-disclaimer {
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.blog-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

.blog-section {
  margin-top: 0;
}

.blog-post {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.blog-post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.post-date {
  display: flex;
  align-items: center;
}

.post-date:before {
  content: "📅";
  margin-right: 5px;
}

.post-category {
  background: #2980b9;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.post-title {
  margin: 0 0 15px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #2980b9;
  text-decoration: none;
}

.post-excerpt {
  margin-bottom: 20px;
}

.post-excerpt p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.read-more {
  color: #2980b9;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #3498db;
  text-decoration: none;
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #f8f9fa;
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e1e8ed;
}

.tag:hover {
  background: #e9ecef;
  color: #333;
}

/* ========== BLOG FILTER STYLES ========== */

.tag-filter-container {
  margin-bottom: 2rem;
  text-align: center;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-filter {
  background: #f8f9fa;
  border: 2px solid #e1e8ed;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-filter:hover {
  background: #2980b9;
  border-color: #2980b9;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.tag-filter.active {
  background: #e74c3c;
  border-color: #e74c3c;
  color: white;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
}

.tag-filter i {
  font-size: 0.8rem;
}

/* Animation for filtered posts */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== PAGINATION ========== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 20px 0;
}

.page-current {
  background: #2980b9;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 500;
}

.page-link {
  color: #666;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e1e8ed;
}

.page-link:hover {
  background: #2980b9;
  color: white;
  text-decoration: none;
  border-color: #2980b9;
}

/* ========== RESPONSIVE BLOG ========== */

@media (max-width: 768px) {
  .blog-post {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .post-title {
    font-size: 20px;
  }
  
  .post-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .post-tags {
    width: 100%;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .post-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .post-title {
    font-size: 18px;
  }
}

/* ========== DROPDOWN MENU ========== */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  color: #666;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-toggle:hover {
  color: #333;
  border-bottom-color: #2980b9;
  text-decoration: none;
}

.dropdown-toggle i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  text-decoration: none;
  color: #2980b9;
}

/* ========== MAIN LAYOUT ========== */

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 40px 20px;
  min-height: calc(100vh - 60px);
}

/* ========== SIDEBAR ========== */

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.profile-section {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.profile-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-info {
  padding: 20px;
  text-align: center;
}

.profile-info h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

.contact-item i {
  width: 16px;
  color: #888;
}

.contact-item a {
  color: #666;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #2980b9;
  text-decoration: none;
}

/* ========== MAIN CONTENT ========== */

.content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.content-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e1e8ed;
}

.about-section h2 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  margin-top: 30px;
}

.about-section h2:first-of-type {
  margin-top: 0;
}

.about-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  margin-top: 25px;
}

.about-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

/* ========== FULL BLOG POST STYLES ========== */

.back-link {
  margin-bottom: 2rem;
}

.back-link a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-link a:hover {
  text-decoration: underline;
}

.blog-post-full {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e1e8ed;
}

.post-header h1 {
  margin: 1rem 0 0 0;
  color: #333;
  font-size: 2rem;
  line-height: 1.3;
}

.post-content {
  line-height: 1.7;
  color: #444;
}

.post-content h2 {
  color: #333;
  margin: 2rem 0 1rem 0;
  font-size: 1.4rem;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
}

.post-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin: 0.5rem 0;
}

.post-content p {
  margin: 1rem 0;
}

/* Study Materials Styles */
.study-materials {
  margin: 2rem 0;
}

.study-materials h3 {
  color: #333;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.notes-list {
  border-left: 3px solid #007bff;
  padding-left: 1rem;
}

.note-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.note-item:last-child {
  border-bottom: none;
}

.note-title {
  color: #333;
  font-weight: 500;
}

.note-item a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.9rem;
}

.note-item a:hover {
  text-decoration: underline;
}

/* Code blocks and technical content */
.post-content pre {
  background: #f8f9fa;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content code {
  background: #f1f3f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 4px solid #007bff;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0 6px 6px 0;
}

.comparison-table {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e1e8ed;
}

.comparison-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.comparison-table tr:hover {
  background: #f8f9fa;
}

/* Image containers and graph examples */
.image-container {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e8ed;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.graph-examples {
  margin: 2rem 0;
}

.graph-representation,
.graph-types {
  margin: 2rem 0;
}

.implementation-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.fun-moment {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid #28a745;
}

.fun-moment h4 {
  color: #28a745;
  margin: 0 0 1rem 0;
}

/* Big Data specific styles */
.course-info {
  background: #f8f9fa;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.course-info h3 {
  margin: 0 0 1rem 0;
  color: #333;
}

.course-info ul {
  margin: 0;
  padding-left: 1.5rem;
}

.status-badge {
  background: #007bff;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.key-definition {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #2196f3;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 1.1rem;
}

.velocity-factors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.factor {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #007bff;
}

.factor h4 {
  margin: 0 0 0.5rem 0;
  color: #007bff;
}

.factor p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.red-thread {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 12px;
  border: 2px solid #ff9800;
}

.thread-item {
  background: #ff9800;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.arrow {
  font-size: 1.5rem;
  color: #ff9800;
  font-weight: bold;
}

@media (max-width: 768px) {
  .red-thread {
    flex-direction: column;
  }
  
  .arrow {
    transform: rotate(90deg);
  }
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
    height: 50px;
  }
  
  .nav-brand {
    font-size: 18px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .dropdown-menu {
    min-width: 250px;
    right: 0;
    left: auto;
  }
  
  .main-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 15px;
  }
  
  .sidebar {
    position: static;
    order: 2;
  }
  
  .content {
    padding: 30px 20px;
  }
  
  .content-header h1 {
    font-size: 28px;
  }
  
  .about-section h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 15px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  
  .dropdown-menu {
    min-width: 200px;
  }
  
  .profile-image {
    height: 150px;
  }
  
  .profile-image img {
    width: 100px;
    height: 100px;
  }
  
  .profile-info {
    padding: 15px;
  }
  
  .profile-info h2 {
    font-size: 20px;
  }
  
  .content {
    padding: 20px 15px;
  }
  
  .content-header h1 {
    font-size: 24px;
  }
  
  /* Filter buttons responsive */
  .tag-filters {
    gap: 0.3rem;
  }
  
  .tag-filter {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ========== DARK MODE STYLES ========== */

body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

/* Force all paragraphs, lists, and text to be light in dark mode */
body.dark-mode p,
body.dark-mode li,
body.dark-mode span,
body.dark-mode div {
  color: #b0b0b0 !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #e0e0e0 !important;
}

body.dark-mode strong {
  color: #e0e0e0 !important;
}

body.dark-mode em {
  color: #c0c0c0 !important;
}

/* Navigation dark mode */
body.dark-mode .top-nav {
  background: #2d2d2d;
  border-bottom-color: #404040;
}

body.dark-mode .nav-brand {
  color: #e0e0e0;
}

body.dark-mode .nav-links > a {
  color: #b0b0b0;
}

body.dark-mode .nav-links > a:hover {
  color: #e0e0e0;
}

body.dark-mode .nav-links > a.active {
  color: #64b5f6;
  border-bottom-color: #64b5f6;
}

body.dark-mode .theme-toggle {
  border-color: #b0b0b0;
  color: #b0b0b0;
}

body.dark-mode .theme-toggle:hover {
  background: #b0b0b0;
  color: #1a1a1a;
}

/* Sidebar dark mode */
body.dark-mode .sidebar {
  background: #2d2d2d;
  border-right-color: #404040;
}

body.dark-mode .profile-section {
  background: #2d2d2d;
}

body.dark-mode .profile-info h2 {
  color: #e0e0e0;
}

body.dark-mode .profile-info .subtitle {
  color: #b0b0b0;
}

body.dark-mode .contact-info a {
  color: #b0b0b0;
}

body.dark-mode .contact-info a:hover {
  color: #64b5f6;
}

/* Content dark mode */
body.dark-mode .content {
  background: #1a1a1a;
}

body.dark-mode .content p {
  color: #b0b0b0 !important;
}

body.dark-mode .content-header h1 {
  color: #e0e0e0;
}

body.dark-mode .about-section h2,
body.dark-mode .about-section h3 {
  color: #e0e0e0;
}

body.dark-mode .about-section p {
  color: #b0b0b0;
}

body.dark-mode .about-section a {
  color: #64b5f6;
}

body.dark-mode .about-section a:hover {
  color: #90caf9;
}

/* Blog dark mode */
body.dark-mode .blog-post {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
}

body.dark-mode .blog-post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .post-meta {
  color: #b0b0b0;
}

body.dark-mode .post-title a {
  color: #e0e0e0;
}

body.dark-mode .post-title a:hover {
  color: #64b5f6;
}

body.dark-mode .post-excerpt {
  color: #b0b0b0;
}

body.dark-mode .post-excerpt p {
  color: #b0b0b0 !important;
}

body.dark-mode .read-more {
  color: #64b5f6;
}

body.dark-mode .read-more:hover {
  color: #90caf9;
}

body.dark-mode .blog-disclaimer {
  color: #b0b0b0;
  background: #2d2d2d;
  border-left-color: #404040;
}

body.dark-mode .blog-disclaimer p {
  color: #b0b0b0 !important;
}

/* Tags dark mode */
body.dark-mode .tag {
  background: #404040;
  color: #e0e0e0;
  border-color: #555;
}

body.dark-mode .tag:hover {
  background: #555;
  color: #e0e0e0;
}

/* Tag filters dark mode */
body.dark-mode .tag-filter {
  background: #404040;
  border-color: #555;
  color: #e0e0e0;
}

body.dark-mode .tag-filter:hover {
  background: #64b5f6;
  border-color: #64b5f6;
  color: #1a1a1a;
}

body.dark-mode .tag-filter.active {
  background: #f44336;
  border-color: #f44336;
  color: white;
}

/* Blog post full dark mode */
body.dark-mode .blog-post-full {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
}

body.dark-mode .blog-post-full h1,
body.dark-mode .blog-post-full h2,
body.dark-mode .blog-post-full h3,
body.dark-mode .blog-post-full h4 {
  color: #e0e0e0;
}

body.dark-mode .blog-post-full p {
  color: #b0b0b0 !important;
}

body.dark-mode .blog-post-full .post-content {
  color: #b0b0b0;
}

body.dark-mode .blog-post-full .post-content p {
  color: #b0b0b0 !important;
}

body.dark-mode .blog-post-full .post-content li {
  color: #b0b0b0 !important;
}

body.dark-mode .blog-post-full .post-content ul,
body.dark-mode .blog-post-full .post-content ol {
  color: #b0b0b0;
}

body.dark-mode .blog-post-full .post-content strong {
  color: #e0e0e0;
}

body.dark-mode .blog-post-full .post-content em {
  color: #c0c0c0;
}

body.dark-mode .blog-post-full a {
  color: #64b5f6;
}

body.dark-mode .blog-post-full a:hover {
  color: #90caf9;
}

body.dark-mode .back-link a {
  color: #64b5f6;
}

body.dark-mode .back-link a:hover {
  color: #90caf9;
}

/* Course info and specific elements dark mode */
body.dark-mode .course-info {
  background: #2d2d2d;
  border-color: #404040;
}

body.dark-mode .course-info h3 {
  color: #e0e0e0 !important;
}

body.dark-mode .course-info ul,
body.dark-mode .course-info li {
  color: #b0b0b0 !important;
}

body.dark-mode .status-badge {
  background: #404040;
  color: #e0e0e0 !important;
}

body.dark-mode .key-definition {
  background: #2d2d2d !important;
  border-left-color: #64b5f6 !important;
  color: #e0e0e0 !important;
}

body.dark-mode blockquote {
  background: #2d2d2d !important;
  border-left-color: #64b5f6 !important;
  color: #e0e0e0 !important;
}

/* Article content dark mode */
body.dark-mode .article-content {
  color: #e0e0e0;
}

body.dark-mode .article-content h1,
body.dark-mode .article-content h2,
body.dark-mode .article-content h3,
body.dark-mode .article-content h4 {
  color: #e0e0e0;
}

body.dark-mode .article-content p {
  color: #b0b0b0;
}

body.dark-mode .article-content a {
  color: #64b5f6;
}

body.dark-mode .article-content a:hover {
  color: #90caf9;
}

body.dark-mode .article-content blockquote {
  background: #2d2d2d;
  border-left-color: #64b5f6;
  color: #e0e0e0;
}

body.dark-mode .article-content code {
  background: #404040;
  color: #ffcdd2;
}

body.dark-mode .article-content pre {
  background: #2d2d2d;
  border: 1px solid #404040;
}

body.dark-mode .article-content pre code {
  color: #e0e0e0;
}

/* Study materials dark mode */
body.dark-mode .study-materials {
  background: #2d2d2d;
  border-color: #404040;
}

body.dark-mode .study-materials h3 {
  color: #e0e0e0;
}

body.dark-mode .study-materials p {
  color: #b0b0b0;
}

body.dark-mode .download-link {
  color: #64b5f6;
}

body.dark-mode .download-link:hover {
  color: #90caf9;
}

/* Pagination dark mode */
body.dark-mode .page-current {
  background: #64b5f6;
  color: #1a1a1a;
}

body.dark-mode .page-link {
  background: #404040;
  color: #e0e0e0;
  border-color: #555;
}

body.dark-mode .page-link:hover {
  background: #64b5f6;
  color: #1a1a1a;
  border-color: #64b5f6;
}

/* Math and related posts styling */
.math-box {
  background: #f8f9fa;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
}

body.dark-mode .math-box {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
}

.math-inline {
  background: #e8f4f8;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #2980b9;
}

body.dark-mode .math-inline {
  background: #404040;
  color: #64b5f6;
}

.insight-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
  font-style: italic;
}

body.dark-mode .insight-box {
  background: #3d3d00;
  border-left-color: #ffeb3b;
  color: #fff8e1;
}

.related-posts {
  background: #f8f9fa;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

body.dark-mode .related-posts {
  background: #2d2d2d;
  border-color: #404040;
}

.related-posts h3 {
  color: #2980b9;
  margin-top: 0;
}

body.dark-mode .related-posts h3 {
  color: #64b5f6;
}

.related-posts ul {
  margin-bottom: 0;
}

.related-posts li {
  margin: 8px 0;
}

.related-posts a {
  color: #2980b9;
  text-decoration: none;
}

.related-posts a:hover {
  color: #3498db;
  text-decoration: underline;
}

body.dark-mode .related-posts a {
  color: #64b5f6;
}

body.dark-mode .related-posts a:hover {
  color: #90caf9;
}

/* ========== UTILITIES ========== */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
