body {
      font-family: 'Montserrat', sans-serif !important;
      margin: 0;
      background: #fff;
    }
/**********************/
    .rankings-section {
      background: #fff;
      padding: 60px 20px;
      text-align: center;
    }

    .rankings-heading h2 {
      font-size: 2.8rem;
      color: #000038;
      margin-bottom: 1rem;
      animation: fadeInUp 0.8s ease-out forwards;
      opacity: 0;
      transform: translateY(30px);
    }

    .rankings-heading p {
      font-size: 1rem;
      color: #3a3939;
      max-width: 900px;
      margin: 0 auto 2rem;
      line-height: 1.6;
      animation: fadeInUp 1.2s ease-out forwards;
      opacity: 0;
      transform: translateY(30px);
    }

    .rankings-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      justify-items: center;
      align-items: center;
      animation: fadeInUp 1.5s ease-out forwards;
      opacity: 0;
      transform: translateY(30px);
    }

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .badge-flip {
      perspective: 1000px;
      width: 300px;
      height: 200px;
    }

    .badge-inner {
      width: 100%;
      height: 100%;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.8s ease;
    }

    .badge-flip:hover .badge-inner {
      transform: rotateY(180deg);
    }

    .badge-front,
    .badge-back {
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 12px;
      backface-visibility: hidden;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 15px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .badge-front {
      border: 1.5px solid #ddd; /* Subtle premium border */
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
      background: linear-gradient(135deg, #ffffffff, #eaeaea);
    }

    .badge-front img {
      max-width: 90%;
      height: auto;
      object-fit: contain;
    }

    .badge-back {
      transform: rotateY(180deg);
       background: linear-gradient(135deg, #000038, #1a1a60); /* Gradient navy look */
      color: white;
      text-align: center;
      font-size: 1rem;
      padding: 20px;
    }
    .badge-back p {
      font-size: 1.1rem;
      font-weight: 700; /* bold */
      letter-spacing: 1.5px;
      text-transform: uppercase; /* just in case */
      color: #ffffff;
      text-align: center;
      padding: 20px 15px;
      line-height: 1.4;
      text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
      background: linear-gradient(135deg, #1a237e, #2a2a2b59); /* subtle blue gradient */
      border-radius: 0 0 10px 10px;
      box-shadow: 0 0 15px rgba(190, 191, 196, 0.47);
      transition: all 0.3s ease;
    }


    @media (max-width: 768px) {
      .rankings-heading h2 {
        font-size: 2rem;
      }

      .rankings-heading p {
        font-size: 0.95rem;
      }
    }

    /* Desktop Hover Flip */
@media (min-width: 769px) {
  .badge-flip:hover .badge-inner {
    transform: rotateY(180deg);
  }
}

/* Mobile Tap Flip */
@media (max-width: 768px) {
  .badge-inner {
    cursor: pointer;
  }

  .badge-flip .badge-inner.flipped {
    transform: rotateY(180deg);
  }
}
