﻿/****************************************
 * LEXTECH JOURNAL THEME CSS
 * LexTech: International Journal of Law, Society and Technology
 ****************************************/

/****************************************
 * 1. GLOBAL TYPOGRAPHY + BODY
 ****************************************/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* Base font */
body,
p,
div,
span,
a,
li,
td,
th,
input,
textarea,
button {
  font-family: "Source Sans 3", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #222 !important;
}

/* No custom body background here – keep theme/default (white) */
.pkp_structure_main h1, .pkp_structure_main h2, .pkp_structure_main h3, .pkp_structure_main h4 {
    margin:1rem 0rem !important; 
}
/* Headings */
h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.35px;
  color: #0b3f53 !important;   /* deep teal */
}

/* Section headings */
h2 {
  font-size: 22px !important;
 
  border-bottom: 2px solid #d6e0ee !important;
}

h3 {
  font-size: 20px !important;
  
}

/* Paragraphs */
p {
  text-align: justify !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  
}
.pkp_structure_main p, .pkp_structure_main ul{
  margin: 0rem !important;
}
/* Bold text accent (gold) */
strong,
b {
  color: #8f6c01 !important;     /* gold accent */
  font-weight: 600 !important;
}

/* Lists */
ul li,
ol li {
  
  line-height: 1.7 !important;
  font-size: 16px !important;
}

/* Links */
a {
  color: #0f647e !important;      /* teal-blue */
  text-decoration: none !important;
}

a:hover {
  color: #0b3f53 !important;      /* deeper teal */
 
}


/****************************************
 * 2. HEADER — LOGO + TITLE + ADMIN
 ****************************************/

/* Header background – deep teal gradient with gold borders */
#headerNavigationContainer .pkp_head_wrapper {
  background: linear-gradient(135deg, #0b3f53, #0f647e);
  border-top: 3px solid #d4ae3b;
  border-bottom: 3px solid #d4ae3b;
}

/* Header layout */
#headerNavigationContainer .pkp_site_name_wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  
}

/* Logo */
#headerNavigationContainer .pkp_site_name a.is_img img {
  max-height: 86px !important;
  width: auto !important;
  display: block !important;
}

/* Hide default screen-reader title (visual only) */
#headerNavigationContainer h1.pkp_screen_reader {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Journal title beside logo – deep teal, no gradient */
#headerNavigationContainer .pkp_site_name_wrapper::after {
  content: "LexTech: International Journal of Law, Society and Technology";
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 700;
  color: #0b3f53;                 /* light gold text (better contrast on dark bg) */
  letter-spacing: 0.6px;
  white-space: normal;
  order: 2;
}
.pkp_site_name{
  padding-bottom: 0rem !important;
}
/* Admin links on the right */
#headerNavigationContainer .pkp_navigation_user_wrapper {
  margin-left: auto !important;
}

#headerNavigationContainer .pkp_navigation_user_wrapper a {
  color: #0b3f53 !important;
}


/****************************************
 * 3. MAIN NAVIGATION MENU
 ****************************************/

