/* =========================================================
   CLASSY LIGHT OJS THEME - SINGLE FILE CSS
   Inspired by the sample classy theme screenshot
   ========================================================= */

/* ---------- ROOT ---------- */
:root {
  --primary: #2f79b7;
  --primary-dark: #245f91;
  --primary-soft: #eaf4fb;
  --accent: #5fb8d6;
  --text: #2b2f33;
  --muted: #6f7d8c;
  --bg: #f3f5f7;
  --white: #ffffff;
  --border: #dbe4ec;
  --soft-border: #edf2f6;
  --shadow: 0 8px 22px rgba(43, 73, 109, 0.08);
  --shadow-hover: 0 12px 26px rgba(43, 73, 109, 0.13);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* ---------- GLOBAL ---------- */
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-size: 15px;
  line-height: 1.75;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none !important;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--primary-dark);
  text-decoration: none !important;
}

p {
  margin: 0 0 14px 0;
  text-align: justify;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- PAGE WRAPPER ---------- */
.pkp_structure_page,
.page,
.page_index_journal,
.page_about,
.page_article,
.page_issue {
  background: transparent !important;
}

/* ---------- HEADER ---------- */
.pkp_structure_head {
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1400&q=60");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #d7e2eb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* ---------- SITE TITLE AREA ---------- */
.pkp_site_name_wrapper {
  background: transparent !important;
  padding-top: 22px;
  padding-bottom: 18px;
}

.pkp_site_name {
  margin: 0;
}

.pkp_site_name a {
  color: var(--primary) !important;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px rgba(47, 121, 183, 0.15);
}

.pkp_site_name a:hover {
  color: var(--primary-dark) !important;
}

.pkp_site_name .is_img img {
  max-height: 95px;
  width: auto;
}

/* ---------- OPTIONAL TAGLINE STYLE ---------- */
.pkp_site_name + .cmp_skip_to_content,
.pkp_site_name em,
.pkp_site_name_wrapper .site_description {
  color: #4c91b3 !important;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- USER NAV ---------- */
.pkp_navigation_user_wrapper {
  background: transparent !important;
}

.pkp_navigation_user {
  margin-top: 10px;
}

.pkp_navigation_user > li > a {
  color: #234a6d !important;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  font-weight: 600;
}

.pkp_navigation_user > li > a:hover {
  background: var(--primary-soft) !important;
  color: var(--primary-dark) !important;
}

/* ---------- PRIMARY MENU BAR ---------- */
.pkp_navigation_primary_wrapper {
  background: rgba(255,255,255,0.94) !important;
  border-top: 1px solid var(--soft-border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.pkp_navigation_primary_row {
  background: transparent !important;
}

.pkp_navigation_primary {
  padding-top: 4px;
  padding-bottom: 4px;
}

.pkp_navigation_primary > li > a {
  color: #234a6d !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 16px !important;
  position: relative;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  color: var(--primary) !important;
  background: transparent !important;
}

.pkp_navigation_primary > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
}

.pkp_navigation_primary > li > a:hover::after,
.pkp_navigation_primary > li > a:focus::after,
.pkp_navigation_primary > li.current > a::after {
  transform: scaleX(1);
}

/* ---------- DROPDOWN MENUS ---------- */
.pkp_nav_list ul {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px 0;
}

.pkp_nav_list ul a {
  color: #355e80 !important;
  padding: 10px 16px !important;
  font-weight: 500;
}

.pkp_nav_list ul a:hover {
  background: var(--primary-soft) !important;
  color: var(--primary-dark) !important;
}

/* ---------- SEARCH ---------- */
.pkp_search,
.search_prompt,
.search_controls {
  color: #234a6d !important;
}

.pkp_head_wrapper input[type="text"],
.pkp_head_wrapper input[type="search"] {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 30px !important;
  padding: 10px 15px !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

/* ---------- CONTENT STRUCTURE ---------- */
.pkp_structure_content {
  padding-top: 18px;
  padding-bottom: 30px;
}

.pkp_structure_main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 26px 24px;
  box-shadow: none;
}

.pkp_structure_sidebar {
  padding-left: 18px;
}

/* ---------- MAIN HEADINGS ---------- */
h1, h2, h3, h4, h5, h6 {
  color: #2c3136;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.pkp_structure_main h1::after,
.pkp_structure_main h2::after,
.pkp_structure_main h3::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background: var(--primary);
  margin-top: 10px;
}

/* ---------- MAIN BANNER / TOP IMAGE ---------- */
.pkp_structure_main img:first-of-type,
.page_about .pkp_structure_main img:first-of-type,
.page_custom .pkp_structure_main img:first-of-type {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

/* ---------- CONTENT TEXT ---------- */
.pkp_structure_main p,
.pkp_structure_main li {
  color: #303942;
}

.pkp_structure_main ul li::marker {
  color: var(--primary);
}

/* ---------- SIDEBAR BLOCKS ---------- */
.pkp_structure_sidebar .pkp_block,
.block_custom,
.block_information,
.block_web_feed,
.block_make_submission,
.block_languageToggle {
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0;
  padding: 0 !important;
  margin-bottom: 18px;
  box-shadow: none;
  overflow: hidden;
}

.pkp_structure_sidebar .title,
.pkp_block .title,
.block_custom .title {
  background: #eef6fc;
  color: #3b6d96 !important;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 18px;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.pkp_structure_sidebar .content,
.block_custom .content,
.block_information .content,
.block_web_feed .content {
  padding: 14px 18px 16px 18px;
  color: #42515f;
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- SIDEBAR LINKS LIKE SAMPLE ---------- */
.pkp_structure_sidebar .content ul,
.pkp_structure_sidebar .content ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pkp_structure_sidebar .content li {
  margin: 0;
  padding: 0;
}

.pkp_structure_sidebar .content li a,
.block_information .content a,
.block_custom .content a {
  display: block;
  padding: 12px 14px;
  color: #3c6f98 !important;
  border-bottom: 1px solid #edf3f8;
  transition: var(--transition);
  font-weight: 500;
}

.pkp_structure_sidebar .content li:last-child a,
.block_information .content a:last-child,
.block_custom .content a:last-child {
  border-bottom: none;
}

.pkp_structure_sidebar .content li a:hover,
.block_information .content a:hover,
.block_custom .content a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark) !important;
  padding-left: 18px;
}

/* ---------- SIDEBAR IMAGE ---------- */
.pkp_structure_sidebar img,
.block_custom img,
.block_html img {
  display: block;
  margin: 14px auto;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}

/* ---------- BUTTONS ---------- */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.cmp_button,
.block_make_submission a,
.obj_galley_link,
a.read_more {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fc 100%) !important;
  color: #295d87 !important;
  border: 1px solid #cddae6 !important;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(41, 93, 135, 0.06);
  transition: var(--transition);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.cmp_button:hover,
.block_make_submission a:hover,
.obj_galley_link:hover,
a.read_more:hover {
  background: linear-gradient(180deg, #eef7fd 0%, #dfeffb 100%) !important;
  color: var(--primary-dark) !important;
  border-color: #bdd5e8 !important;
  transform: translateY(-1px);
}

/* ---------- FORMS ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #9bc7e7;
  box-shadow: 0 0 0 3px rgba(47, 121, 183, 0.12);
}

/* ---------- ARTICLE / CONTENT BOXES ---------- */
.obj_article_summary,
.obj_issue_summary,
.page_article .obj_article_details,
.page_issue .issue_toc,
.page_search .search_results,
.page_login .login,
.page_register .register,
.page_lost_password .lost_password,
.cmp_announcements li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

/* ---------- BREADCRUMB ---------- */
.cmp_breadcrumbs {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.cmp_breadcrumbs a {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- TABLE ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
}

table th,
table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}

table th {
  background: #f1f7fc;
  color: #2c587e;
  font-weight: 700;
}

/* ---------- ANNOUNCEMENTS ---------- */
.cmp_announcements li {
  list-style: none;
  margin-bottom: 12px;
  padding: 16px;
  border-left: 3px solid var(--primary);
}

/* ---------- FOOTER ---------- */
.pkp_structure_footer_wrapper {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6f9 100%) !important;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.pkp_structure_footer {
  text-align: center !important;
  padding: 22px 18px !important;
}

.pkp_structure_footer,
.pkp_structure_footer p,
.pkp_structure_footer div,
.pkp_structure_footer span,
.pkp_structure_footer a {
  color: #516473 !important;
}

.pkp_structure_footer a:hover {
  color: var(--primary) !important;
}

/* ---------- HIDE PKP BRAND ---------- */
.pkp_brand_footer,
.pkp_brand_footer img,
img[alt*="PKP"],
img[src*="pkp"],
img[src*="ojs_brand"] {
  display: none !important;
}

/* ---------- MODAL / POPUP ---------- */
.pkp_modal,
.ui-dialog,
.modal {
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 34px rgba(41, 93, 135, 0.15) !important;
}

.ui-dialog .ui-dialog-titlebar,
.modal-header {
  background: linear-gradient(180deg, #f6fbff 0%, #e8f2fa 100%) !important;
  color: #2f668f !important;
  border-bottom: 1px solid var(--border) !important;
}

.ui-widget-overlay,
.modal-backdrop {
  background: rgba(80, 102, 120, 0.35) !important;
}

/* ---------- SMALL DETAILS ---------- */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

blockquote {
  background: #f8fbfe;
  border-left: 3px solid var(--primary);
  margin: 16px 0;
  padding: 14px 16px;
  color: #415565;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .pkp_structure_main,
  .pkp_structure_sidebar {
    width: 100% !important;
    float: none !important;
  }

  .pkp_structure_sidebar {
    padding-left: 0;
    margin-top: 18px;
  }

  .pkp_site_name a {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .pkp_structure_main {
    padding: 18px;
  }

  .pkp_site_name a {
    font-size: 22px;
  }

  .pkp_navigation_primary > li > a,
  .pkp_navigation_user > li > a {
    padding: 10px 12px !important;
    font-size: 14px;
  }
}