/*
  International Journal of Applied Mathematics, Optimization and Artificial Intelligence
  OJS Journal Style Sheet
  Upload in: Settings > Website > Appearance > Journal style sheet
*/

:root {
  --ijm-primary: #0b1f3a;
  --ijm-primary-2: #123c69;
  --ijm-accent: #0f9f8f;
  --ijm-gold: #d4a017;
  --ijm-bg: #f5f8fb;
  --ijm-card: #ffffff;
  --ijm-text: #1f2937;
  --ijm-muted: #667085;
  --ijm-border: #d9e2ec;
  --ijm-shadow: 0 14px 40px rgba(11, 31, 58, 0.10);
  --ijm-radius: 14px;
  --ijm-font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ijm-text);
  background: radial-gradient(circle at top left, rgba(15,159,143,.10), transparent 34%), var(--ijm-bg);
  font-family: var(--ijm-font);
  font-size: 16px;
  line-height: 1.72;
}

a {
  color: var(--ijm-primary-2);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

a:hover,
a:focus {
  color: var(--ijm-accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Main header */
.pkp_structure_head {
  background:
    linear-gradient(135deg, rgba(11,31,58,.98), rgba(18,60,105,.96)),
    radial-gradient(circle at 80% 20%, rgba(212,160,23,.32), transparent 30%);
  border-bottom: 5px solid var(--ijm-gold);
  box-shadow: var(--ijm-shadow);
}

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

.pkp_site_name,
.pkp_site_name > a,
.pkp_site_name .is_text {
  color: #fff !important;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.pkp_site_name {
  max-width: 980px;
}

.pkp_site_name > a,
.pkp_site_name .is_text {
  font-size: clamp(1.55rem, 3.2vw, 2.9rem);
}

.pkp_site_name::after {
  content: "International Journal of Applied Mathematics Optimization And Artificial Intelligence";
  display: block;
  width: fit-content;
  margin-top: 12px;
  padding: 7px 14px;
  color: #f7fbff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .4px;
}

/* Navigation */
.pkp_navigation_primary_wrapper,
.pkp_navigation_user_wrapper {
  background: rgba(255,255,255,.07);
  border-top: 1px solid rgba(255,255,255,.12);
}

.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:link,
.pkp_navigation_primary > li > a:visited,
.pkp_nav_list ul a,
.pkp_navigation_user a {
  color: #eef6ff !important;
  font-weight: 650;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_nav_list ul a:hover,
.pkp_navigation_user a:hover {
  color: #fff !important;
  background: rgba(15,159,143,.22);
  border-radius: 10px;
}

.pkp_nav_list ul {
  background: var(--ijm-primary);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.20);
  overflow: hidden;
}

/* Layout */
.pkp_structure_content {
  padding-top: 32px;
  padding-bottom: 40px;
}

.pkp_structure_main {
  background: var(--ijm-card);
  border: 1px solid var(--ijm-border);
  border-radius: var(--ijm-radius);
  box-shadow: var(--ijm-shadow);
  padding: 32px;
}

.pkp_structure_sidebar {
  background: var(--ijm-card);
  border: 1px solid var(--ijm-border);
  border-radius: var(--ijm-radius);
  box-shadow: 0 10px 30px rgba(11,31,58,.08);
  padding: 22px;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_block .title,
.page h1,
.page h2,
.page h3 {
  color: var(--ijm-primary);
  font-weight: 800;
  line-height: 1.25;
}

.pkp_structure_main h1,
.page h1 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.pkp_structure_main h1::after,
.page h1::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--ijm-accent), var(--ijm-gold));
  border-radius: 99px;
}

/* Homepage welcome/current issue */
.page_index_journal .current_issue,
.pkp_page_index .current_issue,
.obj_issue_toc,
.obj_article_summary,
.cmp_article_list > li,
.pkp_block {
  background: #fff;
  border: 1px solid var(--ijm-border);
  border-radius: var(--ijm-radius);
  box-shadow: 0 8px 24px rgba(11,31,58,.06);
}

.page_index_journal .current_issue,
.pkp_page_index .current_issue,
.obj_issue_toc {
  padding: 24px;
}

.obj_article_summary,
.cmp_article_list > li {
  padding: 18px 20px;
  margin-bottom: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.obj_article_summary:hover,
.cmp_article_list > li:hover {
  transform: translateY(-2px);
  border-color: rgba(15,159,143,.35);
  box-shadow: 0 16px 34px rgba(11,31,58,.10);
}

.obj_article_summary .title,
.obj_article_summary .title a,
.cmp_article_list .title,
.cmp_article_list .title a {
  color: var(--ijm-primary);
  font-weight: 800;
}

.obj_article_summary .authors,
.obj_article_summary .pages,
.obj_issue_summary .description,
.obj_issue_toc .heading {
  color: var(--ijm-muted);
}

/* Buttons */
.cmp_button,
.cmp_form .buttons button,
.pkp_head_wrapper .pkp_search button,
button.submit,
input[type="submit"],
input[type="button"],
.pkp_button,
a.pkp_button {
  color: #fff !important;
  background: linear-gradient(135deg, var(--ijm-accent), var(--ijm-primary-2));
  border: 0 !important;
  border-radius: 999px;
  box-shadow: 0 9px 20px rgba(15,159,143,.22);
  font-weight: 750;
  letter-spacing: .2px;
  padding: 10px 18px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.cmp_button:hover,
.cmp_button:focus,
.cmp_form .buttons button:hover,
button.submit:hover,
input[type="submit"]:hover,
.pkp_button:hover,
a.pkp_button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(15,159,143,.30);
  filter: brightness(1.04);
}

/* Sidebar blocks */
.pkp_block {
  padding: 18px;
  margin-bottom: 18px;
}

.pkp_block .title {
  border-bottom: 2px solid rgba(15,159,143,.25);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.pkp_block ul,
.pkp_block ol {
  padding-left: 18px;
}

/* Forms and search */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
select,
textarea {
  border: 1px solid var(--ijm-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--ijm-text) !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--ijm-accent) !important;
  box-shadow: 0 0 0 4px rgba(15,159,143,.12) !important;
}

/* Tables */
table,
.cmp_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ijm-border);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid var(--ijm-border);
  padding: 12px 14px;
}