.pkp_navigation_primary_wrapper {
  background-color: #0b3f53;
  border-bottom: 2px solid #d4ae3b;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Menu list */
.pkp_navigation_primary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* Menu links */
.pkp_navigation_primary > li > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  padding: 9px 14px !important;

  font-family: "Source Sans 3", sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f7f7f7 !important;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

/* Hover */
.pkp_navigation_primary > li > a:hover {
  background: #d4ae3b;
  color: #0b3f53 !important;
  transform: translateY(-1px);
}

/* Active */
.pkp_navigation_primary > li.current > a,
.pkp_navigation_primary > li.active > a {
  background: #f7e08b !important;
  color: #0b3f53 !important;
}

/* Dropdown menu – white with teal text and gold hover */
.pkp_navigation_primary li ul.dropdown-menu {
  background: #ffffff;
  border: 1px solid #d4ae3b;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  min-width: 220px;
  padding: 5px 0;
}

.pkp_navigation_primary li ul.dropdown-menu li a {
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 500;
  color: #0b3f53 !important;
  background: transparent;
}

.pkp_navigation_primary li ul.dropdown-menu li a:hover {
  background: #f7e08b !important;
  color: #0b3f53 !important;
}


/****************************************
 * 4. SEARCH BUTTON
 ****************************************/

.pkp_navigation_search_wrapper {
  margin-left: auto;
  white-space: nowrap;
}

.pkp_navigation_search_wrapper .pkp_search_desktop {
  font-size: 14px !important;
  font-weight: 600;
  color: #f7f7f7 !important;
  text-decoration: none;
}


/****************************************
 * 5. FOOTER — CENTERED & REMOVE PLATFORM TEXT
 ****************************************/

/* Center footer content */
.pkp_footer,
.pkp_footer_content,
.pkp_footer_content p,
.pkp_footer_content div,
.pkp_footer_text,
.pkp_footer_info {
  text-align: center !important;
  margin: 0 auto !important;
}

.pkp_footer_content * {
  float: none !important;
}

.pkp_footer {
  width: 100% !important;
  display: block !important;
}

/* Remove OJS / platform / workflow branding */
.pkp_brand_footer,
.pkp_brand_footer *,
.pkp_footer_content .pkp_footer_brand,
.pkp_footer_content .pkp_brand_image,
.pkp_footer_content .pkp_brand_text,
.pkp_footer_content .pkp_workflow_link,
.pkp_footer_content .pkp_footer_about {
  display: none !important;
}


/****************************************
 * 6. REMOVE ALL BREADCRUMBS
 ****************************************/

.pkp_breadcrumbs,
.pkp_breadcrumb,
.pkp_structure_breadcrumb,
.pkp_navigation_breadcrumb,
.cmp_breadcrumbs,
.breadcrumbs,
.breadcrumb {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}


/****************************************
 * 7. SIDEBAR — CLEAN, LEFT-ALIGNED
 ****************************************/

/* Slight padding left & right */
.pkp_structure_sidebar,
.pkp_structure_sidebar_left,
.pkp_structure_sidebar_right {
  padding-top: 12px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Remove extra spacing inside blocks */
.pkp_block {
  margin: 0 !important;
  padding: 0 !important;
}

/* Sidebar text left aligned */
.pkp_structure_sidebar,
.pkp_structure_sidebar_left,
.pkp_structure_sidebar_right,
.pkp_block,
.pkp_block p,
.pkp_block li,
.pkp_block a,
.pkp_block .title,
.pkp_block h2,
.pkp_block h3 {
  text-align: left !important;
}



/****************************************
 * SIDEBAR BLOCK BOX SHADOW (ONLY)
 ****************************************/

/* Sidebar block card effect */
.pkp_structure_sidebar .pkp_block,
.pkp_structure_sidebar_left .pkp_block,
.pkp_structure_sidebar_right .pkp_block {
  background: #ffffff !important;
  padding: 14px 16px !important;
  margin-bottom: 16px !important;

  /* Box shadow only (no border) */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  border-radius: 6px !important;
}

/* Optional: block title spacing consistency */
.pkp_block .title,
.pkp_block h2,
.pkp_block h3 {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}


/************************************************
 * LEXTECH – MOBILE & TABLET RESPONSIVE MENU
 * (Desktop styles NOT affected)
 ************************************************/

/* ============================================
   COMMON: MOBILE + TABLET (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {

  /* Hide journal title text */
  #headerNavigationContainer .pkp_site_name_wrapper::after {
    display: none !important;
    content: none !important;
  }

  /* Header layout */
  #headerNavigationContainer .pkp_site_name_wrapper {
    position: relative !important;
    justify-content: center !important;
    min-height: 120px !important;
    padding: 16px 12px !important;
  }

  /* Logo centered */
  #headerNavigationContainer .pkp_site_name {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  #headerNavigationContainer .pkp_site_name a.is_img img {
    max-height: 72px !important;
  }

  /* Hamburger (menu toggle) – left */
  #headerNavigationContainer .pkp_site_nav_toggle {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999 !important;
  }

  /* Remove dark menu bar */
  .pkp_navigation_primary_wrapper {
    background: transparent !important;
    border: none !important;
  }

  /* Menu container (drawer style) */
  .pkp_site_nav_menu {
    background: #ffffff !important;
    padding: 16px 18px 18px 22px !important;
    box-shadow: none !important;
  }

  /* Main menu list */
  .pkp_navigation_primary {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .pkp_navigation_primary > li {
    margin: 6px 0 !important;
  }

  .pkp_navigation_primary > li > a {
    display: block !important;
    padding: 4px 0 !important;

    font-size: 13px !important;        /* body-like */
    font-weight: 500 !important;
    line-height: 1.6 !important;

    color: #0b3f53 !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  /* Submenu – simple indent */
  .pkp_navigation_primary li ul {
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    padding-left: 16px !important;
    margin-top: 4px !important;
  }

  .pkp_navigation_primary li ul li {
    margin: 4px 0 !important;
  }

  .pkp_navigation_primary li ul li a {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    padding: 3px 0 !important;
    color: #0b3f53 !important;
  }

  /* Search – force visible */
  .pkp_navigation_search_wrapper {
    display: block !important;
    margin-top: 14px !important;
    padding-top: 10px !important;
    border-top: 1px solid #d4ae3b !important;
  }

  .pkp_navigation_search_wrapper a,
  .pkp_navigation_search_wrapper .pkp_search_desktop {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0b3f53 !important;
  }
}


/* ============================================
   MOBILE ONLY (≤ 767px)
   ============================================ */
@media (max-width: 767px) {

  /* Slightly taller header for touch comfort */
  #headerNavigationContainer .pkp_site_name_wrapper {
    min-height: 130px !important;
  }

  #headerNavigationContainer .pkp_site_name a.is_img img {
    max-height: 68px !important;
  }
}


