/* ================================
   OJS Sidebar Indexing Logos Style
   Paste in: Appearance > Advanced > Custom CSS
   Works with your existing: .index-item structure
================================== */

/* 1) Target ONLY sidebar blocks so it won't affect site-wide images */
#sidebar .index-item,
.pkp_structure_sidebar .index-item{
  margin: 0 !important;
}

/* 2) Make the parent container behave like a grid
   - OJS custom blocks are inside .pkp_block
   - If your logos are inside one block, this will align them cleanly
*/
#sidebar .pkp_block .pkp_block_content,
.pkp_structure_sidebar .pkp_block .pkp_block_content{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 logos per row */
  gap: 10px;
  align-items: center;
}

/* 3) Each logo tile look */
#sidebar .index-item,
.pkp_structure_sidebar .index-item{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

/* 4) Hover effect (professional) */
#sidebar .index-item:hover,
.pkp_structure_sidebar .index-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* 5) Link becomes centered container */
#sidebar .index-item a,
.pkp_structure_sidebar .index-item a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

/* 6) Force ALL logos to same size (no stretch) */
#sidebar .index-item img,
.pkp_structure_sidebar .index-item img{
  width: 100%;
  height: 38px;          /* âœ… change this: 32/36/40 */
  object-fit: contain;   /* âœ… keeps aspect ratio */
  display: block;
}

/* 7) Remove weird spacing from <p>&nbsp;</p> after your code */
#sidebar .pkp_block_content p,
.pkp_structure_sidebar .pkp_block_content p{
  margin: 0 !important;
  padding: 0 !important;
}

/* 8) Mobile: make it 1 logo per row */
@media (max-width: 480px){
  #sidebar .pkp_block .pkp_block_content,
  .pkp_structure_sidebar .pkp_block .pkp_block_content{
    grid-template-columns: 1fr;
  }

  #sidebar .index-item img,
  .pkp_structure_sidebar .index-item img{
    height: 40px;
  }
}
Additional content
.akasa-indexing-pattern {
  width: 100%;
  max-width: 1050px;
  margin: 35px auto;
  padding: 25px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.akasa-indexing-pattern,
.akasa-indexing-pattern * {
  box-sizing: border-box;
}

.akasa-indexing-pattern .index-item {
  width: 100%;
  min-height: 150px;
  padding: 18px 14px;
  background: #ffffff;
  border: 1px solid #d7e0e8;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.akasa-indexing-pattern .index-item:hover {
  transform: translateY(-6px);
  border-color: #006b8f;
  box-shadow: 0 14px 28px rgba(0, 107, 143, 0.14);
}

.akasa-indexing-pattern .index-item a {
  width: 100%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000000;
}

.akasa-indexing-pattern .index-item img {
  width: auto;
  max-width: 150px;
  max-height: 70px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  object-fit: contain;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.akasa-indexing-pattern .index-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.05);
}

.akasa-indexing-pattern .index-item span {
  display: block;
  margin: 0;
  color: #000000;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.akasa-indexing-pattern .index-item:hover span {
  color: #006b8f;
}

/* Wide logos */
.akasa-indexing-pattern .index-item:nth-child(1) img,
.akasa-indexing-pattern .index-item:nth-child(2) img,
.akasa-indexing-pattern .index-item:nth-child(3) img,
.akasa-indexing-pattern .index-item:nth-child(6) img,
.akasa-indexing-pattern .index-item:nth-child(9) img,
.akasa-indexing-pattern .index-item:nth-child(10) img,
.akasa-indexing-pattern .index-item:nth-child(11) img,
.akasa-indexing-pattern .index-item:nth-child(14) img {
  max-width: 185px;
  max-height: 68px;
}

/* Square logos */
.akasa-indexing-pattern .index-item:nth-child(4) img,
.akasa-indexing-pattern .index-item:nth-child(5) img,
.akasa-indexing-pattern .index-item:nth-child(7) img,
.akasa-indexing-pattern .index-item:nth-child(8) img,
.akasa-indexing-pattern .index-item:nth-child(12) img,
.akasa-indexing-pattern .index-item:nth-child(13) img,
.akasa-indexing-pattern .index-item:nth-child(15) img {
  max-width: 90px;
  max-height: 82px;
}

/* Root indexing adjustment */
.akasa-indexing-pattern .index-item:nth-child(6) img {
  max-width: 210px;
  max-height: 58px;
}

/* Tablet */
@media (max-width: 850px) {
  .akasa-indexing-pattern {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .akasa-indexing-pattern {
    grid-template-columns: 1fr;
  }

  .akasa-indexing-pattern .index-item {
    min-height: 135px;
  }
}
template css for new 
.blue-template-card{
    background: linear-gradient(135deg,#ffffff,#f6f8ff);
    border: 1px solid rgba(56,88,229,0.25);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 8px 22px rgba(0,0,0,0.07);
    transition: 0.35s ease;
    position: relative;
    overflow: hidden;
}

.blue-template-card::before{
    content:"";
    position:absolute;
    bottom:-60px;
    right:-60px;
    width:140px;
    height:140px;
    background: rgba(56,88,229,0.12);
    border-radius:50%;
}

.blue-template-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.blue-image{
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.blue-image img{
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.blue-template-card h3{
    font-size: 18px;
    color: #1d2b6f;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.blue-template-card p{
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.blue-download-btn{
    display: inline-block;
    background: #3858E5;
    color: #fff;
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(56,88,229,0.25);
}

.blue-download-btn:hover{
    background: #2743b8;
    transform: scale(1.05);
}