/* =========================================================
   UGANDA CHRISTIAN UNIVERSITY JOURNALS
   Institutional Academic UI – Corrected Sections
   Target: OJS 3.4.x (Immersion Theme)
   ========================================================= */

/* =========================================================
   CORE IDENTITY (UNCHANGED)
   ========================================================= */
:root {
  --ucu-blue: #003a8f;
  --ucu-maroon: #7a0026;
  --ucu-white: #ffffff;

  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;

  --surface-glass: rgba(255, 255, 255, 0.562);
  --surface-soft: rgba(255, 255, 255, 0.829);
  --border-subtle: rgba(0, 0, 0, 0.08);

  --radius-lg: 20px;
  --radius-md: 14px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* =========================================================
   GLOBAL TYPOGRAPHY (UNCHANGED)
   ========================================================= */
body {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #ffffff, #f4f6fa);
  color: var(--gray-900);
  line-height: 1.65;
}

/* =========================================================
   HEADER IDENTITY STRIP (WHITE ONLY – CORRECTED)
   ========================================================= */
.main-header {
  background-image: url(https://library.ucu.ac.ug/wp-content/uploads/2026/02/antique-journal-entry-stockcake.png); /*https://library.ucu.ac.ug/wp-content/uploads/2026/02/Journals-and-articles-1500x430-1.png*/
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover; /* widen to fill the header */
  background-color: var(--ucu-white);
  border-bottom: 1px solid var(--border-subtle);
  min-height: 220px; /* ensure header has enough height for the image */
}

/* Logo + title container */
.main-header__title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  background-color: var(--surface-glass); /* translucent white */
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(6px);
}

/* Logo sizing */
.main-header__title img {
  max-height: 220px;
  width: auto;
}

/* Site title (CSS-injected) */
.main-header__title::after {
  content: "Uganda Christian University Journals";
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ucu-blue);
  text-transform: uppercase;
}

/* =========================================================
   NAVIGATION (UNCHANGED BEHAVIOUR)
   ========================================================= */
.main-header__nav {
  width: fit-content;
  max-width: 96%;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1.4rem;
  margin: 1rem auto;
}

.main-header__nav-link {
  color: var(--gray-700) !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.1rem;
  text-transform: uppercase;
}

.main-header__nav-link:hover,
.main-header__nav-link:focus {
  color: var(--ucu-white) !important;
  background-color: var(--ucu-maroon);
  border-radius: 999px;
}

/* =========================================================
   ACTIVE-PAGE INDICATOR (UNCHANGED)
   ========================================================= */
.pkp_nav_list .current > a,
.pkp_nav_list .is_current > a {
  background-color: var(--ucu-blue);
  color: var(--ucu-white) !important;
  border-radius: 999px;
  position: relative;
}

.pkp_nav_list .current > a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 25%;
  width: 50%;
  height: 3px;
  background-color: var(--ucu-maroon);
  border-radius: 2px;
}

/* =========================================================
   DROPDOWNS (UNCHANGED)
   ========================================================= */
.dropdown-menu {
  background: var(--ucu-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.dropdown-menu .nav-link:hover {
  background-color: var(--ucu-maroon);
  color: var(--ucu-white);
}

/* =========================================================
   JOURNAL-SPECIFIC ACCENTS (UNCHANGED)
   ========================================================= */
body.journal-law { --journal-accent: var(--ucu-maroon); }
body.journal-theology { --journal-accent: var(--ucu-blue); }
body.journal-business { --journal-accent: #004b8d; }

.main__title {
  color: var(--journal-accent, var(--ucu-blue));
}

/* =========================================================
   MAIN CONTENT (UNCHANGED)
   ========================================================= */
.main__header,
.content-body {
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* =========================================================
   FOOTER (RESTORED TO UCU BLUE – CORRECTED)
   ========================================================= */
.main-footer {
  background: var(--ucu-blue);
  color: var(--ucu-white);
  padding: 2.5rem 0;
}

.main-footer h2 {
  color: var(--ucu-white);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.main-footer a {
  color: var(--ucu-white);
}

.main-footer a:hover {
  color: var(--gray-200);
}

/* =========================================================
   DARK MODE (UNCHANGED LOGIC, HEADER REMAINS WHITE)
   ========================================================= */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #022b7e, #0f172a);
    color: #e5e7eb;
  }

  .main-header__nav,
  .main__header,
  .content-body {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
  }
}

/* =========================================================
   ACCESSIBILITY & RESPONSIVE (UNCHANGED)
   ========================================================= */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ucu-maroon);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .main-header__title::after {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .main-header__nav-link {
    display: block;
    text-align: center;
  }
}
