/* =========================================================
   JPHS – SKY BLUE THEME (PASTE AT THE VERY BOTTOM)
   + FIX HEADER BANNER WIDTH + FOOTER ADDRESS NOT ITALIC
   + INDEXING BADGES (GRID + HOVER + SPACING LIKE "FOCUS AND SCOPE" + PER-LOGO ZOOM)
   ========================================================= */

:root{
  /* Core palette (SKY BLUE) */
  --jphs-primary: #0EA5E9;          /* sky blue */
  --jphs-primary-700: #0284C7;      /* sky blue deeper */
  --jphs-accent: #38BDF8;           /* sky accent (lebih cerah) */

  /* Surfaces */
  --jphs-soft: #F0F9FF;             /* sky-50 */
  --jphs-soft-hover: #E0F2FE;       /* sky-100 */
  --jphs-border: #CFEAFB;           /* border sky lembut */

  /* Text */
  --jphs-text: #0F172A;
  --jphs-muted: #64748B;

  /* UI */
  --jphs-radius: 14px;
  --jphs-shadow: 0 14px 34px rgba(2,132,199,.12);
  --jphs-shadow-hover: 0 18px 42px rgba(14,165,233,.18);
}

/* ========== Global polish ========== */
body{ color: var(--jphs-text); }

a{
  color: var(--jphs-primary-700);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover{
  color: #075985; /* sky-800 */
  text-decoration: underline;
}
a:focus-visible{
  outline: 3px solid rgba(14,165,233,.35);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =========================================================
   HEADER FIX: banner/logo proporsional & melebar
   ========================================================= */
.pkp_site_name_wrapper,
.pkp_site_name{
  width: 100% !important;
  float: none !important;
}
.pkp_site_name .is_img{ display: block !important; }

.pkp_site_name .is_img img{
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 190px !important;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(2,132,199,.14));
}

.pkp_head_wrapper{ padding-bottom: 8px; }

/* ========== Footer (SKY gradient) ========== */
.pkp_structure_footer_wrapper{
  background: linear-gradient(90deg, #0369A1, var(--jphs-primary-700), var(--jphs-primary), var(--jphs-accent));
  border-top: 4px solid rgba(255,255,255,.22);
  border-bottom: 0;
  padding: 20px 0;
}
.pkp_structure_footer_wrapper,
.pkp_structure_footer_wrapper *{ color:#fff; }
.pkp_structure_footer_wrapper a{ color: rgba(255,255,255,.92); }
.pkp_structure_footer_wrapper a:hover{ color:#fff; text-decoration: underline; }

.pkp_structure_footer_wrapper em,
.pkp_structure_footer_wrapper i{ font-style: normal !important; }

/* Layout footer */
.pkp_structure_footer{
  display:flex;
  flex-wrap:wrap;
  gap:18px 28px;
  align-items:flex-start;
}
.pkp_footer_content{
  float:none;
  width:auto;
  padding:0;
  flex:1 1 420px;
}
.pkp_brand_footer{
  float:none;
  width:auto;
  padding:0;
  flex:0 0 220px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
@media (max-width:768px){
  .pkp_brand_footer{ justify-content:flex-start; }
}

/* ========== Sidebar blocks: premium card ========== */
.pkp_structure_sidebar .pkp_block,
.pkp_structure_sidebar .block{
  background:#fff;
  border:1px solid var(--jphs-border);
  border-radius: var(--jphs-radius);
  box-shadow: var(--jphs-shadow);
  padding:14px;
  margin-bottom:16px;
}
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar .block .title{
  color:#075985; /* sky-800 */
  font-weight:900;
  letter-spacing:.02em;
  border-left:5px solid var(--jphs-accent);
  padding-left:10px;
  margin:0 0 10px 0;
}

/* ========== MENU TABLE (sidebar) ========== */
.pkp_structure_sidebar table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.pkp_structure_sidebar td{
  height:auto;
  vertical-align:middle;
  text-align:left;
  width:auto;
  border-radius: var(--jphs-radius);
  overflow:hidden;
  border:1px solid var(--jphs-border);
  background:#fff;
  box-shadow: 0 10px 18px rgba(2,132,199,.08);
}

/* Header menu: SKY gradient */
.pkp_structure_sidebar td.menu{
  background: linear-gradient(135deg, var(--jphs-primary) 0%, var(--jphs-primary-700) 55%, var(--jphs-accent) 100%);
  border-color: rgba(255,255,255,.20);
}
.pkp_structure_sidebar td.menu,
.pkp_structure_sidebar td.menu a{
  color:#fff !important;
  font-weight:900;
}

/* Link item: sky soft + hover pop */
.pkp_structure_sidebar td:not(.menu) a{
  display:block;
  padding:12px 14px;
  background: var(--jphs-soft);
  color:#075985;               /* sky-800 */
  text-decoration:none;
  border:1px solid #D6F1FF;
  border-radius:12px;
  margin:8px;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pkp_structure_sidebar td:not(.menu) a:hover{
  background: linear-gradient(135deg, #E0F2FE 0%, #CFFAFE 55%, #F0F9FF 100%); /* sky + cyan */
  border-color:#7DD3FC;        /* sky-300 */
  transform: translateY(-1px);
  box-shadow: var(--jphs-shadow-hover);
}

/* CTA submit manuscript */
.pkp_structure_sidebar td.submit-manuscript{
  background: linear-gradient(135deg, var(--jphs-primary) 0%, var(--jphs-primary-700) 55%, var(--jphs-accent) 100%);
  border-color: rgba(255,255,255,.20);
}
.pkp_structure_sidebar td.submit-manuscript a{
  background: transparent;
  color:#fff !important;
  font-weight:900;
  border:0;
  margin:0;
}
.pkp_structure_sidebar td.submit-manuscript a:hover{
  background: rgba(255,255,255,.14);
  transform:none;
  box-shadow:none;
}

/* ========== Buttons OJS (SKY premium) ========== */
.pkp_button,
.cmp_button,
a.cmp_button,
button.cmp_button,
input[type="submit"].cmp_button{
  background: linear-gradient(135deg, var(--jphs-primary) 0%, var(--jphs-primary-700) 60%, var(--jphs-accent) 100%);
  border: 1px solid rgba(255,255,255,.22);
  color:#fff !important;
  border-radius:14px;
  padding:10px 14px;
  box-shadow: 0 14px 24px rgba(14,165,233,.20);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.pkp_button:hover,
.cmp_button:hover,
a.cmp_button:hover{
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 18px 30px rgba(14,165,233,.26);
}

/* ========== Journal metadata table ========== */
table.journal-table{
  width:100%;
  max-width:950px;
  border-collapse:separate;
  border-spacing:0;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--jphs-border);
  box-shadow: var(--jphs-shadow);
  background:#fff;
}
table.journal-table thead th{
  background: linear-gradient(135deg, var(--jphs-primary) 0%, var(--jphs-primary-700) 60%, var(--jphs-accent) 100%);
  color:#fff;
  padding:14px 16px;
  text-align:left;
  font-weight:900;
}
table.journal-table td{
  width:auto;
  padding:12px 16px;
  vertical-align:top;
  text-align:left;
  border-bottom:1px solid rgba(207,234,251,.95);
}
table.journal-table td:first-child{
  width:220px;
  font-weight:900;
  color:#075985; /* sky-800 */
  white-space:nowrap;
}
table.journal-table tbody tr:nth-child(odd){ background:#F0F9FF; }
table.journal-table tbody tr:nth-child(even){ background:#FFFFFF; }
table.journal-table tbody tr:hover{ background:#E0F2FE; }

@media (max-width:600px){
  table.journal-table td:first-child{
    width:140px;
    white-space:normal;
  }
}

/* Optional: item menu berupa gambar */
.pkp_structure_sidebar td.jphs-media a{
  background:#fff !important;
  padding:14px !important;
  text-align:center;
  border:1px solid #D6F1FF !important;
}
.pkp_structure_sidebar td.jphs-media a:hover{
  background:#E0F2FE !important;
  transform:none !important;
  box-shadow:none !important;
}
.pkp_structure_sidebar td.jphs-media img{
  display:inline-block;
  max-width:100%;
  height:auto;
}

/* =========================================================
   QUICK OVERRIDE: inline hijau -> SKY BLUE gradient
   ========================================================= */
.pkp_structure_sidebar td[style*="background-color: #00ab29"],
.pkp_structure_sidebar td[style*="background-color:#00ab29"],
.pkp_structure_sidebar td[style*="background-color: rgb(0, 171, 41)"],
.pkp_structure_sidebar td[style*="background-color:rgb(0,171,41)"]{
  background: linear-gradient(135deg, var(--jphs-primary) 0%, var(--jphs-primary-700) 55%, var(--jphs-accent) 100%) !important;
  border-color: rgba(255,255,255,.20) !important;
}
.pkp_structure_sidebar td[style*="background-color: #00ab29"] *,
.pkp_structure_sidebar td[style*="background-color:#00ab29"] *{
  color:#fff !important;
}
.pkp_structure_sidebar td[style*="background-color: #00ab29"],
.pkp_structure_sidebar td[style*="background-color:#00ab29"]{
  padding:10px 12px !important;
  border-bottom-color: rgba(255,255,255,.35) !important;
}

/* =========================================================
   INDEXING BADGES (JPHS) — GRID + HOVER + SPACING LIKE "FOCUS AND SCOPE"
   Wrapper: <div class="jphs-indexing"> ... </div>
   Item:    <a class="jphs-indexing__item" href="..."><img ...></a>

   Compatibility: also styles .andara-indexing / .andara-indexing__item
   (useful if the HTML was copied from ANDARA).
   ========================================================= */

/* GRID: desktop 5 columns, tablet 3, mobile 2 */
.jphs-indexing,
.andara-indexing{
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 8px;
}

/* Card: roomy + inner frame */
.jphs-indexing__item,
.andara-indexing__item{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;

  width:100%;
  min-width:0;

  background: var(--jphs-soft);
  border: 1px solid rgba(14,165,233,.32);
  border-radius: 18px;

  height: 92px;
  padding: 14px 16px;

  box-shadow: 0 10px 18px rgba(2,132,199,.08);
  text-decoration:none;

  transition: transform .18s ease,
              box-shadow .18s ease,
              border-color .18s ease,
              background-color .18s ease,
              filter .18s ease;
}

/* Inner frame */
.jphs-indexing__item::before,
.andara-indexing__item::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(14,165,233,.16);
  pointer-events:none;
}

/* Logo: big but still breathable */
.jphs-indexing__item img,
.andara-indexing__item img{
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 52px !important;
  object-fit: contain !important;
  display:block;
  transition: transform .18s ease;
}

/* Hover + focus */
.jphs-indexing__item:hover,
.andara-indexing__item:hover{
  transform: translateY(-2px);
  border-color: var(--jphs-primary);
  box-shadow: 0 14px 28px rgba(14,165,233,.16);
  background: rgba(14,165,233,.06);
  filter: brightness(1.02);
}
.jphs-indexing__item:focus-visible,
.andara-indexing__item:focus-visible{
  outline: 3px solid rgba(14,165,233,.35);
  outline-offset: 2px;
  border-radius: 18px;
}

/* =========================
   PER-LOGO ZOOM (mitigate whitespace in certain PNG/SVG)
   Adjust keywords to match your file names if needed.
   ========================= */
.jphs-indexing__item img[src*="index-copernicus"],
.andara-indexing__item img[src*="index-copernicus"]{ transform: scale(1.16); }

.jphs-indexing__item img[src*="garuda"],
.andara-indexing__item img[src*="garuda"]{ transform: scale(1.08); }

.jphs-indexing__item img[src*="crossre"],
.andara-indexing__item img[src*="crossre"]{ transform: scale(1.10); }

.jphs-indexing__item img[src*="google-scholar"],
.andara-indexing__item img[src*="google-scholar"]{ transform: scale(1.06); }

.jphs-indexing__item img[src*="scilit"],
.andara-indexing__item img[src*="scilit"]{ transform: scale(1.06); }

/* Breakpoints */
@media (max-width: 1024px){
  .jphs-indexing,
  .andara-indexing{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px){
  .jphs-indexing,
  .andara-indexing{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .jphs-indexing__item,
  .andara-indexing__item{
    height: 86px;
    padding: 12px 12px;
    border-radius: 16px;
  }
  .jphs-indexing__item::before,
  .andara-indexing__item::before{
    inset: 8px;
    border-radius: 12px;
  }
  .jphs-indexing__item img,
  .andara-indexing__item img{
    max-height: 48px !important;
  }
}