/**
 * Stylesheet for JCAIH Theme - HighTech & Innovation Journal Layout
 * Color Palette: Deep Teal (#136b64), Accent Gold (#f59e0b), Dark Slate (#1e293b)
 */

/* ==========================================================================
   1. GLOBAL & TYPOGRAPHY
   ========================================================================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: #136b64;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover,
a:focus {
  color: #0e524d;
  text-decoration: underline;
}

/* ==========================================================================
   2. HEADER & BRANDING
   ========================================================================== */
#headerNavigationContainer {
  background: #ffffff;
  border-radius: 0;
  border: none;
  margin-bottom: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.jcaih-top-bar {
  background: #ffffff;
  padding: 16px 0 12px;
  border-bottom: 1px solid #f1f5f9;
}

.jcaih-brand-wrapper {
  display: flex;
  align-items: center;
}

.jcaih-brand-logo {
  width: 68px;
  height: 68px;
  margin-right: 16px;
  flex-shrink: 0;
}

.jcaih-brand-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  color: #136b64;
  letter-spacing: -0.3px;
}

.jcaih-brand-title a {
  color: #136b64;
  text-decoration: none;
}

.jcaih-brand-title a:hover {
  color: #0b4f49;
  text-decoration: none;
}

.jcaih-brand-subtitle {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.jcaih-brand-issn {
  display: inline-block;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid #cbd5e1;
  color: #0f766e;
  font-weight: 600;
}

/* Top user bar & search */
.jcaih-header-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.jcaih-user-menu {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
  display: flex;
  gap: 12px;
}

.jcaih-user-menu li a {
  font-size: 12.5px;
  font-weight: 600;
  color: #136b64;
  padding: 3px 8px;
  border-radius: 4px;
}

.jcaih-user-menu li a:hover {
  background: #e6f4f2;
  text-decoration: none;
}

.jcaih-search-form {
  position: relative;
  width: 240px;
}

.jcaih-search-input {
  width: 100%;
  height: 34px;
  padding: 6px 36px 6px 14px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  outline: none;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.jcaih-search-input:focus {
  border-color: #136b64;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(19, 107, 100, 0.15);
}

.jcaih-search-btn {
  position: absolute;
  right: 4px;
  top: 3px;
  width: 28px;
  height: 28px;
  border: none;
  background: #136b64;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.jcaih-search-btn:hover {
  background: #0e524d;
}

/* ==========================================================================
   3. MAIN NAVIGATION BAR
   ========================================================================== */
.jcaih-navbar {
  background-color: #136b64 !important;
  border: none !important;
  border-radius: 0 !important;
  min-height: 44px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.jcaih-navbar .navbar-nav > li > a {
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 13px 15px;
}

.jcaih-navbar .navbar-nav > li > a:hover,
.jcaih-navbar .navbar-nav > li > a:focus,
.jcaih-navbar .navbar-nav > .active > a,
.jcaih-navbar .navbar-nav > .active > a:hover {
  background-color: #0d544e !important;
  color: #ffffff !important;
}

.jcaih-navbar .dropdown-menu {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
}

.jcaih-navbar .dropdown-menu > li > a {
  color: #334155 !important;
  font-size: 13px;
  padding: 8px 16px;
  font-weight: 500;
}

.jcaih-navbar .dropdown-menu > li > a:hover {
  background-color: #f0faf9 !important;
  color: #136b64 !important;
}

.jcaih-nav-issn-bar {
  float: right;
  color: #ccfbf1;
  font-size: 12px;
  font-weight: 600;
  line-height: 44px;
  padding-right: 15px;
}

/* ==========================================================================
   4. LAYOUT & SECTION HEADERS
   ========================================================================== */
.pkp_structure_content.container {
  width: 100%;
  max-width: 1240px;
  padding-left: 15px;
  padding-right: 15px;
}

.pkp_structure_content > .row {
  display: flex;
  flex-wrap: wrap;
}

.pkp_structure_main {
  min-width: 0;
  box-sizing: border-box;
}

.pkp_structure_sidebar {
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .pkp_structure_content > .row {
    display: block;
  }
}

.jcaih-section-banner {
  background: #136b64;
  color: #ffffff;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px 4px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.jcaih-section-banner a {
  color: #ccfbf1;
  font-size: 12px;
  text-transform: none;
  font-weight: 500;
}

.jcaih-section-banner a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.jcaih-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 22px;
  margin-bottom: 26px;
}

/* ==========================================================================
   5. ABOUT THE JOURNAL BOX
   ========================================================================== */
.jcaih-about-cover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px;
  margin-top: 0 !important;
}

.page_index_journal .journal-description,
.pkp_page_index .journal-description,
.jcaih-about-text {
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  text-align: justify;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.jcaih-about-text > p:first-child,
.journal-description > p:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.jcaih-about-text p {
  margin-bottom: 12px;
}

.jcaih-about-text > p:empty,
.journal-description > p:empty {
  display: none !important;
}

.jcaih-about-table-layout {
  overflow-x: auto;
}

.jcaih-about-table-layout table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  background: transparent !important;
}

.jcaih-about-table-layout table td,
.jcaih-about-table-layout table th {
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  color: #334155 !important;
}

.jcaih-about-table-layout table img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 4px;
}

