/* JICC Policy Page - Custom CSS
   Paste this CSS into OJS: Settings > Website > Appearance > Advanced > Journal style sheet.
   The HTML content should be pasted separately into the OJS static page/source editor.
*/

.jicc-policy-page {
  background: #ffffff;
  color: #333333;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  max-width: 1250px;
  margin: 0 auto;
  padding: 8px 10px 15px 8px;   /* top right bottom left */
}

.jicc-policy-layout {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  margin-top: 0 !important;
}

.jicc-policy-sidebar {
  width: 285px;
  vertical-align: top;
  padding: 0 16px 0 0;   /* reduced right gap */
  border-right: 1px solid #e5e7eb;
}

.jicc-policy-main {
  vertical-align: top;
  padding: 0 0 0 18px;   /* reduced left gap */
}

.jicc-policy-toc {
  position: sticky;
  top: 0;   /* was 20px */
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  background: #ffffff;
}

.jicc-policy-toc h2 {
  color: #004176;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 14px 0;
  font-weight: 700;
}

.jicc-policy-toc ul {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}

.jicc-policy-toc li {
  margin: 0 0 8px 0;
  padding-left: 2px;
}

.jicc-policy-page a,
.jicc-policy-page a:visited,
.jicc-policy-page a:hover,
.jicc-policy-page a:focus {
  color: #004176;
  text-decoration: none;
}

.jicc-policy-page a:hover,
.jicc-policy-page a:focus {
  text-decoration: underline;
}

.jicc-policy-content {
  font-size: 16px;
  color: #333333;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.jicc-policy-content h1,
.jicc-policy-content h2 {
  color: #004176;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  margin: 34px 0 14px 0;
}

.jicc-policy-content h1:first-child,
.jicc-policy-content h2:first-child {
  margin-top: 0;
}

.jicc-policy-content h3 {
  color: #004176;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  margin: 26px 0 10px 0;
}

.jicc-policy-content h4 {
  color: #004176;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  margin: 22px 0 8px 0;
}

.jicc-policy-content p {
  margin: 0 0 15px 0;
}

.jicc-policy-content ul,
.jicc-policy-content ol {
  margin: 0 0 18px 24px;
  padding-left: 18px;
}

.jicc-policy-content li {
  margin-bottom: 7px;
}

.jicc-policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px 0;
  font-size: 16px;
}

.jicc-policy-content th,
.jicc-policy-content td {
  border: 1px solid #cccccc;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.jicc-policy-content thead th {
  background: #f1f5f9;
  font-weight: 700;
}

.jicc-policy-content blockquote {
  background: #f9fafb;
  border-left: 4px solid #1d4ed8;
  margin: 20px 0;
  padding: 15px 18px;
}

.jicc-policy-content hr {
  border: 0;
  border-top: 0px solid #e5e7eb;
  margin: 0px 0;
}

.jicc-back-to-toc {
  font-size: 14px;
  margin: 16px 0 22px 0;
}

.jicc-back-to-toc a,
.jicc-back-to-toc a:visited,
.jicc-back-to-toc a:hover,
.jicc-back-to-toc a:focus {
  color: #004176;
  font-weight: 600;
}

