/* stylelint-disable selector-list-comma-newline-after */

.blog-header {
  line-height: 1;
  border-bottom: 1px solid #e5e5e5;
}

.blog-header-logo {
  font-family:
    "Playfair Display",
    Georgia,
    "Times New Roman",
    serif /*rtl:Amiri, Georgia, "Times New Roman", serif*/;
  font-size: 2.25rem;
}

.blog-header-logo:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center;
  font-family:
    "Playfair Display",
    Georgia,
    "Times New Roman",
    serif /*rtl:Amiri, Georgia, "Times New Roman", serif*/;
}

.display-4 {
  font-size: 2.5rem;
}
@media (min-width: 768px) {
  .display-4 {
    font-size: 3rem;
  }
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-scroller .nav-link {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
}

.card-img-right {
  height: 100%;
  border-radius: 0 3px 3px 0;
}

.flex-auto {
  flex: 0 0 auto;
}

.h-250 {
  height: 250px;
}
@media (min-width: 768px) {
  .h-md-250 {
    height: 250px;
  }
}

/* Pagination */
.blog-pagination {
  margin-bottom: 4rem;
}
.blog-pagination > .btn {
  border-radius: 2rem;
}

/*
 * Blog posts
 */
.blog-post {
  margin-bottom: 4rem;
}
.blog-post-title {
  margin-bottom: 0.25rem;
  font-size: 2.5rem;
}
.blog-post-meta {
  margin-bottom: 1.25rem;
  color: #727272;
}

/*
 * Footer
 */
.blog-footer {
  padding: 2.5rem 0;
  color: #727272;
  text-align: center;
  background-color: #f9f9f9;
  border-top: 0.05rem solid #e5e5e5;
}
.blog-footer p:last-child {
  margin-bottom: 0;
}

/* Center the Useful Links section */
.useful-links {
  text-align: center;
}

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

/* Dark Mode Styles */
body {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .blog-header,
body.dark-mode .blog-footer {
  border-color: #444;
  background-color: #222;
}

body.dark-mode .nav-link {
  color: #adb5bd !important;
}

body.dark-mode .nav-link:hover {
  color: #fff !important;
}

body.dark-mode a {
  color: #60a5fa;
}

body.dark-mode a:hover {
  color: #93c5fd;
}

/* Dark mode toggle button */
.dark-mode-toggle {
  background: #0d6efd;
  color: white;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
}

body.dark-mode .dark-mode-toggle {
  background: #495057;
  color: #fff;
  border-color: #6c757d;
}

body.dark-mode .dark-mode-toggle:hover {
  background: #6c757d;
  border-color: #adb5bd;
}
/* Fix container backgrounds in dark mode */
body.dark-mode .container {
  background-color: transparent;
}

body.dark-mode main {
  background-color: transparent;
}