.jcaih-quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 15px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.jcaih-fact-item {
  font-size: 12px;
}

.jcaih-fact-label {
  color: #64748b;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
}

.jcaih-fact-val {
  color: #136b64;
  font-weight: 700;
}

/* ==========================================================================
   6. JOURNAL AREAS (BADGES)
   ========================================================================== */
.jcaih-areas-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #136b64;
  display: inline-block;
}

.jcaih-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.jcaih-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid #136b64;
  border-radius: 20px;
  color: #136b64;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.jcaih-badge:hover {
  background: #136b64;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(19, 107, 100, 0.25);
}

/* ==========================================================================
   7. EDITORIAL BOARD HIGHLIGHTS
   ========================================================================== */
.jcaih-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

@media (max-width: 991px) {
  .jcaih-editor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .jcaih-editor-grid {
    grid-template-columns: 1fr;
  }
}

.jcaih-editor-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.jcaih-editor-card:hover {
  border-color: #136b64;
  box-shadow: 0 4px 10px rgba(19, 107, 100, 0.08);
  transform: translateY(-2px);
}

.jcaih-editor-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #136b64;
  margin-right: 12px;
  flex-shrink: 0;
}

.jcaih-editor-info {
  overflow: hidden;
}

.jcaih-editor-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jcaih-editor-role {
  font-size: 11px;
  font-weight: 600;
  color: #136b64;
  text-transform: uppercase;
  margin: 0 0 2px;
}

.jcaih-editor-affil {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.25;
}

/* ==========================================================================
   7. EDITORIAL BOARD CARDS (HOMEPAGE 2-COLUMN GRID)
   ========================================================================== */
.editor-cards-container,
.jcaih-editorial-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .editor-cards-container,
  .jcaih-editorial-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.editor-card,
.jcaih-editor-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  min-height: 114px;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.editor-card:hover,
.jcaih-editor-item-card:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  transform: translateY(-2px);
}

.editor-card-img,
.jcaih-editor-initials-avatar {
  width: 75px !important;
  height: 90px !important;
  min-width: 75px;
  max-width: 75px;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  flex-shrink: 0;
  display: block;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.editor-card-img-placeholder,
.jcaih-editor-initials-avatar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #006D6D, #004D40) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 20px;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.5px;
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.editor-card-img-placeholder span,
.jcaih-editor-initials-avatar span {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff !important;
}

.editor-card-content,
.jcaih-editor-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
  overflow: hidden;
}

