/* ==========================================================
   Spectrum International Conferences — site index stylesheet
   OJS 3.4 · Default theme
   Upload: Administration → Site Settings → Appearance → Setup
           → Site style sheet
   ========================================================== */

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

:root {
  --sp-navy: #0b1630;
  --sp-navy-2: #11244a;
  --sp-ink: #1c2540;
  --sp-muted: #5b6785;
  --sp-line: #e3e8f2;
  --sp-bg: #f5f7fb;
}

html, body {
  overflow-x: hidden;
}

body {
  background: var(--sp-bg);
  font-family: 'Montserrat', 'Noto Sans', sans-serif;
  color: var(--sp-ink);
}

/* ---------- Header: text-only hero (no logo needed) ---------- */
.pkp_structure_head {
  position: relative;
  background:
    radial-gradient(ellipse at 78% 50%, rgba(79,124,255,.30), rgba(79,124,255,0) 55%),
    linear-gradient(120deg, #0b1630 0%, #11244a 60%, #0d1a38 100%) !important;
  border-bottom: 0 !important;
}

/* rainbow strip under the header */
.pkp_structure_head::after {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #e84545 0 12.5%, #f07d0a 12.5% 25%, #ffd21f 25% 37.5%, #22b86a 37.5% 50%, #10a9c2 50% 62.5%, #3d6fe8 62.5% 75%, #7c4ee8 75% 87.5%, #d0409e 87.5% 100%);
}

.pkp_structure_head .pkp_head_wrapper {
  position: relative !important;
  max-width: 1200px !important;
  width: auto !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box;
}

.pkp_structure_head .pkp_site_name_wrapper,
.pkp_structure_head .pkp_site_name {
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
}

.pkp_structure_head .pkp_site_name_wrapper {
  padding: 64px 0 56px !important;
}

.pkp_structure_head .pkp_site_name img {
  display: none !important;
}

/* small line above the title */
.pkp_structure_head .pkp_site_name_wrapper::before {
  content: "MONTHLY  \00B7  OPEN ACCESS  \00B7  INTERNATIONAL";
  display: block;
  white-space: pre;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .22em;
  color: #8fa8d8;
  margin-bottom: 14px;
}

/* the title itself (works for text title and for a logo link) */
.pkp_structure_head .pkp_site_name a,
.pkp_structure_head .pkp_site_name .is_text {
  display: inline-block !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: clamp(30px, 4.6vw, 54px) !important;
  line-height: 1.1 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  letter-spacing: .005em;
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_structure_head .pkp_site_name a:hover,
.pkp_structure_head .pkp_site_name a:focus {
  color: #ffffff !important;
  text-decoration: none !important;
  outline: none;
}

/* line under the title */
.pkp_structure_head .pkp_site_name_wrapper::after {
  content: "Words \00B7  Learning \00B7  Markets \00B7  Nature \00B7  Health \00B7  Innovation \00B7  Society \00B7  Mind";
  display: block;
  margin-top: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .03em;
  color: #c9d6f5;
}

.pkp_structure_head .pkp_site_nav_toggle {
  position: absolute;
  z-index: 6;
}

@media (max-width: 767px) {
  .pkp_structure_head .pkp_site_name_wrapper { padding: 48px 0 36px !important; }
  .pkp_structure_head .pkp_site_name_wrapper::before { font-size: 11px; letter-spacing: .14em; }
  .pkp_structure_head .pkp_site_name_wrapper::after { font-size: 13px; }
}

/* Main content column: keep it wide and centred */
.pkp_structure_content {
  width: auto !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}

.page_index_site .journals > ul > li {
  width: auto !important;
  float: none !important;
}

/* Register / Login over the banner */
.pkp_navigation_user_wrapper {
  position: absolute !important;
  top: 14px;
  right: 24px;
  z-index: 5;
}

.pkp_navigation_user_wrapper a {
  color: #dbe5ff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
}

.pkp_navigation_user_wrapper a:hover,
.pkp_navigation_user_wrapper a:focus {
  color: #fff;
  text-decoration: underline;
}

/* Hide empty primary navigation row on the site index */
.pkp_navigation_primary_row:empty,
.pkp_navigation_primary_wrapper:empty {
  display: none;
}

/* ---------- Main area ---------- */
.pkp_structure_content {
  padding-top: 40px;
}

.pkp_structure_main {
  background: transparent;
}

/* Site introduction box */
.page_index_site .about_site {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-left: 5px solid #3d7bff;
  border-radius: 10px;
  padding: 26px 30px;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--sp-ink);
}

.page_index_site .about_site p:first-child { margin-top: 0; }
.page_index_site .about_site p:last-child { margin-bottom: 0; }

/* ---------- Conference list as cards ---------- */
.page_index_site .journals > h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--sp-navy);
  margin: 0 0 18px;
}

