/* Journal of Engineering Excellence - Custom CSS
   Save as jee-style.css and upload under OJS Website > Appearance > Upload CSS
   Colors: Navy #0A3D62, Gold #FFC857
*/

/* ========== Fonts ========== */
/* Note: If your OJS allows @import, keep these lines. Otherwise load fonts via theme header. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --jee-navy: #0A3D62;
  --jee-gold: #FFC857;
  --jee-teal: #00A6A6;
  --jee-text: #333A40;
  --jee-bg: #ffffff;
  --jee-muted: #f5f7fa;
  --max-width: 1200px;
  --jsci-blue:   #092c51;
  --jsci-orange: #ea6600;
  --bg-soft:     #f6fafc;
}


html, body {
    background: #ffffff;
}


/* ========== Global ========== */
body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--jee-text);
  background-color: var(--jee-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}


/* Improve headings */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--jee-navy);
  margin-top: 0.6em;
  margin-bottom: 0.4em;
  line-height: 1.25;
}

/* Article title (override OJS default if needed) */
.article .title, .pkp_article .title, h1.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--jee-navy);
  text-align: center;
  margin-bottom: 0.75rem;
}

/* Container center */
.container, .pkp_structure, .page {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.pkp_structure_content {
    padding-top: 0;
    background: #fdfdfd;

}
/* ---------- HEADER ---------- */
.pkp_head {
  background: #fdfdfd;
  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: #fdfdfd;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.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 Engineering 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;
}

.pkp_site_name_wrapper {
    background: #fdfdfd;
}




/* ========== NAVIGATION ========== */

/* overall nav container */
.pkp_site_nav_menu {
    padding: 0 0 10px;
    background: #092c51;
}

/* 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: 10px;
}

/* 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: #ffffff;
  color: var(--jsci-orange) !important; /* hover orange text */
}
#navigationPrimary a:hover, #navigationPrimary a:focus {
        color: #ffffff;
        background: #092c51;
}
#navigationPrimary>li>a:hover{
  background: #fcfafa;
}

/*search button*/
.pkp_navigation_search_wrapper a {
    padding-bottom: 6px;
    color: #ffffff;
    padding-left: 130px;
    padding-top: 8px;
}
.pkp_navigation_search_wrapper a:hover, .pkp_navigation_search_wrapper a:focus {
        color: #ea6600;
        border-color: #092c51;
    }






/* ========== Hero / Banner helpers ========== */
.hero {
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: 48px 0;
  background: linear-gradient(180deg, var(--jee-navy) 0%, #0d4362 60%);
  color: #fff;
}

/* Left logo area for hero */
.hero .hero-logo {
  max-width: 320px;
  margin-right: 32px;
}

/* Hero text */
.hero .hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin: 0 0 12px 0;
  color: #ffffff;
}
.hero .hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
}

/* ========== Content formatting ========== */
.article .abstract, .abstract {
  background: var(--jee-muted);
  padding: 18px;
  border-left: 4px solid var(--jee-gold);
  margin-bottom: 18px;
  border-radius: 4px;
}

/* Figure captions */
figcaption, .figure .caption {
  font-size: 13px;
  color: #555;
  text-align: center;
  margin-top: 8px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
table th {
  background: #f8fafb;
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #e6eef3;
}
table td {
  padding: 8px;
  border-bottom: 1px solid #eef3f7;
}

/* ========== Links ========== */
a {
  color: var(--jee-navy);
}
a:hover {
  color: var(--jee-gold);
}

/* ========== Footer ========== 
.site-footer, .footer, footer {
  background: var(--jee-navy);
  color: #fff;
  padding: 28px 0;
  font-size: 14px;
  line-height: 1.5;
}
.site-footer a, footer a {
  color: var(--jee-gold);
  text-decoration: none;
}
.site-footer a:hover, footer a:hover {
  text-decoration: underline;
}

/* Footer layout helpers 
.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer .footer-left {
  display:flex; align-items:center; gap:12px;
}
.site-footer .footer-left img { height:48px; }*/




/* ========== FOOTER ========== */
.pkp_structure_footer_wrapper{
    border-bottom: none;
    height: 100px;
    text-align: center !important;
    /*font-size:x-small !important;*/
    font-size: smaller !important;
    color: #e8ecee;
    background-color: #092c51;
}
.pkp_structure_footer_wrapper * {
    text-align: center !important;
}
.pkp_brand_footer{
    display: none;
}
.pkp_footer_content{
    padding: 1rem;
}





/* ========== Utilities ========== */
.badge {
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  background:var(--jee-gold);
  color:var(--jee-navy);
}

/* Small text */
.small { font-size: 12px; color: #666; }

.pkp_page_index .homepage_image img {
    display: block;
    width: 96%;
    height: auto;
    margin: 20px;
}

/* ========== Responsive ========== */
@media (max-width: 990px) {
  .site-header .logo img { height: 48px; }
  .hero { flex-direction: column; text-align: center; padding: 36px 0; }
  .hero .hero-logo { margin: 0 0 16px 0; }
  .site-footer .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .navbar { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 600px) {
  .article .title, .hero .hero-title { font-size: 22px; }
  .a-button--primary { padding: 8px 12px; font-size: 14px; }
}



/* ========== Accessibility tweaks ========== */
/* Ensure focus outlines are visible */
a:focus, button:focus, .a-button:focus {
  outline: 3px solid rgba(255,200,87,0.25);
  outline-offset: 2px;
}

/* High-contrast text on dark backgrounds */
.text-on-navy { color: #fff !important; }




/* ==========top Home ========== */
.cmp_breadcrumbs {
    display: none;
}
.pkp_structure_main .page h1 {
    margin-top: 15px;
}