.editor-card-title,
.jcaih-editor-item-category {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

.editor-card-name,
.jcaih-editor-item-name {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 2px 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-decoration: none;
}

.editor-card-name.color-primary,
.editor-card-name,
.color-primary,
.jcaih-editor-item-name a {
  color: #0284c7 !important;
  text-decoration: none;
}

.editor-card-name:hover,
.editor-card-name:focus,
.jcaih-editor-item-name a:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

.editor-card-affiliation,
.jcaih-editor-item-affil {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-card-location,
.jcaih-editor-item-country {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-card-role,
.jcaih-editor-item-badge {
  margin-top: auto;
  font-size: 10.5px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.jcaih-editorial-team-content {
  background: #ffffff;
}

.jcaih-editorial-team-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: #006D6D;
  margin: 16px 0 8px 0;
  padding-bottom: 5px;
  border-bottom: 2px solid #006D6D;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jcaih-editorial-team-content h3:first-child {
  margin-top: 0;
}

.jcaih-editorial-team-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 12px;
}

.jcaih-editorial-team-content td {
  padding: 8px 10px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: top !important;
}

.jcaih-editorial-team-content td strong {
  color: #1e293b;
  font-size: 13.5px;
  display: inline-block;
  margin-bottom: 2px;
}

.jcaih-editorial-team-content a {
  color: #006D6D;
  text-decoration: none;
  font-weight: 500;
}

.jcaih-editorial-team-content a:hover {
  text-decoration: underline;
  color: #004d4d;
}

/* ==========================================================================
   8. MOST READ ARTICLES (4-CARD GRID)
   ========================================================================== */
.jcaih-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

@media (max-width: 991px) {
  .jcaih-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .jcaih-featured-grid {
    grid-template-columns: 1fr;
  }
}

.jcaih-featured-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.jcaih-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #136b64;
}

.jcaih-featured-thumb {
  width: 100%;
  height: 125px;
  object-fit: cover;
  display: block;
}

.jcaih-featured-body {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.jcaih-featured-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jcaih-featured-title a {
  color: #1e293b;
  text-decoration: none;
}

.jcaih-featured-title a:hover {
  color: #136b64;
}

.jcaih-featured-authors {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 10px;
}

.jcaih-featured-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #0f766e;
  font-weight: 600;
}

/* ==========================================================================
   9. CURRENT ISSUE & ARTICLES LIST
   ========================================================================== */
.jcaih-issue-info-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.jcaih-issue-cover {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.jcaih-issue-details h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.jcaih-issue-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.jcaih-article-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.jcaih-article-item:hover {
  border-color: #136b64;
  box-shadow: 0 3px 10px rgba(19, 107, 100, 0.08);
}

.jcaih-article-title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
}

.jcaih-article-title a {
  color: #1e293b;
  text-decoration: none;
}

.jcaih-article-title a:hover {
  color: #136b64;
  text-decoration: underline;
}

.jcaih-article-authors {
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
  font-style: italic;
}

.jcaih-article-meta {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.jcaih-article-meta .doi {
  color: #136b64;
  font-weight: 500;
  margin-left: 10px;
}

.jcaih-article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.jcaih-btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #136b64;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 3px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.jcaih-btn-pdf:hover {
  background: #0e524d;
  color: #ffffff !important;
}

.jcaih-article-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #64748b;
}

.jcaih-metric-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   10. SIDEBAR STYLING - UNIFIED CARDS & CONSISTENT SIZING
   ========================================================================== */
.pkp_structure_sidebar {
  padding-left: 15px;
  padding-right: 15px;
}

.jcaih-sidebar-cta {
  display: block;
  background: #136b64;
  color: #ffffff !important;
  text-align: center;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(19, 107, 100, 0.25);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.jcaih-sidebar-cta:hover {
  background: #0e524d;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(19, 107, 100, 0.35);
}

/* Base block styling: every sidebar block is a unified card matching the purple theme */
.pkp_structure_sidebar .pkp_block {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.pkp_structure_sidebar .pkp_block .content {
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure inner wrappers inside custom blocks fill 100% without redundant nested borders/shadows */
.pkp_structure_sidebar .pkp_block .content > div,
.pkp_structure_sidebar .pkp_block .content > table,
.pkp_structure_sidebar #customblock-menu .content > div,
.pkp_structure_sidebar #customblock-issn .content > div,
.pkp_structure_sidebar #customblock-sdgs .content > div,
.pkp_structure_sidebar #customblock-logo-bright .content > div {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* For div-based blocks (ISSN, Quick Menu, SDGs): uniform inner padding */
.pkp_structure_sidebar #customblock-issn .content,
.pkp_structure_sidebar #customblock-menu .content,
.pkp_structure_sidebar #customblock-sdgs .content,
.pkp_structure_sidebar #customblock-logo-bright .content {
  padding: 14px 16px !important;
}

/* Section titles inside sidebar cards */
.pkp_structure_sidebar .pkp_block h3 {
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #333333 !important;
  padding: 0 0 8px 0 !important;
  margin: 0 0 12px 0 !important;
  border-bottom: 2px solid #006D6D !important;
  display: block !important;
}

/* Quick Menu list styling */
.pkp_structure_sidebar .ijrm-menu,
.pkp_structure_sidebar #customblock-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  width: 100% !important;
}

.pkp_structure_sidebar .ijrm-menu li,
.pkp_structure_sidebar #customblock-menu ul li {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 8px 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  transition: background-color 0.15s ease;
}

