/* =====================================================================
   JournalSearches - sitewide look (loaded on every page by header.php)
   Visual only: no text, links or addresses are changed by this file.
   ===================================================================== */

:root {
  --js-teal: #009999;
  --js-teal-dark: #006b6b;
  --js-teal-soft: #eef7f6;
  --js-ink: #1f2a2e;
  --js-muted: #5b6b70;
  --js-line: #e3ecec;
}

body { color: var(--js-ink); line-height: 1.6; }

/* ---------- links ---------- */
a { color: #007373; }
a:hover { color: #004f4f; }

/* ---------- page width: the full-width pages get a comfortable maximum ---------- */
.row[style*="margin: 15px"] { max-width: 1320px; margin: 15px auto !important; }

/* ---------- headings ---------- */
h1 { font-weight: 700; color: #12343b; letter-spacing: .2px; margin-top: 18px; margin-bottom: 14px; }
h2 { font-weight: 700; color: #12343b; margin-top: 26px; }
h3 { color: #12343b; }
hr { border-top: 1px solid var(--js-line); opacity: 1; }

/* the homepage banner keeps its white title */
.js-hero h1 { color: #ffffff; }

/* the green section titles (e.g. "Aim and Scope", "Top Research Journals") */
h2[style*="D5F5E3"], p[style*="D5F5E3"] {
  background: var(--js-teal-soft) !important;
  border-left: 4px solid var(--js-teal);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 1.45rem !important;
  margin: 28px 0 14px;
  color: #12343b;
}
p[style*="D5F5E3"] { font-size: 1.05rem !important; }

/* ---------- tables ---------- */
.table { border-color: var(--js-line); }
.table-responsive, .table-bordered { border-radius: 10px; }
.table-bordered { border: 1px solid var(--js-line); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.table-bordered > :not(caption) > * > * { border-width: 0 0 1px 0; border-color: var(--js-line); }
.table > :not(caption) > * > * { padding: .6rem .75rem; vertical-align: middle; }
.table-striped > tbody > tr:nth-of-type(odd) { --bs-table-accent-bg: #f6fafa; }
.table tbody tr:hover { --bs-table-accent-bg: #eef7f6; }
/* header rows (they were brown) */
tr[style*="955C46"], tr[style*="955c46"] { color: #ffffff !important; }
tr[style*="955C46"] > th, tr[style*="955c46"] > th, .table thead th {
  background: var(--js-teal) !important; color: #ffffff !important; font-weight: 700;
  border-color: var(--js-teal); box-shadow: none !important;
}
.table td a { font-weight: 700; text-decoration: none; }
.table td a:hover { text-decoration: underline; }
caption { caption-side: top; color: var(--js-muted); font-style: italic; padding: 4px 2px 8px; }

/* ---------- side columns: subject lists ---------- */
.col-sm-3 > h3, .col-sm-3 h3, .col-sm-3 > h2:not([style]) {
  font-size: 1.25rem !important; font-weight: 700; color: #145a5a;
  border-bottom: 2px solid var(--js-teal); padding-bottom: 6px; margin: 18px 0 10px;
}
.col-sm-3 ul { list-style: none; padding-left: 0; margin-bottom: 18px; }
.col-sm-3 ul li { border-bottom: 1px solid #eef3f3; }
.col-sm-3 ul li a { display: block; padding: 6px 8px; text-decoration: none; border-radius: 6px; }
.col-sm-3 ul li a:hover { background: var(--js-teal-soft); }
.col-sm-3 ul.list { line-height: 1.6; }

/* ---------- buttons ---------- */
.btn-primary { background: var(--js-teal); border-color: var(--js-teal); }
.btn-primary:hover, .btn-primary:focus { background: var(--js-teal-dark); border-color: var(--js-teal-dark); }

/* ---------- journal pages: the 4 key figures under a heading ---------- */
.row.row-cols-4 > .col, .row.row-cols-3 > .col {
  background: #f6fafa; border: 1px solid var(--js-line); border-radius: 8px;
  padding: 8px 10px; margin: 0 0 8px; background-clip: padding-box;
  border-left: 6px solid #fff; border-right: 6px solid #fff;
}

@media (max-width: 576px) {
  .row.row-cols-4 > .col { flex: 0 0 50%; max-width: 50%; }
}

/* ---------- footer ---------- */
.js-footer { background: #0b3b3f; color: #cfe3e3; margin-top: 40px; font-size: 16px; }
.js-footer .container { padding: 40px 15px 20px; }
.js-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 26px; }
.js-footer h5 { color: #ffffff; font-size: 17px !important; font-weight: 700; letter-spacing: .4px; margin-bottom: 12px; }
.js-footer ul { list-style: none; padding: 0; margin: 0; }
.js-footer li { margin-bottom: 7px; }
.js-footer a { color: #cfe3e3; text-decoration: none; }
.js-footer a:hover { color: #ffffff; text-decoration: underline; }
.js-footer .js-footer-brand { font-size: 24px !important; color: #ffffff; font-weight: 700; display: inline-block; margin-bottom: 8px; }
.js-footer .js-footer-about { color: #a9c6c6; font-size: 15px !important; line-height: 1.55; margin: 0; }
.js-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 14px 15px; color: #a9c6c6; font-size: 15px !important; }
.js-footer-bottom a { color: #ffffff; }
@media (max-width: 992px) { .js-footer-grid { grid-template-columns: 1fr 1fr 1fr; } .js-footer-col-brand { grid-column: 1 / -1; } }
@media (max-width: 576px) { .js-footer-grid { grid-template-columns: 1fr 1fr; } }