th {
  background: #eef5fb;
  color: var(--ijm-primary);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

/* Issue and galley links */
.obj_galley_link,
.galleys_links a,
.article_galleys a {
  border: 1px solid rgba(15,159,143,.35) !important;
  border-radius: 999px !important;
  color: var(--ijm-primary-2) !important;
  background: rgba(15,159,143,.08) !important;
  font-weight: 800;
}

.obj_galley_link:hover,
.galleys_links a:hover,
.article_galleys a:hover {
  color: #fff !important;
  background: var(--ijm-accent) !important;
}

/* Footer */
.pkp_structure_footer_wrapper,
.pkp_structure_footer {
  background: var(--ijm-primary);
  color: #dbe8f4;
  border-top: 5px solid var(--ijm-gold);
}

.pkp_structure_footer a,
.pkp_structure_footer_wrapper a {
  color: #ffffff;
  font-weight: 650;
}

.pkp_brand_footer {
  opacity: .85;
}

/* Accessibility */
:focus-visible {
  outline: 3px solid rgba(212,160,23,.70) !important;
  outline-offset: 2px;
}
/* Hide "Platform & workflow by OJS/PKP" footer branding */
.pkp_brand_footer,
.pkp_brand_footer a,
.pkp_brand_footer img,
.pkp_structure_footer .pkp_brand_footer {
    display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
  .pkp_structure_main,
  .pkp_structure_sidebar {
    padding: 22px;
  }

  .pkp_site_name > a,
  .pkp_site_name .is_text {
    font-size: clamp(1.35rem, 6vw, 2.1rem);
  }
}

@media (max-width: 768px) {
  .pkp_head_wrapper {
    padding-top: 18px;
  }

  .pkp_site_name::after {
    width: auto;
    font-size: .82rem;
    line-height: 1.4;
  }

  .pkp_structure_content {
    padding-top: 18px;
  }

  .pkp_structure_main,
  .pkp_structure_sidebar,
  .page_index_journal .current_issue,
  .pkp_page_index .current_issue,
  .obj_issue_toc {
    border-radius: 12px;
    padding: 18px;
  }

  .obj_article_summary,
  .cmp_article_list > li {
    padding: 15px;
  }
}