.pkp_structure_sidebar .ijrm-menu li:last-child,
.pkp_structure_sidebar #customblock-menu ul li:last-child {
  border-bottom: none !important;
}

.pkp_structure_sidebar .ijrm-menu li a,
.pkp_structure_sidebar #customblock-menu ul li a {
  color: #1e293b !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

.pkp_structure_sidebar .ijrm-menu li a:hover,
.pkp_structure_sidebar #customblock-menu ul li a:hover {
  color: #006D6D !important;
  text-decoration: none !important;
}

.pkp_structure_sidebar .ijrm-menu li img,
.pkp_structure_sidebar .ijrm-menu li a img,
.pkp_structure_sidebar #customblock-menu ul li img,
.pkp_structure_sidebar #customblock-menu ul li a img {
  margin-right: 8px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Prevent accidental line breaks or paragraph wrappers from pushing text down */
.pkp_structure_sidebar .ijrm-menu li br,
.pkp_structure_sidebar #customblock-menu ul li br {
  display: none !important;
}

.pkp_structure_sidebar .ijrm-menu li p,
.pkp_structure_sidebar #customblock-menu ul li p {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Table styling for Journal Metrics & Tools */
.pkp_structure_sidebar .pkp_block table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.pkp_structure_sidebar .pkp_block table thead th {
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #333333 !important;
  padding: 12px 16px !important;
  border-bottom: 2px solid #006D6D !important;
  background: #ffffff !important;
}

.pkp_structure_sidebar .pkp_block table tbody td {
  font-size: 12.5px !important;
  padding: 8px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

.pkp_structure_sidebar .pkp_block table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Tools section: scale Mendeley, Turnitin, Grammarly logos neatly */
.pkp_structure_sidebar #customblock-tools table tbody td {
  text-align: center !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.pkp_structure_sidebar #customblock-tools table tbody tr:last-child td {
  border-bottom: none !important;
}

.pkp_structure_sidebar #customblock-tools img {
  max-width: 130px !important;
  width: auto !important;
  height: auto !important;
  max-height: 48px !important;
  margin: 0 auto 6px auto !important;
  display: block !important;
  object-fit: contain !important;
}

.pkp_structure_sidebar #customblock-tools td div,
.pkp_structure_sidebar #customblock-tools .tool-label {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
}

/* SDGs section: neat grid & image sizing matching purple theme */
.pkp_structure_sidebar #customblock-sdgs .content,
.pkp_structure_sidebar #customblock-logo-bright .content {
  text-align: center !important;
}

.pkp_structure_sidebar #customblock-sdgs h3,
.pkp_structure_sidebar #customblock-logo-bright h3 {
  text-align: center !important;
  margin: 0 auto 14px auto !important;
  display: inline-block !important;
  padding-bottom: 6px !important;
  border-bottom: 2px solid #006D6D !important;
}

.pkp_structure_sidebar #customblock-sdgs img,
.pkp_structure_sidebar #customblock-logo-bright img {
  max-width: 85px !important;
  width: 85px !important;
  height: auto !important;
  margin: 5px !important;
  display: inline-block !important;
  border-radius: 2px !important;
}

/* Specific overrides for non-card submission button block */
#customblock-submission {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
}

#customblock-submission .content {
  padding: 0 !important;
}

#customblock-submission a.jcaih-sidebar-cta {
  margin-bottom: 0 !important;
}

#customblock-ranking img {
  max-width: 100% !important;
  height: auto !important;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.jcaih-footer {
  background: #1e293b;
  color: #94a3b8;
  margin-top: 50px;
  padding: 35px 0 25px;
  border-top: 4px solid #136b64;
}

.page-footer-content {
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.6;
}

.page-footer-content a {
  color: #2dd4bf;
}

.page-footer-content a:hover {
  color: #5eead4;
  text-decoration: underline;
}

.page-footer-content img {
  max-width: 100%;
  height: auto;
}

.jcaih-footer h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jcaih-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jcaih-footer ul li {
  margin-bottom: 8px;
}

.jcaih-footer ul li a {
  color: #cbd5e1;
  font-size: 13px;
}

.jcaih-footer ul li a:hover {
  color: #2dd4bf;
  text-decoration: none;
}

.jcaih-footer-bottom {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #334155;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
}

/* ==========================================================================
   12. RESPONSIVE FIXES
   ========================================================================== */
