/* FNPH Calabar: shared additions for the subdomain websites
   (blog, research, college, campaign). Loaded after fnph/style.css,
   which is the main hospital website's stylesheet. */

/* Second navigation strip under the hospital menu */
.site-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(8, 63, 64, .06);
  position: relative;
  z-index: 5;
}
.site-bar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  flex-wrap: nowrap;
}
.site-bar-links { flex-wrap: nowrap; }
.site-bar-links a { white-space: nowrap; }
.site-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.05rem;
  padding: 8px 0;
  margin-right: auto;
}
.site-bar-title i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--primary);
  font-size: 1.1rem;
}
.site-bar-title:hover { color: var(--primary); }
.site-bar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.site-bar-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 600;
}
.site-bar-links a:hover { background: var(--soft); color: var(--primary); }
.site-bar-links a.active { background: var(--primary); color: #fff; }
.site-bar-extra { display: flex; align-items: center; gap: 8px; }
@media (max-width: 991.98px) {
  .site-bar-inner { padding-top: 8px; padding-bottom: 10px; gap: 6px; flex-wrap: wrap; }
  .site-bar-title span { font-size: .95rem; }
  .site-bar-title { margin-right: auto; }
  .site-bar-extra { order: 2; }
  .site-bar-extra .btn { white-space: nowrap; }
  .site-bar-links { order: 3; flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .site-bar-links a { white-space: nowrap; padding: 7px 12px; font-size: .9rem; }
}

/* Compact page header for inner pages */
.page-header.page-header-sm { padding: 60px 0; }
.page-header.page-header-sm h1 { font-size: clamp(30px, 4vw, 44px); }
.page-header .page-header-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Photo banner variant: a picture behind the teal header */
.page-header.page-header-photo { position: relative; overflow: hidden; background: var(--primary-dark); }
.page-header.page-header-photo > img.page-header-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28;
}
.page-header.page-header-photo > .container { position: relative; z-index: 1; }

/* Buttons shared by all sites */
.btn-primary-custom, .btn-fnph {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 600;
}
.btn-primary-custom:hover, .btn-fnph:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-fnph-outline {
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  background: #fff;
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 600;
}
.btn-fnph-outline:hover { background: var(--primary); color: #fff !important; }
.btn-fnph-light { background: #fff; color: var(--primary) !important; border-radius: 999px; padding: 10px 24px; font-weight: 600; border: 2px solid #fff; }
.btn-fnph-light:hover { background: transparent; color: #fff !important; }
.btn-fnph-gold { background: var(--accent); color: #1d1600 !important; border: 2px solid var(--accent); border-radius: 999px; padding: 10px 24px; font-weight: 700; }
.btn-fnph-gold:hover { filter: brightness(.95); }

/* Card used across the subdomain sites */
.fnph-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  height: 100%;
}
.fnph-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.fnph-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--soft); color: var(--primary); font-size: 1.4rem; margin-bottom: 14px;
}

/* Forms */
.form-control:focus, .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 .2rem rgba(11, 93, 94, .15); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* Links and small text */
:where(main) :where(a:not(.btn)) { color: var(--primary); }
:where(main) :where(a:not(.btn)):hover { color: var(--primary-dark); }
.top-bar a, .site-footer a { color: inherit; }
.site-footer h4, .site-footer h5 { color: #fff; }
.page-header h1, .page-header h2 { color: #fff; }
.page-header .section-label { color: var(--accent); }
.text-muted, .small.text-muted { color: #5d6f6f !important; }

/* Subdomain footer: an extra column for the site's own links */
.site-footer .footer-site-col ul { margin-bottom: 0; }

/* Back to top */
#backToTop { display: none; }
#backToTop.show { display: block; }

/* Inline images that must stay inline (icons, badges) */
img.inline-img { display: inline-block; }

/* Footer gutters fit small screens */
@media (max-width: 575.98px) { .site-footer .row, .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; } }
.site-footer a { text-decoration: none; }
.site-footer h4, .site-footer h5 { font-weight: 700; }
html, body { overflow-x: hidden; }

/* Bootstrap link colours follow the hospital palette */
:root { --bs-link-color: #0b5d5e; --bs-link-color-rgb: 11, 93, 94; --bs-link-hover-color: #083f40; --bs-link-hover-color-rgb: 8, 63, 64; }
code { color: var(--primary); }
