/* Global variables */
:root {
  --nav-bg: #fff;
  --nav-text: #111827;
  --nav-active: #2563eb;
  --nav-hover: #f1f5f9;
  --nav-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --hero-from: #6b21a8;
  --hero-to: #1d4ed8;
}

/* Base */
@font-face {
  font-family: 'Arial';
  font-display: swap;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Accessibility: Ensure all links are distinguishable */
a:not(.btn):not(.nav-link) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:not(.btn):not(.nav-link):hover {
  text-decoration-thickness: 2px;
}

/* Improve contrast for links */
a.link-danger {
  color: #dc2626 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

a.link-danger:hover {
  color: #b91c1c !important;
  text-decoration-thickness: 2px;
}

/* Ensure sufficient contrast for text */
.text-muted {
  color: #4b5563 !important; /* Improved from default for better contrast */
}

/* Utility top bar */
.util-topbar {
  background: #3b4250;
  color: #fff;
  font-size: 0.9375rem;
}
.util-topbar a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.util-topbar a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Hero (non-home pages) */
.hero-topbar {
  background: linear-gradient(90deg, var(--hero-from), var(--hero-to));
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-title {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.2px;
  font-size: clamp(1.1rem, 2.5vw, 1.85rem);
}
.hero-search .input-group {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.hero-search .form-control {
  padding: 0.8rem 1rem;
  border: 0;
}
.hero-search .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
}
.w-120 {
  min-width: 520px;
}
@media (max-width: 991.98px) {
  .w-120 {
    min-width: 0;
    width: 100%;
  }
  .hero-badge {
    display: none !important;
  }
  .hero-search {
    margin-top: 0.5rem;
  }
}

/* Navbar */
.site-navbar {
  background: var(--nav-bg);
  color: var(--nav-text);
  box-shadow: var(--nav-shadow);
  border-bottom: 1px solid rgba(2, 6, 23, 0.05);
}
.navbar-nav .nav-link {
  position: relative;
  font-weight: 700;
  color: #111827;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  transition: color 0.2s, background-color 0.2s;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.navbar-nav .nav-link:hover {
  color: var(--nav-active);
  background: var(--nav-hover);
  text-decoration-color: var(--nav-active);
}
.navbar-nav .nav-link.active {
  color: var(--nav-active) !important;
  text-decoration-color: var(--nav-active);
}
.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--nav-active), #60a5fa);
}
.navbar.no-brand .navbar-collapse {
  justify-content: flex-start;
}
.navbar.no-brand .navbar-nav {
  margin-left: 0;
  padding-left: 0.75rem;
}
.navbar-toggler {
  border: 1px solid rgba(2, 6, 23, 0.15);
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
}
@media (min-width: 992px) {
  .navbar-nav .nav-link {
    padding: 1rem 1rem;
  }
}

/* Buttons */
.btn-submit {
  border-radius: 14px;
  font-weight: 700;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
  border: 0;
  color: #fff;
}
.btn-submit:hover {
  filter: brightness(0.95);
  color: #fff;
  text-decoration: none;
}

/* Footer */
#site-footer .footer-inner {
  padding: 48px 0 24px;
}
#site-footer h6 {
  font-weight: 700;
  margin-bottom: 16px;
  color: #000;
}
#site-footer .footer-link {
  color: #343a40;
  text-decoration: none;
  display: block;
  margin: 6px 0;
}
#site-footer .footer-link:hover {
  text-decoration: underline;
}
#site-footer .brand-email {
  color: #dc3545;
  font-weight: 600;
}
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}
#backToTop:hover {
  opacity: 0.9;
}
#site-footer .bottom-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Home page */
.hero-section {
  background: transparent;
  color: #000;
  padding: 40px 0;
  text-align: center;
}
.hero-section {
  background: transparent;
  position: relative;
}
.hero-section::before {
  content: none;
}
.hero-section .container {
  position: relative;
  z-index: 1;
}
.section-title {
  font-weight: 700;
  margin-bottom: 30px;
}
.why-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-weight: 600;
}
.issue-banner {
  background: #f8f9fa;
  padding: 60px 0;
  text-align: center;
}
.about-box {
  background: #fff;
  padding: 1.5rem;
  width: 100%;
}
.about-list li {
  margin-bottom: 0.6rem;
}
.card {
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.card img {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Latest Published Research Papers */
.lprp-title {
  font-weight: 800;
}
.lprp-underline {
  width: 110px;
  height: 6px;
  background: #22c55e;
  border: 0;
  border-radius: 6px;
  margin: 0.5rem auto 2rem;
}
.lp-card {
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
}
.lp-card .paper-link {
  display: inline-block;
  color: #1d4ed8;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.lp-card .paper-link:hover {
  color: #dc2626;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-card .meta-label {
  color: #374151;
  font-weight: 700;
}
.lp-card a.author {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-card a.author:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Why Choose cards */
.why-card {
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
}
.why-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.why-icon {
  font-size: 1.4rem;
  color: #6b7280;
}
.why-link {
  color: #dc2626;
  font-weight: 600;
}
.why-link:hover {
  text-decoration: underline;
}

/* Current Issue page */
.page-hero {
  background: linear-gradient(180deg, #e5e7eb 0%, #f3f4f6 60%, #f8fafc 100%);
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}
.page-hero .title {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0f172a;
}
.arch-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.arch-title + .rhs-top-rule {
  height: 3px;
  background: #2563eb;
  opacity: 0.9;
  border-radius: 2px;
  margin: 0 0 1rem;
}
.paper-exact {
  background: #fff;
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
  margin-bottom: 1rem;
}
.paper-title a {
  color: #0d6efd;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.paper-sep {
  border-top: 1px solid #e6eaf2;
  margin: 0.75rem 0 1rem;
}
.paper-journal {
  color: #0d6efd;
  font-weight: 700;
}
.paper-journal a {
  color: #0d6efd;
  text-decoration: none;
}
.paper-author {
  font-weight: 700;
}
.paper-author .name {
  color: #6f42c1;
}
.paper-meta small {
  font-weight: 700;
}
.meta-id {
  color: #06b6d4;
}
.meta-pub {
  color: #198754;
}
.meta-pages {
  color: #b45309;
}

/* ===== Custom list for "Our Publication Services" ===== */
.mc-service-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.mc-service-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  text-align: justify;
  line-height: 1.6;
  color: #1f2937; /* dark gray */
  font-size: 0.96rem;
}

.mc-service-list li::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0d6efd; /* bootstrap primary */
  box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.12);
}

.mc-service-list li strong {
  display: inline-block;
  margin-bottom: 0.15rem;
  font-weight: 700;
  color: #000;
}

/* Archive page specific colors */
:root {
  --c-blue: #2563eb;
  --c-blue-link: #0d6efd;
  --c-purple: #6f42c1;
  --c-cyan: #06b6d4;
  --c-green: #198754;
  --c-orange: #b45309;
  --c-indigo: #4f46e5;
}
.archive-card {
  border-radius: 16px;
}
.archive-card .card-body {
  border-radius: 16px;
}
.archive-accordion .section + .section {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}
.archive-accordion .year-header {
  cursor: pointer;
  padding: 0.25rem 0;
  user-select: none;
}
.archive-accordion .year-toggle {
  color: #6b7280;
  font-weight: 700;
  width: 1.25rem;
  text-align: center;
}
.archive-accordion .issue-list {
  list-style: none;
  padding-left: 0;
  margin: 0.35rem 0 0;
}
.archive-accordion .issue-link {
  display: block;
  padding: 0.35rem 0;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}
.archive-accordion .issue-link:hover {
  color: var(--c-blue);
}
.archive-accordion .issue-link.active {
  color: var(--c-blue);
  font-weight: 700;
}
.arch-title + .rhs-top-rule {
  background: var(--c-blue);
}
.paper-title a {
  color: var(--c-blue-link);
}
.paper-journal {
  color: var(--c-blue-link);
}
.paper-journal a {
  color: var(--c-blue-link);
}
.paper-author .name {
  color: var(--c-purple);
}
.meta-id {
  color: var(--c-cyan);
}
.meta-pub {
  color: var(--c-green);
}
.meta-pages {
  color: var(--c-orange);
}
.kpi-dl {
  color: var(--c-blue-link);
}
.kpi-vw {
  color: var(--c-purple);
}
.kpi-sh {
  color: var(--c-indigo);
}

/* Only Events dropdown: remove underline */
.events-menu .dropdown-item,
.events-menu .dropdown-item:hover,
.events-menu .dropdown-item:focus {
  text-decoration: none !important;
}

/* Hover dropdown for desktop */
@media (min-width: 992px) {
  .dropdown-hover:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .dropdown-hover .dropdown-toggle::after {
    vertical-align: middle;
  }
}

/* Keep Bootstrap dropdown look */
.dropdown-menu {
  border-radius: 12px;
  padding: 8px 0;
}
.dropdown-item {
  padding: 10px 16px;
}