@media (max-width: 767px) {
  .jcaih-brand-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .jcaih-brand-logo {
    margin: 0 auto 10px;
  }
  .jcaih-header-tools {
    align-items: center;
    margin-top: 15px;
  }
  .jcaih-search-form {
    width: 100%;
  }
  .jcaih-nav-issn-bar {
    display: none;
  }
}

/* ==========================================================================
   13. ARTICLE SUMMARY & ISSUE TOC OVERRIDES
   ========================================================================== */
.article-summary.media {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.article-summary.media:hover {
  border-color: #136b64;
  box-shadow: 0 4px 12px rgba(19, 107, 100, 0.08);
}

.article-summary .media-heading {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.article-summary .media-heading a {
  color: #1e293b;
  text-decoration: none;
}

.article-summary .media-heading a:hover {
  color: #136b64;
  text-decoration: underline;
}

.article-summary .authors {
  font-size: 13px;
  color: #475569;
  font-style: italic;
  margin-bottom: 6px;
}

.article-summary .pages {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.article-summary .btn-group .btn {
  background: #136b64;
  color: #ffffff !important;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 3px !important;
}

.article-summary .btn-group .btn:hover {
  background: #0e524d;
}

/* ==========================================================================
   16. EDITORIAL TEAM PAGE (IMAGE 2 LAYOUT - MATCHING EXACT DESIGN)
   ========================================================================== */
.jcaih-editorial-team-container {
  font-family: inherit;
  color: #1e293b;
  margin-top: 15px;
}

.jcaih-team-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 25px 0 20px 0;
}

.jcaih-team-section {
  margin-bottom: 25px;
}

.jcaih-team-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px 0;
  padding-bottom: 4px;
  letter-spacing: -0.2px;
}

.jcaih-team-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jcaih-team-member-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}

.jcaih-team-member-photo {
  flex-shrink: 0;
  width: 72px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.jcaih-team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jcaih-team-member-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #006D6D, #004D40);
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.jcaih-team-member-details {
  flex-grow: 1;
  min-width: 0;
}

.jcaih-team-member-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0284c7;
  margin: 0 0 2px 0;
  line-height: 1.35;
}

.jcaih-team-member-flag {
  font-size: 15px;
  margin-bottom: 3px;
  line-height: 1.2;
}

.jcaih-team-member-role {
  font-size: 12.5px;
  color: #475569;
  font-style: italic;
  margin-bottom: 2px;
  line-height: 1.35;
}

.jcaih-team-member-affil {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 5px;
}

.jcaih-team-member-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.jcaih-link-orcid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #374151 !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 11.5px;
}

.jcaih-link-orcid:hover {
  color: #a6ce39 !important;
  text-decoration: underline !important;
}

.jcaih-link-scopus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ea580c !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 11.5px;
}

.jcaih-link-scopus:hover {
  color: #c2410c !important;
  text-decoration: underline !important;
}

.jcaih-scopus-brand {
  color: #ea580c;
  font-weight: 700;
}

.jcaih-scopus-ext {
  stroke: #ea580c;
  vertical-align: middle;
}

.jcaih-link-sep {
  color: #cbd5e1;
  font-size: 11px;
}

/* ==========================================================================
   17. ARROW BREADCRUMBS (IMAGE 1 SPEC)
   ========================================================================== */
.cmp_breadcrumbs .breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  margin: 10px 0 16px 0 !important;
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 0 !important;
}

.cmp_breadcrumbs .breadcrumb > li {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin-right: -4px !important;
}

.cmp_breadcrumbs .breadcrumb > li + li:before {
  content: "" !important;
  padding: 0 !important;
}

.cmp_breadcrumbs .breadcrumb > li a {
  background: #e2e8f0;
  color: #334155 !important;
  padding: 4px 18px 4px 12px;
  text-decoration: none !important;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-block;
  clip-path: polygon(0% 0%, calc(100% - 8px) 0%, 100% 50%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.15s ease;
}

.cmp_breadcrumbs .breadcrumb > li a:hover {
  background: #cbd5e1;
  color: #0f172a !important;
}

.cmp_breadcrumbs .breadcrumb > li.active {
  background: #1e293b !important;
  color: #ffffff !important;
  padding: 4px 16px 4px 14px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  display: inline-block !important;
  clip-path: polygon(0% 0%, calc(100% - 8px) 0%, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0% 50%) !important;
}



