/* ============================= */
/* FULL WIDTH MAIN CONTENT */
/* ============================= */

.pkp_page_index .pkp_structure_content {
  display: block;
}

.pkp_page_index .pkp_structure_sidebar {
  display: none !important;
}

.pkp_page_index .pkp_structure_main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  float: none !important;
}


/* ============================= */
/* JOURNAL CARD GRID */
/* ============================= */

.page_index_site .journals ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}


/* prevent overlap inside grid */
.page_index_site .journals ul > li {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}


/* ============================= */
/* CARD CONTAINER */
/* ============================= */

.page_index_site .journals ul > li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-height: 180px;
  padding: 14px;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page_index_site .journals ul > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}


/* ============================= */
/* JOURNAL COVER / THUMBNAIL */
/* ============================= */

.page_index_site .journals ul > li .thumb {
  flex-shrink: 0;
  margin: 0;
}

.page_index_site .journals ul > li .thumb img {
  display: block;
  width: 110px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d6dbe1;
  background: #f8f9fb;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page_index_site .journals ul > li:hover .thumb img {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}


/* ============================= */
/* BODY */
/* ============================= */

.page_index_site .journals ul > li .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}


/* ============================= */
/* TITLE */
/* ============================= */

.page_index_site .journals ul > li .body h3 {
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.3;
}

.page_index_site .journals ul > li .body h3 a {
  color: #003366;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page_index_site .journals ul > li .body h3 a:hover {
  text-decoration: underline;
}


/* ============================= */
/* DESCRIPTION */
/* ============================= */

.page_index_site .journals ul > li .description {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  line-height: 1.45;
  min-width: 0;
}

.page_index_site .journals ul > li .description p,
.page_index_site .journals ul > li .description div {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ============================= */
/* LINKS / BUTTONS */
/* ============================= */

.page_index_site .journals ul > li .links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 8px 0 0 !important;
  list-style: none !important;
  margin-top: auto !important;
  align-items: center !important;
}

.page_index_site .journals ul > li .links li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: auto !important;
}

.page_index_site .journals ul > li .links a {
  display: inline-block !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  padding: 4px 8px !important;
  background: #0f4c81 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

.page_index_site .journals ul > li .links a:hover {
  background: #0b3c65 !important;
}
.page_index_site .journals ul > li .links a:hover {
  background: #0b3c65;
}

.page_index_site .journals ul > li .links a:hover {
  background: #0b3c65;
}

/* ============================= */
/* CARDS WITHOUT THUMBNAIL */
/* ============================= */

.page_index_site .journals ul > li:not(.has_thumb) {
  display: block;
  min-height: auto;
}

.page_index_site .journals ul > li:not(.has_thumb) .body {
  display: flex;
  flex-direction: column;
}


/* ============================= */
/* JOURNAL SEARCH BAR */
/* ============================= */

.journal-search-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.journal-search-button {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  background: #0f4c81;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 500;
  line-height: 1.2;
}

.journal-search-input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  background: #ffffff;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.journal-search-input:focus {
  border-color: #0f4c81;
  box-shadow: 0 0 0 2px rgba(15,76,129,0.12);
}

.journal-search-input::placeholder {
  color: #7a8594;
}


/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
  .page_index_site .journals ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page_index_site .journals ul > li {
    gap: 12px;
    padding: 12px;
    min-height: 150px;
  }

  .page_index_site .journals ul > li .thumb img {
    width: 90px;
    height: 125px;
  }

  .page_index_site .journals ul > li .body h3 {
    font-size: 15px;
  }

  .page_index_site .journals ul > li .description {
    font-size: 12px;
  }

  .page_index_site .journals ul > li .links a {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* Remove old sidebar divider line */
.pkp_page_index .pkp_structure_content.has_sidebar {
  background: none !important;
  border: 0 !important;
}

.pkp_page_index .pkp_structure_main {
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

.pkp_page_index .pkp_structure_sidebar,
.pkp_page_index .pkp_structure_sidebar.left {
  border: 0 !important;
  box-shadow: none !important;
}

/* Some OJS themes add a separator via pseudo-elements */
.pkp_page_index .pkp_structure_content::before,
.pkp_page_index .pkp_structure_content::after,
.pkp_page_index .pkp_structure_main::before,
.pkp_page_index .pkp_structure_main::after {
  display: none !important;
  content: none !important;
}
/* ============================= */
/* HEADER BRANDING */
/* ============================= */

.portal-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.portal-logo {
  flex: 0 0 auto;
}

.portal-logo img {
  max-height: 72px;
  width: auto;
}

.portal-branding {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;   /* controls distance from logo */
}

.portal-title {
  font-size: 20px;
  font-weight: 700;
  color: #003366;
  line-height: 1.2;
}

.portal-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #5b6573;
}