/* ===============================
   Q&A Network - Web Hosting Theme
   Blue / Indigo Color Palette
   =============================== */

:root {
  --bs-primary: #2a4d9b;
  --bs-primary-rgb: 42, 77, 155;

  --bs-body-color: #000000;
  --bs-body-bg: #f8fafc;
}

/* Body */
body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
}
header a {
  text-decoration: none !important;
  color: #111827;
}
header a:hover {
  color: var(--bs-primary);
}
header img {
  width: 40px;
  height: 40px;
}
header .fs-5 {
  font-weight: 600;
}
header small {
  font-size: 0.9rem;
  color: #111827;
  opacity: 0.7;
}
header nav a.active {
  color: var(--bs-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--bs-primary);
}

/* Buttons */
.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #1b326b !important;
  border-color: #1b326b !important;
  color: #fff !important;
}
.btn-outline-primary {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

/* Search Box */
.search-box input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.15rem rgba(42,77,155,0.25);
}

/* Cards */
.question-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
}
.question-card a {
  text-decoration: none !important;
  color: var(--bs-primary);
}
.question-card a:hover {
  color: #1b326b;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2a4d9b, #1b326b);
  color: #fff !important;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
footer a {
  color: #fff !important;
}
footer a:hover {
  color: #e0e7ff !important;
}

/* ==========================================================
   SIGNATURE TAG DISPLAY STYLE  — COLORS MAY CHANGE
   DO NOT REMOVE OR MODIFY STRUCTURE OR HOVER LOGIC
   Defines dotted underline hover effect for tag links
   used network-wide across all Q&A subdomains.
   ========================================================== */
.tag-link {
  border-bottom: 2px dotted var(--bs-dark);
  font-weight: 400;
  text-decoration: none;
  color: inherit;
  margin-right: .75rem;
  display: inline-block;
}
.tag-link:hover {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
  font-weight: 500;
}

/* ==========================================================
   SIGNATURE PAGINATION STYLE  — COLORS MAY CHANGE
   DO NOT REMOVE OR MODIFY STRUCTURE OR SPACING
   Defines rounded, compact pagination layout and animation
   used network-wide across all Q&A subdomains.
   ========================================================== */
.pagination {
  margin: 1.5rem 0 2.5rem !important;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.pagination .page-link {
  color: var(--bs-primary) !important;
  border: 1px solid var(--bs-primary) !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.9rem !important;
  background-color: #fff !important;
  transition: all 0.2s ease;
  font-weight: 500;
  text-decoration: none !important;
}

.pagination .page-link:hover {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
  border-color: var(--bs-primary) !important;
}

.pagination .page-item.active .page-link {
  background-color: #1b326b !important;
  border-color: #1b326b !important;
  color: #fff !important;
  font-weight: 600;
  pointer-events: none;
}

.pagination .page-item.disabled .page-link {
  color: #9ca3af !important;
  background-color: #e5e7eb !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed;
}

.pagination .page-link:focus {
  outline: none !important;
