/* ==== BASE TYPOGRAPHY ==== */
html { font-size: 16px; } /* Desktop base */
@media (max-width: 768px) {
  html { font-size: 15px; } /* Slightly smaller on mobile */
}

body {
  font-family: 'Lora', serif;
  color: #2C2C2C;
  background: #F7F8FA;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

h1, .h1 { font-size: 1.8rem; color: #2E4A7D; font-weight: 600; }
h2, .h2 { font-size: 1.5rem; color: #2E4A7D; font-weight: 600; }
h3 { font-size: 1.2rem; color: #4F7CA4; font-weight: 500; }

@media (max-width: 768px) {
  h1, .h1 { font-size: 1.5rem; }
  h2, .h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
}

/* ==== NAVIGATION ==== */
.navbar,
.header_view {
  background: linear-gradient(to right, #2E4A7D 0%, #4F7CA4 100%);
  border-bottom: 2px solid #6CA0DC;
  margin-bottom: 0;
}

.navbar-default .navbar-brand {
  font-size: 1.25rem;
  color: #FFFFFF;
  font-family: 'Playfair Display', serif;
}

.navbar-default .navbar-brand:hover { color: #A6C8E6; }

.navbar-default .nav>li>a {
  color: #FFFFFF;
  font-size: 1rem;
  padding: 10px 14px;
}

.navbar-default .nav>li>a:hover { color: #A6C8E6; }

.navbar-default .dropdown-menu {
  background-color: #E9EEF3;
  font-size: 0.95rem;
}

/* ==== JOURNAL HEADER ==== */
.journal_index {
  background: url('../images/header_bluegray.jpg') top right no-repeat;
  min-height: 140px;
  padding: 20px 0;
  box-shadow: inset 0 -4px 5px -3px rgba(80, 80, 80, 0.15);
  border-bottom: 2px solid #E1E3E7;
}
.journal_index h1 {
  font-size: 1.4rem;
  font-style: italic;
  color: #2E4A7D;
}

/* ==== PANELS & BLOCKS ==== */
.panel-default,
.pkp_block,
.list-group-item {
  border-color: #E1E3E7;
}
.panel-default>.panel-heading,
.pkp_block .title {
  color: #FFFFFF;
  background: linear-gradient(to bottom, #4F7CA4 0%, #2E4A7D 100%);
  border-bottom: 1px solid #6CA0DC;
  font-size: 1rem;
  padding: 10px;
}

/* ==== ABOUT JOURNAL ==== */
.about_journal {
  padding: 20px;
  font-size: 1rem;
  color: #2C2C2C;
  background: #E9EEF3;
  border: 1px solid #DCE2E8;
}
.about_journal h1 {
  color: #2E4A7D;
  font-size: 1.4rem;
}

/* ==== USER NAVIGATION ==== */
.user_navigation {
  background: linear-gradient(to right, #2E4A7D 0%, #4F7CA4 100%);
  padding: 4px 0;
}
.user_navigation a { color: #FFFFFF !important; font-size: 0.95rem; }
.user_navigation .dropdown-menu li a { color: #3A3A3A !important; }

/* ==== ARTICLE DETAILS ==== */
.article-details header small {
  color: #4F7CA4;
  font-size: 0.95rem;
}
.article-details .author-bios .biography h3 {
  color: #2E4A7D;
  font-size: 1.1rem;
}
.article-details .panel-heading { font-weight: 600; }

/* ==== BUTTONS ==== */
a { color: #4F7CA4; }
a:hover { color: #2E4A7D; }

.btn-primary {
  background-color: #2E4A7D;
  color: #FFFFFF;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
}
.btn-primary:hover { background-color: #4F7CA4; }

/* ==== FOOTER ==== */
footer[role="contentinfo"] {
  background-color: #1E2836;
  color: #D9DEE5;
  padding: 40px 0;
  font-size: 0.95rem;
}
footer a { color: #6CA0DC; }
footer a:hover { color: #FFFFFF; }
footer .fa { color: #A6B2C2; font-size: 1.1em; margin-right: 8px; }

/* ==== MISC ==== */
.media .media-heading {
  font-size: 1.1rem;
  border-bottom: 1px solid #E1E3E7;
}
/* === GALLEY LINKS (PDF / HTML Buttons) === */
a.galley-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #FFFFFF; /* white text */
  background: #2F4C7A; /* primary blue background */
  border: 1px solid #2F4C7A;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

a.galley-link:hover {
  background: #4F7CA4; /* lighter blue hover */
  border-color: #4F7CA4;
  color: #FFFFFF;
  text-decoration: none;
}

/* Optional PDF variant (warmer accent) */
a.galley-link.pdf {
  background: #a13223; /* terracotta */
  border-color: #a13223;
}

a.galley-link.pdf:hover {
  background: #9C4E31; /* darker terracotta on hover */
  border-color: #9C4E31;
}
footer.footer img[alt="site_logo"] {
  display: none !important;
}

/* === SIDEBAR (Right Column) === */
#sidebar, .pkp_block {
  background: #f7f8fa; /* Neutral */
  border: none;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 10px 15px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* Sidebar block title */
.pkp_block .title, 
.panel-default > .panel-heading {
  background: #2F4C7A; /* Primary Blue */
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
  padding: 8px 12px;
  border-radius: 5px;
  margin-bottom: 10px;
  border: none;
}

/* Sidebar links */
.pkp_block ul li a {
  color: #388388; /* Charcoal tone for contrast */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.pkp_block ul li a:hover {
  color: #a13223; /* Terracotta accent on hover */
  text-decoration: underline;
}

/* Sidebar list structure */
.pkp_block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pkp_block ul li {
  padding: 6px 0;
  border-bottom: none;
  font-size: 0.95rem;
}

/* Adjust inner spacing for cleaner layout */
.pkp_block .content {
  padding: 0 2px;
}

/* Make sidebar font color readable and balanced */
#sidebar {
  color: #2F4C7A;
}

/* === Custom Blocks (same look as Sidebar Blocks) === */
.block_custom {
  background: #f7f8fa; /* Neutral background */
  border: 1px solid #D6D6D6;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 10px 15px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* Custom block title (h2) */
.block_custom .title {
  background: #2F4C7A; /* Primary Blue */
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 5px;
  margin-bottom: 10px;
  border: none;
}

/* Custom block content (like link lists) */
.block_custom .content {
  padding: 0 5px;
}

/* Custom block links (Seksionet items) */
.block_custom .content a {
  display: block;
  color: #388388;        /* Charcoal blue-gray */
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;      /* very tight line spacing */
  padding: 0;            /* no extra padding at all */
  margin: 0;             /* ensures no browser default margin */
  text-decoration: none;
  transition: color 0.25s ease;
}

.block_custom .content a:hover {
  color: #a13223;        /* Terracotta accent hover */
  text-decoration: underline;
}

/* Remove unwanted lines between items */
.block_custom .content ul,
.block_custom .content li {
  list-style: none;
  border: none;
  padding: 10px 0;
  margin: 0;
}

/* Typography consistency */
.block_custom .content {
  color: #2F4C7A;
  font-size: 0.96rem;
  line-height: 1.5;
}

.page_catalog_category .issue-grid {
  margin-top: 1.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}

.issue-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.issue-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.issue-cover {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f6f6f6;
}

.issue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.issue-meta {
  padding: 15px;
}

.issue-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5em;
}

.issue-details {
  font-size: 0.9rem;
  color: #666;
}

.no_issues {
  color: #666;
  margin-top: 1.5em;
}

/* ==========================================
   Breadcrumb Override — Conference Theme
   ========================================== */

.cmp_breadcrumbs,
.cmp_breadcrumbs_catalog {
  margin: 1.5em 0 2.5em !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  color: #555 !important;
}

.cmp_breadcrumbs ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
}

.cmp_breadcrumbs li {
  display: flex !important;
  align-items: center;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.cmp_breadcrumbs .separator {
  margin: 0 0.4em !important;
  color: #aaa !important;
  font-weight: normal !important;
}

.cmp_breadcrumbs a {
  color: #555 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.cmp_breadcrumbs a:hover {
  color: #b73636 !important; /* or #032b59 if you prefer blue */
  text-decoration: underline !important;
}

.cmp_breadcrumbs .current {
  color: #000 !important;
  font-weight: 600 !important;
}

.cmp_breadcrumbs_catalog {
  border: none !important;
  background: transparent !important;
}

/* Category About Section */
.category_about {
  margin: 1.5rem 0 2.5rem 0;
  padding: 1.5rem 2rem;
  background-color: #f9fafb;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.category_about .description {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

.category_about.has_description {
  display: block;
}

/* Optional: Heading alignment consistency */
.page_catalog_category h1 {
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: left;
}

.page_catalog_category h2.title {
  font-weight: 600;
  margin-top: 3rem;
  border-top: 1px solid #e5e5e5;
  padding-top: 1.5rem;
  text-align: left;
}

/* Sidebar (blue variant override for header theme) */
#sidebar, .pkp_block {
  background: #FFFFFF;
  border: 1px solid #D6D9D3;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pkp_block .title,
.panel-default > .panel-heading {
  background: linear-gradient(to bottom, #2F4C7A 0%, #223A70 100%);
  color: #FFFFFF;
  border-bottom: 2px solid #a13223;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px 6px 0 0;
}

.block_custom {
  background: #FFFFFF;
  border: 1px solid #D6D9D3;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pkp_structure_content.container.main_content {
  margin-top: 30px;
}

.page_index_journal .homepage-image {
  display: none !important;
}

.issue-intro {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 30px 0 40px;
  gap: 30px;
}

.issue-cover {
  max-width: 240px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.issue-info {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
}

.issue-title-block {
  max-width: 600px;
}

.issue-title {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #2F4C7A;
  line-height: 1.3;
  margin: 0 0 10px 0;
  word-break: break-word; /* allows wrapping */
}

.issue-meta {
  font-size: 1rem;
  color: #444;
  margin: 0;
}