/* Journal stylesheet for OJS 3.3.0.16 (Default theme)
   Upload at: Settings > Website > Appearance > Advanced > Journal Style Sheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --maroon-dark: #5c0000;
  --maroon: #8b0000;
  --gold: #d4a62a;
  --text: #4a4a4a;
  --bar-bg: #f8f9fa;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

/* ---------- Header ---------- */
.pkp_structure_head {
  background: linear-gradient(90deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-bottom: 3px solid var(--gold);
}

.pkp_head_wrapper {
  padding-top: 24px;
  padding-bottom: 0;
}

/* Logo image (upload your combined UPM and JSII logo as the Homepage Header Logo) */
.pkp_site_name .is_img img {
  max-height: 120px;
  margin: 0 auto;
  display: block;
}

/* Journal title, used when no logo image is set */
.pkp_site_name .is_text {
  display: block;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #ffffff;
  text-decoration: none;
}

/* Tagline under the logo */
.pkp_site_name::after {
  content: "UNIVERSITI PUTRA MALAYSIA \2022  SUSTAINABLE COMPUTING INNOVATION";
  display: block;
  text-align: center;
  margin: 28px 0 24px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
}

/* Login and register links in the header */
.pkp_navigation_user_wrapper a {
  color: #ffffff;
}

/* ---------- Primary navigation bar ---------- */
.pkp_navigation_primary_row {
  background: var(--bar-bg);
  border-top: 1px solid var(--gold);
}

.pkp_navigation_primary_wrapper {
  text-align: center;
}

.pkp_navigation_primary > li > a {
  color: #333333;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 16px 14px;
  border-bottom: 3px solid transparent;
  text-transform: none;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li.current > a {
  background: transparent;
  color: var(--maroon);
  border-bottom: 3px solid var(--gold);
}

/* ---------- Homepage current issue layout ---------- */
.page_index_journal .current_issue > h2 {
  display: none;
}

.page_index_journal .obj_issue_toc {
  display: grid;
  grid-template-columns: 375px 1fr;
  column-gap: 40px;
  align-items: center;
  padding: 40px 0;
}

.obj_issue_toc .heading {
  grid-column: 1;
}

.obj_issue_toc .cover img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.obj_issue_toc .description {
  grid-column: 2;
}

.obj_issue_toc .sections {
  grid-column: 1 / -1;
}

/* Hero text styles (used by the HTML placed in the issue description) */
.hero-label {
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin: 0 0 12px;
}

.hero-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--maroon);
  margin: 0 0 20px;
}

.hero-text {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 460px;
}

.hero-button {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 28px;
  background: var(--maroon);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 40px;
  box-shadow: 0 8px 18px rgba(139, 0, 0, 0.3);
}

.hero-button:hover {
  background: var(--maroon-dark);
}

/* ---------- Links, buttons and footer ---------- */
a {
  color: var(--maroon);
}

.pkp_structure_footer_wrapper {
  background: var(--maroon-dark);
  color: #ffffff;
}

.pkp_structure_footer_wrapper a {
  color: var(--gold);
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
  .page_index_journal .obj_issue_toc {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .obj_issue_toc .description {
    grid-column: 1;
  }
}


/* ---------- Revision: logo placement, tagline and search link ---------- */

.pkp_site_name_wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pkp_site_name {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

.pkp_site_name > a,
.pkp_site_name .is_img {
  display: inline-block !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.pkp_site_name .is_img img {
  max-height: 110px !important;
  width: auto !important;
  margin: 0 auto !important;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pkp_site_name::after {
  content: "UNIVERSITY MALAYSIA OF COMPUTER SCIENCE AND ENGINEERING \2022  INNOVATION AND EMERGING DIGITAL TECHNOLOGIES" !important;
  margin: 20px 0 22px !important;
  font-family: 'Inter', Arial, sans-serif !important;
}

/* Search link was white on a white bar */
.pkp_navigation_search_wrapper a,
.pkp_navigation_search_wrapper a:hover {
  color: #333333 !important;
}


/* ---------- Revision: journal title above the logo ---------- */

.pkp_site_name::before {
  content: "Journal of Innovation and Emerging Digital Technologies";
  display: block;
  text-align: center;
  margin: 8px 0 20px;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.2;
  color: #ffffff;
}

@media (max-width: 767px) {
  .pkp_site_name::before {
    font-size: 1.4rem;
  }
}


/* ---------- Revision: full width homepage hero ---------- */

/* Remove the sidebar and the vertical divider lines on the homepage only */
body.pkp_page_index .pkp_structure_sidebar {
  display: none !important;
}

body.pkp_page_index .pkp_structure_main {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.pkp_page_index .pkp_structure_main:before,
body.pkp_page_index .pkp_structure_main:after {
  display: none !important;
}

/* Hide the automatic "About the Journal" heading */
.homepage_about > h2 {
  display: none;
}

/* Hero layout */
.jh-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 48px 20px;
}

.jh-cover {
  flex: 0 0 340px;
  max-width: 100%;
}

.jh-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.jh-text {
  flex: 1 1 340px;
  max-width: 520px;
}

.jh-text .hero-title {
  margin-top: 0;
}
