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

body {
  font-family:
    /* "Playfair Display", */
    Georgia,
    "Times New Roman",
    serif /*rtl:Amiri, Georgia, "Times New Roman", serif*/;
  line-height: 1.6;
}

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

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

.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 .page-link {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--bs-body-color);
}
.blog-pagination .page-item.active .page-link {
  background-color: var(--bs-emphasis-color);
  border-color: var(--bs-emphasis-color);
  color: var(--bs-body-bg);
}

/*
 * Blog posts
 */
.blog-post {
  margin-bottom: 4rem;
}
.blog-post-meta {
  margin-bottom: 1.25rem;
  color: var(--bs-secondary-color, #727272);
}
.article-thumb {
  height: 220px;
  object-fit: cover;
  border-radius: 0.375rem;
}
.article-hero {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Home – featured article image */
.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.375rem;
}
.featured-img-wrap {
  height: 280px;
  overflow: hidden;
  border-radius: 0.375rem;
}
@media (min-width: 992px) {
  .featured-img-wrap {
    height: 320px;
  }
}

/* Home – category main article image */
.cat-main-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 0.375rem;
}
@media (min-width: 768px) {
  .cat-main-img {
    height: 300px;
  }
}

/*
 * Theme toggle button (floating, bottom-right)
 */
.bd-mode-toggle {
  z-index: 1500;
}
.bd-mode-toggle .dropdown-toggle {
  width: 2rem;
  height: 2rem;
  padding: 0.3rem;
  border-radius: 50%;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.bd-mode-toggle .dropdown-toggle:hover,
.bd-mode-toggle .dropdown-toggle:focus {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border-color: var(--bs-primary);
}
.bd-mode-toggle .dropdown-toggle .bi {
  width: 1em;
  height: 1em;
}
.bd-mode-toggle .dropdown-toggle::after {
  display: none; /* hide caret */
}
.bd-mode-toggle .dropdown-menu {
  min-width: auto;
  font-size: 0.8rem;
  padding: 0.25rem 0;
}
.bd-mode-toggle .dropdown-item {
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
}
.bd-mode-toggle .dropdown-item .bi {
  width: 0.8em;
  height: 0.8em;
}

/*
 * Language Switcher
 */
.lang-btn {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  line-height: 1.4;
}

/*
 * Search Overlay
 */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
}
.search-overlay-inner {
  width: 90%;
  max-width: 640px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}
.search-overlay.open .search-overlay-inner {
  transform: translateY(0);
}
.search-close {
  position: absolute;
  top: -3rem;
  right: 0;
  font-size: 1.2rem;
  filter: brightness(2);
}
.search-form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.5rem;
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  padding: 0.5rem 0;
}
.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.search-submit {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}
.search-submit:hover {
  color: #fff;
}
.search-toggle {
  border: none;
  transition: opacity 0.2s;
}
.search-toggle:hover {
  opacity: 0.7;
}