@media (max-width: 900px) {
  .jicc-policy-page {
    padding: 20px 12px;
  }

  .jicc-policy-layout,
  .jicc-policy-layout tbody,
  .jicc-policy-layout tr,
  .jicc-policy-sidebar,
  .jicc-policy-main {
    display: block;
    width: 100%;
  }

  .jicc-policy-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0 22px 0;
    margin-bottom: 26px;
  }

  .jicc-policy-main {
    padding: 0;
  }

  .jicc-policy-toc {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
/* =====================================================
   REMOVE OJS DEFAULT TABLE BORDER FROM POLICY LAYOUT
   This removes the unwanted top horizontal line.
   It does not affect normal content tables.
   ===================================================== */

.jicc-policy-page table.jicc-policy-layout,
.jicc-policy-page table.jicc-policy-layout > tbody,
.jicc-policy-page table.jicc-policy-layout > tbody > tr,
.jicc-policy-page table.jicc-policy-layout > tbody > tr > td {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  background: transparent !important;
}

/* Keep only the vertical divider between sidebar and content */
.jicc-policy-page table.jicc-policy-layout > tbody > tr > td.jicc-policy-sidebar {
  border-right: 1px solid #e5e7eb !important;
}

/* Keep main content clean */
.jicc-policy-page table.jicc-policy-layout > tbody > tr > td.jicc-policy-main {
  border: 0 !important;
}

/* Mobile layout */
@media (max-width: 900px) {
  .jicc-policy-page table.jicc-policy-layout > tbody > tr > td.jicc-policy-sidebar {
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
  }
}


/* =====================================================
   JICC About / Policy Page Custom CSS
   Paste into OJS Journal Style Sheet
   ===================================================== */

.jicc-about-page {
  background: #ffffff;
  color: #333333;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.jicc-top-banner {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 0;
  box-sizing: border-box;
}

.jicc-top-banner img {
  width: 649px;
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.jicc-content-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.jicc-about-page p {
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  margin: 0 0 16px 0;
}

.jicc-about-page .jicc-justify {
  text-align: justify;
}

.jicc-about-page h2 {
  color: #004176;
  font-size: 24px;
  line-height: 1.3;
  margin: 24px 0 12px 0;
  font-weight: 700;
}

.jicc-about-page h3 {
  color: #004176;
  font-size: 19px;
  line-height: 1.3;
  margin: 20px 0 10px 0;
  font-weight: 700;
}

.jicc-about-page a,
.jicc-about-page a:visited {
  color: #004176;
  text-decoration: none;
}

.jicc-about-page a:hover,
.jicc-about-page a:focus {
  color: #004176;
  text-decoration: underline;
}

.jicc-about-page ul {
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  padding-left: 20px;
  margin: 0 0 18px 0;
}

.jicc-about-page li {
  margin-bottom: 8px;
}

.jicc-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 22px 0;
}

.jicc-about-page table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
}

.jicc-about-page thead {
  background-color: #f1f5f9;
}

.jicc-about-page th,
.jicc-about-page td {
  padding: 10px;
  border: 1px solid #e5e7eb;
}

.jicc-about-page tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.jicc-editorial-policies {
  margin-top: 10px;
  background: #ffffff;
  padding: 15px;
  border-radius: 1px;
  box-sizing: border-box;
}

.jicc-editorial-policies h2 {
  color: #004176;
  font-weight: 700;
}

.jicc-editorial-policies ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.jicc-editorial-policies li {
  margin-bottom: 7px;
}

.jicc-editorial-policies a,
.jicc-editorial-policies a:visited {
  color: #004176;
  text-decoration: none;
}

.jicc-editorial-policies a:hover,
.jicc-editorial-policies a:focus {
  color: #004176;
  text-decoration: underline;
}

/* Mobile and tablet adjustment */
@media (max-width: 768px) {
  .jicc-about-page {
    padding: 12px;
  }

  .jicc-top-banner {
    padding: 10px;
  }

  .jicc-content-box {
    padding: 18px;
  }

  .jicc-about-page h2 {
    font-size: 21px;
  }

  .jicc-about-page h3 {
    font-size: 17px;
  }

  .jicc-about-page table {
    min-width: 700px;
  }
}

.jicc-apc-button-wrap {
  margin: 18px 0 20px 0;
}

.jicc-about-page .jicc-apc-button,
.jicc-about-page .jicc-apc-button:visited {
  display: inline-block;
  background: #f8b739;
  color: #222222;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 120%;
  margin: 0;
  text-decoration: none;
  text-transform: none;
  padding: 10px 25px;
  border-radius: 6px;
}

.jicc-about-page .jicc-apc-button:hover,
.jicc-about-page .jicc-apc-button:focus {
  color: #222222;
  text-decoration: none;
  background: #e9a928;
}
