/* ===========================================================
   IJAR — Publication Ethics page styles
   Matches mockup 09.IJAR - Publication-Ethics
   =========================================================== */

.pe-sec {
  padding: 26px 0
}

.pe-head {
  text-align: left;
  margin-bottom: 24px
}

.pe-head h2 {
  font-size: 27px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  display: inline-block
}

.pe-head h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 10px 0 0
}

.pe-head p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: none;
  margin: 16px 0 0
}

/* Our Commitment cards */
.pe-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px
}

.pe-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 26, 77, .05);
  transition: .25s
}

.pe-card:hover {
  box-shadow: 0 12px 26px rgba(0, 26, 77, .12);
  transform: translateY(-4px)
}

.pe-card .ic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin: 0 auto 13px
}

.pe-card h3 {
  font-size: 16.5px;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 7px
}

.pe-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0
}

/* Responsibilities — tabbed */
.pe-resp {
  display: block
}

.pe-resp-body {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 22px
}

/* let grid children shrink instead of forcing horizontal overflow */
.pe-resp-body>.pe-panels,
.pe-resp-body>.pe-resp-img {
  min-width: 0
}

.pe-resp-img img {
  max-width: 100%
}

/* full-width tab bar; active navy block fills full height (flush, no gap) */
.pe-tabs {
  display: flex;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  overflow: hidden
}

.pe-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 8px;
  font-family: var(--ff);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: .2s
}

.pe-tab:not(.active)+.pe-tab:not(.active) {
  border-left: 1px solid var(--border)
}

.pe-tab:hover {
  color: var(--royal)
}

.pe-tab.active {
  background: var(--navy);
  color: #fff;
  border-left: 0
}

.pe-tab.active:hover {
  color: #fff
}

.pe-panel {
  display: none
}

.pe-panel.active {
  display: block
}

.pe-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 15px
}

.pe-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55
}

.pe-list li i {
  color: var(--navy);
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0
}

.pe-resp-img img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 12px 30px rgba(0, 26, 77, .16)
}

/* Ethical Guidelines grid — 6 cards in one row */
.pe-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px
}

.pe-gcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 26, 77, .05);
  transition: .25s
}

.pe-gcard:hover {
  box-shadow: 0 12px 26px rgba(0, 26, 77, .12);
  transform: translateY(-4px)
}

.pe-gcard .ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin: 0 auto 13px
}

.pe-gcard h3 {
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 7px
}

.pe-gcard p {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0
}

/* Reporting banner */
.pe-report {
  background: linear-gradient(135deg, #0a3072 0%, #001a4d 100%);
  border-radius: 8px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 26, 77, .16)
}

.pe-report-l {
  display: flex;
  align-items: center;
  gap: 22px
}

.pe-report-l>i {
  font-size: 40px;
  color: #fff;
  flex-shrink: 0
}

.pe-report h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 6px
}

.pe-report p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
  margin: 0;
  line-height: 1.55;
  max-width: 580px
}

.pe-report a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: .2s
}

.pe-report a i {
  color: var(--gold)
}

.pe-report a:hover {
  background: var(--gold);
  color: var(--navy)
}

.pe-report a:hover i {
  color: var(--navy)
}

/* Stats bar */
.pe-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: linear-gradient(135deg, #0a3072 0%, #001a4d 100%);
  border-radius: 8px;
  padding: 28px 18px;
  box-shadow: 0 12px 30px rgba(0, 26, 77, .16);
  margin-top: 20px
}

.pe-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  position: relative
}

.pe-stat:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, .18)
}

.pe-stat i {
  font-size: 32px;
  flex-shrink: 0
}

.pe-stat b {
  font-size: 25px;
  font-weight: 500;
  display: block;
  line-height: 1.1
}

.pe-stat span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72)
}

@media(max-width:960px) {
  .pe-cards {
    grid-template-columns: repeat(2, 1fr)
  }

  .pe-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .pe-resp-body {
    grid-template-columns: 1fr;
    gap: 30px
  }

  /* image stacks BELOW the content; cap its height so it isn't a giant block */
  .pe-resp-img {
    order: 2
  }

  .pe-resp-img img {
    height: auto;
    max-height: 300px
  }

  .pe-report {
    flex-direction: column;
    align-items: flex-start
  }

  .pe-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 26px
  }

  .pe-stat:nth-child(3)::before {
    display: none
  }
}

@media(max-width:560px) {

  .pe-cards,
  .pe-grid,
  .pe-stats {
    grid-template-columns: 1fr
  }

  .pe-tabs {
    flex-wrap: wrap
  }

  .pe-tab {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--border)
  }

  .pe-stat::before {
    display: none
  }
}

@media(max-width:480px) {
  .pe-sec {
    padding: 20px 0
  }

  .pe-head h2 {
    font-size: 23px
  }

  .pe-resp-body {
    gap: 22px
  }

  .pe-list {
    padding-left: 0;
    gap: 13px
  }

  .pe-list li {
    font-size: 13.5px
  }

  .pe-resp-img img {
    max-height: 240px
  }
}

@media(max-width:360px) {
  .pe-head h2 {
    font-size: 21px
  }

  .pe-tab {
    flex: 1 1 100%;
    border-left: 0
  }

  .pe-resp-img img {
    max-height: 200px
  }
}