.page_index_site .journals > ul {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page_index_site .journals > ul > li {
  --c: #3d7bff;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-left: 6px solid var(--c);
  border-radius: 12px;
  padding: 26px 28px;
  margin: 0;
  box-shadow: 0 2px 10px rgba(16, 32, 72, .05);
  transition: box-shadow .2s ease, transform .2s ease;
}

.page_index_site .journals > ul > li:hover {
  box-shadow: 0 10px 28px rgba(16, 32, 72, .12);
  transform: translateY(-2px);
}

.page_index_site .journals > ul > li.has_thumb {
  grid-template-columns: 140px minmax(0, 1fr);
}

/* Cover (Journal thumbnail): small, always in the left column */
.page_index_site .journals .thumb {
  float: none !important;
  width: 140px !important;
  max-width: 140px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page_index_site .journals > ul > li.has_thumb > .thumb {
  grid-column: 1;
  grid-row: 1;
}

.page_index_site .journals > ul > li.has_thumb > .body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.page_index_site .journals .thumb img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(16, 32, 72, .22);
}

.page_index_site .journals .body {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.page_index_site .journals h3 {
  margin: 2px 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.page_index_site .journals h3 a {
  color: var(--sp-navy);
  text-decoration: none;
}

.page_index_site .journals h3 a:hover { color: var(--c); }

.page_index_site .journals .description {
  color: var(--sp-muted);
  font-size: 15px;
  line-height: 1.65;
}

.page_index_site .journals ul.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page_index_site .journals ul.links li { margin: 0; }

.page_index_site .journals ul.links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--c);
  color: var(--sp-navy);
  background: #fff;
}

.page_index_site .journals ul.links li:first-child a {
  background: var(--c);
  color: #fff;
}

.page_index_site .journals ul.links a:hover { filter: brightness(.92); }

/* Each conference gets its spectrum colour (matched by path) */
.journals li:has(a[href*="/index.php/philology"])       { --c: #e84545; }
.journals li:has(a[href*="/index.php/education"])       { --c: #f07d0a; }
.journals li:has(a[href*="/index.php/economics"])       { --c: #d9a600; }
.journals li:has(a[href*="/index.php/natural-sciences"]){ --c: #22b86a; }
.journals li:has(a[href*="/index.php/medicine"])        { --c: #10a9c2; }
.journals li:has(a[href*="/index.php/technology"])      { --c: #3d6fe8; }
.journals li:has(a[href*="/index.php/social-sciences"]) { --c: #7c4ee8; }
.journals li:has(a[href*="/index.php/psychology"])      { --c: #d0409e; }

/* ---------- Sidebar ---------- */
.pkp_structure_sidebar .pkp_block {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.pkp_structure_sidebar .pkp_block .title {
  font-weight: 700;
  color: var(--sp-navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
}

/* ---------- Footer ---------- */
.pkp_structure_footer_wrapper {
  background: var(--sp-navy);
  color: #c9d6f5;
  border-top: 6px solid transparent;
  border-image: linear-gradient(90deg, #e84545, #f07d0a, #ffd21f, #22b86a, #10a9c2, #3d6fe8, #7c4ee8, #d0409e) 1;
}

.pkp_structure_footer_wrapper a { color: #fff; }

.pkp_structure_footer .pkp_footer_content {
  font-size: 14px;
  line-height: 1.7;
}

.pkp_brand_footer { display: none !important; }

.pkp_structure_footer {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
  min-height: 0 !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .page_index_site .journals > ul > li,
  .page_index_site .journals > ul > li.has_thumb {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .page_index_site .journals .thumb { width: 120px !important; max-width: 120px !important; }
  .page_index_site .journals > ul > li.has_thumb > .thumb,
  .page_index_site .journals > ul > li.has_thumb > .body { grid-column: auto; grid-row: auto; }

  .pkp_navigation_user_wrapper {
    top: 6px;
    right: 8px;
  }

  .pkp_navigation_user_wrapper a { font-size: 12px; }
}