/* ============================================
   TABLET ONLY (768px – 1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Slightly smaller logo than mobile */
  #headerNavigationContainer .pkp_site_name a.is_img img {
    max-height: 70px !important;
  }

  /* Menu text slightly tighter */
  .pkp_navigation_primary > li > a {
    font-size: 13px !important;
  }

  .pkp_navigation_primary li ul li a {
    font-size: 13px !important;
  }
}

/************************************************
 * LEXTECH – ISSUE PAGE ARTICLE CARDS
 * Law • Academic • Premium
 ************************************************/

/* Container width */
.pkp_page_issue .obj_issue_toc {
  max-width: 1200px;
  margin: 0 auto !important;
}

/* ARTICLE CARD */
.pkp_page_issue .obj_article_summary {
  background: #ffffff !important;
  padding: 18px 22px !important;
  margin-bottom: 22px !important;

  border-radius: 10px !important;
  border: 1px solid #e3e8ef !important;

  box-shadow: 0 8px 22px rgba(11, 63, 83, 0.10) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover – desktop only */
@media (min-width: 1025px) {
  .pkp_page_issue .obj_article_summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(11, 63, 83, 0.18) !important;
  }
}

/* ARTICLE TITLE */
.pkp_page_issue .obj_article_summary h3 a {
  font-family: "Playfair Display", serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;

  color: #0b3f53 !important;
  text-decoration: none !important;
}

/* REMOVE OJS TITLE UNDERLINE */
.pkp_page_issue .obj_article_summary h3 a::after,
.pkp_page_issue .obj_article_summary h3::after {
  content: none !important;
  display: none !important;
}

/* AUTHORS */
.pkp_page_issue .obj_article_summary .authors {
  margin-top: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f647e !important;
}

/* ABSTRACT (if enabled) */
.pkp_page_issue .obj_article_summary .abstract {
  font-size: 14px !important;
  line-height: 1.7 !important;
  margin-top: 10px !important;
  color: #333 !important;
}

/* FULL ARTICLE / PDF BUTTON */
.pkp_page_issue .obj_article_summary .obj_galley_link,
.pkp_page_issue .obj_article_summary .obj_galley_link a {
  display: inline-block !important;
  margin-top: 12px !important;
  padding: 7px 16px !important;

  font-family: "Source Sans 3", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;

  background: #0b3f53 !important;
  color: #ffffff !important;

  border-radius: 6px !important;
  text-decoration: none !important;

  box-shadow: 0 3px 8px rgba(0,0,0,0.16) !important;
  transition: background 0.25s ease;
}

/* Button hover */
.pkp_page_issue .obj_article_summary .obj_galley_link:hover,
.pkp_page_issue .obj_article_summary .obj_galley_link a:hover {
  background: #0f647e !important;
  color: #ffffff !important;
}

/************************************************
 * MOBILE – COMPACT LAW CARDS
 ************************************************/
@media (max-width: 767px) {

  .pkp_page_issue .obj_article_summary {
    padding: 14px 16px !important;
    border-radius: 8px !important;
  }

  .pkp_page_issue .obj_article_summary h3 a {
    font-size: 16px !important;
  }

  .pkp_page_issue .obj_article_summary .authors {
    font-size: 12.5px !important;
  }

  .pkp_page_issue .obj_article_summary .obj_galley_link,
  .pkp_page_issue .obj_article_summary .obj_galley_link a {
    font-size: 12px !important;
    padding: 6px 14px !important;
  }
}

/* Remove extra gaps between sections */
.obj_issue_toc .sections:not(:first-child),
.cmp_article_list > li {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
