/* =========================================================
   ANDARA – BRIGHT GREEN PRO 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 (BRIGHT GREEN, proportional) */
  --andara-primary: #22C55E;          /* green-500 */
  --andara-primary-700: #16A34A;      /* green-600 */
  --andara-accent: #34D399;           /* emerald/mint accent */

  /* Surfaces */
  --andara-soft: #F0FDF4;             /* green-50 */
  --andara-soft-hover: #DCFCE7;       /* green-100 */
  --andara-border: #BBF7D0;           /* green-200 */

  /* Text */
  --andara-text: #0F172A;
  --andara-muted: #64748B;

  /* UI */
  --andara-radius: 14px;
  --andara-shadow: 0 14px 34px rgba(22,163,74,.14);
  --andara-shadow-hover: 0 18px 42px rgba(34,197,94,.18);
}

/* ========== Global polish ========== */
body{ color: var(--andara-text); }

a{
  color: var(--andara-primary-700);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover{
  color: #15803D; /* green-700 */
  text-decoration: underline;
}
a:focus-visible{
  outline: 3px solid rgba(34,197,94,.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(22,163,74,.16));
}

.pkp_head_wrapper{ padding-bottom: 8px; }

/* ========== Footer (green gradient) ========== */
.pkp_structure_footer_wrapper{
  background: linear-gradient(90deg, #15803D, var(--andara-primary-700), var(--andara-primary), var(--andara-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(--andara-border);
  border-radius: var(--andara-radius);
  box-shadow: var(--andara-shadow);
  padding:14px;
  margin-bottom:16px;
}
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar .block .title{
  color:#15803D;
  font-weight:900;
  letter-spacing:.02em;
  border-left:5px solid var(--andara-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(--andara-radius);
  overflow:hidden;
  border:1px solid var(--andara-border);
  background:#fff;
  box-shadow: 0 10px 18px rgba(22,163,74,.10);
}

/* Header menu: green gradient */
.pkp_structure_sidebar td.menu{
  background: linear-gradient(135deg, var(--andara-primary) 0%, var(--andara-primary-700) 55%, var(--andara-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: green soft + hover pop */
.pkp_structure_sidebar td:not(.menu) a{
  display:block;
  padding:12px 14px;
  background: var(--andara-soft);
  color:#14532D;
  text-decoration:none;
  border:1px solid #D6FBE3;
  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, #DCFCE7 0%, #D1FAE5 55%, #F0FDF4 100%);
  border-color:#86EFAC;
  transform: translateY(-1px);
  box-shadow: var(--andara-shadow-hover);
}

/* CTA submit manuscript */
.pkp_structure_sidebar td.submit-manuscript{
  background: linear-gradient(135deg, var(--andara-primary) 0%, var(--andara-primary-700) 55%, var(--andara-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 (green premium) ========== */
.pkp_button,
.cmp_button,
a.cmp_button,
button.cmp_button,
input[type="submit"].cmp_button{
  background: linear-gradient(135deg, var(--andara-primary) 0%, var(--andara-primary-700) 60%, var(--andara-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(34,197,94,.22);
  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(34,197,94,.28);
}

/* ========== 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(--andara-border);
  box-shadow: var(--andara-shadow);
  background:#fff;
}
table.journal-table thead th{
  background: linear-gradient(135deg, var(--andara-primary) 0%, var(--andara-primary-700) 60%, var(--andara-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(187,247,208,.95);
}
table.journal-table td:first-child{
  width:220px;
  font-weight:900;
  color:#166534;
  white-space:nowrap;
}
table.journal-table tbody tr:nth-child(odd){ background:#F0FDF4; }
table.journal-table tbody tr:nth-child(even){ background:#FFFFFF; }
table.journal-table tbody tr:hover{ background:#DCFCE7; }

@media (max-width:600px){
  table.journal-table td:first-child{
    width:140px;
    white-space:normal;
  }
}

/* Optional: item menu berupa gambar */
.pkp_structure_sidebar td.andara-media a{
  background:#fff !important;
  padding:14px !important;
  text-align:center;
  border:1px solid #D6FBE3 !important;
}
.pkp_structure_sidebar td.andara-media a:hover{
  background:#DCFCE7 !important;
  transform:none !important;
  box-shadow:none !important;
}
.pkp_structure_sidebar td.andara-media img{
  display:inline-block;
  max-width:100%;
  height:auto;
}

/* =========================================================
   QUICK OVERRIDE: inline hijau lama (#00ab29) -> hijau theme baru
   ========================================================= */
.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(--andara-primary) 0%, var(--andara-primary-700) 55%, var(--andara-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 (GRID + HOVER + SPACING LIKE "FOCUS AND SCOPE")
   Wrapper: <div class="andara-indexing">
   Item:    <a class="andara-indexing__item"><img ...></a>
   ========================================================= */

/* GRID: desktop 5 kolom, tablet 3, mobile 2 */
.andara-indexing{
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 8px;
}

/* Card: gaya seperti contoh (lebih lega + inner frame) */
.andara-indexing__item{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;

  width:100%;
  min-width:0;

  background: #ECFDF5;
  border: 1px solid rgba(34,197,94,.35);
  border-radius: 18px;

  height: 92px;
  padding: 14px 16px;

  box-shadow: 0 10px 18px rgba(22,163,74,.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 */
.andara-indexing__item::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(34,197,94,.18);
  pointer-events:none;
}

/* Logo: besar tapi tetap “lega” */
.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 */
.andara-indexing__item:hover{
  transform: translateY(-2px);
  border-color: var(--andara-primary);
  box-shadow: 0 14px 28px rgba(34,197,94,.16);
  background: rgba(34,197,94,.06);
  filter: brightness(1.02);
}
.andara-indexing__item:focus-visible{
  outline: 3px solid rgba(34,197,94,.35);
  outline-offset: 2px;
}

/* =========================
   PER-LOGO ZOOM (atasi whitespace bawaan PNG)
   ========================= */
.andara-indexing__item img[src*="index-copernicus"]{ transform: scale(1.16); } /* biasanya paling banyak margin */
.andara-indexing__item img[src*="garuda"]{          transform: scale(1.08); }
.andara-indexing__item img[src*="crossre"]{         transform: scale(1.10); } /* crossre.png */
.andara-indexing__item img[src*="google-scholar"]{  transform: scale(1.06); }
.andara-indexing__item img[src*="scilit"]{          transform: scale(1.06); }

/* breakpoints */
@media (max-width: 1024px){
  .andara-indexing{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .andara-indexing{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .andara-indexing__item{
    height: 86px;
    padding: 12px 12px;
    border-radius: 16px;
  }
  .andara-indexing__item::before{
    inset: 8px;
    border-radius: 12px;
  }
  .andara-indexing__item img{
    max-height: 48px !important;
  }
}