/* ============================================================
   JOURNAL OF SCIENCE & TECHNOLOGY EXCELLENCE – CLEAN THEME
   Compact • No Horizontal Lines • No Extra Spacing
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

:root {
  --jsci-blue:   #092c51;
  --jsci-orange: #ea6600;
  --bg-soft:     #f6fafc;
}

/* ---------- RESET/BASICS ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Merriweather', serif;
  background: #f4f8fc;
  color: var(--jsci-blue);
  line-height: 1.6;
}

/* remove any theme backgrounds on header/nav wrappers */
.pkp_structure_head,
.pkp_head_wrapper,
.pkp_site_nav_menu,
.site-header {
  background: transparent !important;
  border: none !important;
}

/* ---------- HEADER ---------- */
.pkp_head {
  background: #fff;
  padding: 8px 0 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border-radius: 0 0 20px 20px;
}

.pkp_site_name {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px 10px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pkp_site_name a {
  font-size: 0;
}

.pkp_site_name img {
  max-height: 60px;
}

/* Journal title + gradient underline */
.pkp_site_name::after {
  content: "Journal of Science and Technology Excellence";
  display: inline-block;
  font-size: 40px;
  font-weight: 700;
  color: var(--jsci-blue);
  line-height: 1.2;
  padding-bottom: 8px;
  background-image: linear-gradient(90deg, var(--jsci-orange), var(--jsci-blue));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
}

.pkp_site_name::before {
  display: none !important;
}

/* ---------- NAVIGATION + SEARCH (ONE ROW) ---------- */

/* overall nav container */
.pkp_site_nav_menu {
  padding: 0 0 10px;
}

/* blue bar row that holds menu + search */
.pkp_navigation_primary_row {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--jsci-blue);
  border-radius: 0 0 16px 16px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* wrapper around ul menu */
.pkp_navigation_primary_wrapper {
  flex: 1;
  display: flex;
  align-items: center;
}

/* main menu list */
.pkp_navigation_primary {
  margin: 0;
  padding: 10px 0;
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: nowrap !important;
  background: transparent;
  border: none !important;
}

/* prevent wrapping of items */
.pkp_navigation_primary li,
.pkp_navigation_primary a {
  white-space: nowrap !important;
}

.pkp_navigation_primary li {
  list-style: none;
}

/* menu links */
.pkp_navigation_primary > li > a {
  position: relative;
  color: #fff !important;         /* normal white */
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease;
}

/* animated underline (uses ::before now) */
.pkp_navigation_primary > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background-image: linear-gradient(90deg, var(--jsci-orange), #ffffff);
  transition: width .25s ease;
}

/* hover/active states */
.pkp_navigation_primary > li > a:hover::before,
.pkp_navigation_primary > li.current > a::before {
  width: 100%;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li.current > a {
  background: #fff0df;
  color: var(--jsci-orange) !important; /* hover orange text */
}

/* ---------- SUBMENU ARROW (FIXED, NO MOVEMENT) ---------- */

.pkp_navigation_primary > li.has_submenu > a,
.pkp_navigation_primary > li.has-submenu > a {
  padding-right: 26px;          /* space for arrow */
}

/* arrow icon – only here, does NOT move on hover */
.pkp_navigation_primary > li.has_submenu > a::after,
.pkp_navigation_primary > li.has-submenu > a::after,
.pkp_navigation_primary > li > a.dropdown-toggle::after {
  content: "▾";                 /* small down arrow */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}

/* keep arrow fixed on hover/open */
.pkp_navigation_primary > li.has_submenu > a:hover::after,
.pkp_navigation_primary > li.has-submenu > a:hover::after,
.pkp_navigation_primary > li.has_submenu:hover > a::after,
.pkp_navigation_primary > li.has-submenu:hover > a::after {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* SEARCH – same line, right side */
.pkp_navigation_search_wrapper {
  position: static !important;
  margin-left: auto !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  clear: none !important;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.pkp_navigation_search_wrapper a {
  color: #fff !important;
  padding: 4px 0 4px 10px !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- SUB MENU ---------- */
.dropdown-menu,
.pkp_nav_dropdown {
  background: #fff !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  min-width: 190px;
}

.dropdown-menu li,
.pkp_nav_dropdown li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown-menu a,
.pkp_nav_dropdown a {
  display: block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--jsci-blue) !important;      /* opposite: blue text on white */
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.pkp_nav_dropdown a:hover {
  background: #f4f8fc;
  color: var(--jsci-orange) !important;    /* orange text on hover */
}

/* ---------- MAIN LAYOUT ---------- */
.pkp_structure_content {
  max-width: 1180px;
  margin: 12px auto 20px auto;
  padding: 0 10px;
  display: flex;
  gap: 18px;
  border: none !important;
}

/* ---------- MAIN CONTENT ---------- */
.pkp_structure_main {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  border: none !important;
}

/* remove breadcrumbs completely */
.cmp_breadcrumbs,
.pkp_structure_main .cmp_breadcrumbs {
  display: none !important;
}

/* headings & text */
.pkp_structure_main p {
  margin: 6px 0;
  text-align: justify;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3 {
  margin: 0 0 12px;
  padding: 0;
  border: none !important;
  color: var(--jsci-blue);
  font-weight: 700;
}

.pkp_structure_main ul,
.pkp_structure_main ol {
  margin: 4px 0 10px 18px;
  padding: 0;
}

/* Remove HR inside content */
.pkp_structure_main hr {
  display: none !important;
}

/* ---------- SIDEBAR ---------- */
.pkp_structure_sidebar {
  width: 300px;
  padding: 0;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
}

.pkp_block {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
  border: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Card hover effect */
.pkp_block:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.pkp_block .title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  border: none !important;
}

/* remove any hr inside sidebar */
.pkp_structure_sidebar hr {
  display: none !important;
}

/* kill stray borders/pseudo lines */
.pkp_structure_content > div {
  border: none !important;
  box-shadow: none !important;
}

.pkp_structure_content::before,
.pkp_structure_content::after,
.pkp_structure_main::before,
.pkp_structure_main::after,
.pkp_structure_sidebar::before,
.pkp_structure_sidebar::after {
  content: none !important;
}

/* ---------- FOOTER ---------- */
.pkp_structure_footer {
  margin-top: 24px;
  background: var(--jsci-blue);
  color: #ffffff;
  padding: 16px 0;
}

.pkp_structure_footer a {
  color: #ffd9b0;
  text-decoration: none;
}

.pkp_structure_footer a:hover {
  text-decoration: underline;
}

/* hide OJS small brand line if present */
.pkp_brand_footer,
.pkp_brand_policy {
  display: none !important;
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .pkp_structure_content {
    flex-direction: column;
  }

  .pkp_structure_sidebar {
    width: 100%;
  }

  /* nav stacked on small screens */
  .pkp_navigation_primary_row {
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 14px 10px;
  }

  .pkp_navigation_primary {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .pkp_navigation_search_wrapper {
    margin: 4px 0 0 !important;
    align-self: flex-end;
  }

  .pkp_site_name {
    flex-direction: column;
    text-align: center;
  }

  .pkp_site_name::after {
    font-size: 24px;
    background-position: 50% 100%;
    background-size: 60% 3px;
  }
}

@media (max-width: 600px) {
  .pkp_structure_content {
    padding: 0 6px;
  }

  .pkp_site_name {
    padding: 10px 12px;
  }

  .pkp_site_name img {
    margin-bottom: 6px;
    max-height: 54px;
  }
}
