/* ===============================
   Q&A Network - 3D Design Theme
   Fresh Green & Soft Mint
   =============================== */

:root {
  /* Brand Colors */
  --bs-primary: #6EE7B7;                 /* Fresh Green */
  --bs-primary-rgb: 110, 231, 183;

  --green-dark: #059669;                 /* Primary Accent */
  --green-darker: #047857;               /* Hover / Active */

  /* Base Colors */
  --bs-body-color: #064E3B;              /* Deep green slate */
  --bs-body-bg: #ECFDF5;                 /* Soft mint background */
}

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

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

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

.btn-outline-primary {
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--green-dark);
  color: #fff;
}

/* Search Box */
.search-box input:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 0.15rem rgba(5, 150, 105, 0.25);
}

/* Cards */
.question-card:hover {
  box-shadow: 0 0.6rem 1.2rem rgba(5,150,105,.12);
}
.question-card a {
  color: var(--green-dark);
  text-decoration: none !important;
}
.question-card a:hover {
  color: var(--green-darker);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--green-dark), var(--green-darker));
  color: #ffffff !important;
  padding: 2rem 0;
}
footer a {
  color: #ffffff !important;
}
footer a:hover {
  color: #D1FAE5 !important;
}

/* ==========================================================
   TAG LINKS
   ========================================================== */
a.tag,
a.tag-link {
  border-bottom: 2px dotted #9CA3AF;
  color: inherit !important;
  margin-right: .75rem;
}
a.tag:hover,
a.tag-link:hover {
  color: var(--green-dark) !important;
  border-bottom-color: var(--green-dark);
}

/* ==========================================================
   PAGINATION
   ========================================================== */
.pagination {
  margin: 1.5rem 0 2.5rem;
  display: flex;
  justify-content: center;
  gap: .25rem;
}
.pagination .page-link {
  color: var(--green-dark) !important;
  border: 1px solid var(--green-dark) !important;
  background-color: #fff !important;
  border-radius: .375rem;
}
.pagination .page-link:hover {
  background-color: var(--green-dark) !important;
  color: #fff !important;
}
.pagination .page-item.active .page-link {
  background-color: var(--green-darker) !important;
  border-color: var(--green-darker) !important;
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  background-color: #D1FAE5 !important;
  border-color: #D1FAE5 !important;
  color: #9CA3AF !important;
}

/* ==========================================================
   MAIN CONTENT LINKS
   ========================================================== */
main a {
  color: #022C22 !important;
}
main a:hover {
  color: var(--green-dark) !important;
}

/* ==========================================================
   VENDOR BUTTON OVERRIDES
   ========================================================== */
.vendor-links a.btn,
.vendor-links a.btn-dark,
.vendor-links a.btn-secondary {
  color: #fff !important;
}
.vendor-links a.btn:hover {
  opacity: 0.9;
}
