/* =========================================
   Indexing Databases Grid - Bigger Cards
   Smaller Heading + 3D Hover Animation
========================================= */

.jabfs-indexing-box {
  width: 100%;
  max-width: 430px;
  margin: 25px auto;
  padding: 28px 22px 34px;
  background: #eeeeee;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  box-sizing: border-box;
}

/* Smaller Heading */
.jabfs-indexing-box h3 {
  margin: 0 0 26px;
  color: #2f3d4a;
  font-size: 34px;
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Bigger 2-column layout */
.jabfs-indexing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 20px;
  perspective: 1000px;
}

/* Bigger card */
.jabfs-index-card {
  position: relative;
  height: 112px !important;
  background: #ffffff;
  border: 1px solid #999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px !important;
  overflow: hidden;
  text-decoration: none !important;
  box-sizing: border-box;
  transform-style: preserve-3d;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.16);
  transition: all 0.35s ease;
}

/* Logo equal size */
.jabfs-index-card img {
  width: 100% !important;
  height: 100% !important;
  max-width: 165px !important;
  max-height: 78px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: translateZ(18px);
  transition: all 0.35s ease;
}

/* Shine effect */
.jabfs-index-card::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -120%;
  width: 180%;
  height: 180%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.75) 50%,
    transparent 65%
  );
  transform: rotate(25deg);
  opacity: 0;
  transition: 0.45s ease;
}

/* 3D hover */
.jabfs-index-card:hover {
  transform: translateY(-8px) rotateX(8deg) rotateY(-6deg) scale(1.05);
  border-color: #444444;
  background: #ffffff;
  z-index: 5;
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.26),
    0 0 0 3px rgba(255, 255, 255, 0.75);
}

.jabfs-index-card:hover::before {
  opacity: 1;
  top: -35%;
  left: -35%;
}

.jabfs-index-card:hover img {
  transform: translateZ(35px) scale(1.1);
}

/* Click effect */
.jabfs-index-card:active {
  transform: translateY(-2px) scale(0.98);
}

/* Mobile */
@media (max-width: 420px) {
  .jabfs-indexing-box {
    max-width: 100%;
    padding: 24px 14px;
  }

  .jabfs-indexing-box h3 {
    font-size: 28px;
    line-height: 0.95;
    margin-bottom: 22px;
  }

  .jabfs-indexing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .jabfs-index-card {
    height: 96px !important;
    padding: 10px !important;
  }

  .jabfs-index-card img {
    max-width: 135px !important;
    max-height: 64px !important;
  }
}
