
.players-section {
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.player-title-section {
  font-size: 36px;
  color: #d4af37;
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 5px #d4af37aa;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;

  margin: 0 auto;
}

/* Player Card and border */
.player-card {
  width: 100%;
 
  font-family: inherit;
  flex: 1 1 300px;
}

.card-border {
  background: linear-gradient(135deg, #d4af37, #fff4c2, #d4af37);
  padding: 3px;
  border-radius: 20px;
  transition: 0.4s ease;
}

.card-border:hover {
  filter: brightness(1.05) saturate(1.1);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
}

.card-inner {
  background-color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.card-inner:hover {
  transform: translateY(-5px);
}

/* Image and social icons */
.card-image {
  position: relative;
  height: 300px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card content with better spacing */
.card-content {
  text-align: center;
  
}

.player-name {
  font-size: 26px;
  color: #d4af37;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}



/* Stats row with icons and text */
.stats-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdf7e1;
  padding: 10px 15px;
  border-radius: 14px;
  box-shadow: inset 0 0 6px rgba(212, 175, 55, 0.1);
  min-width: 130px;
  cursor: default;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #d4af37;
  font-weight: 600;
}

.stat-item i {
  font-size: 22px;
  color: #d4af37;
  flex-shrink: 0;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  color: #b38a00;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #3a2f00;
}

/* Hover effect on stat item */
.stat-item:hover {
  background-color: #d4af37;
  color: #fff;
}

.stat-item:hover i {
  color: #fff;
}
.stat-item:hover .stat-label {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .player-card {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .player-card {
    max-width: 100%;
  }
}

        .cpl-teams-section {
            
            width: 100%;
          
            text-align: center;
        }

        .section-header {
            margin-bottom: 60px;
            position: relative;
            padding: 0 20px;
        }

        .section-title {
            font-size: 3.8rem;
            color: #ffdd55;
            text-transform: uppercase;
            letter-spacing: 4px;
            margin-top: 15px;
            text-shadow: 0 0 20px rgba(255, 221, 85, 0.6);
            position: relative;
            display: inline-block;
        }

        .section-title:after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 4px;
            background: #ffdd55;
            border-radius: 2px;
        }

      
.team-logo img {
  font-size: 32px;
   width: 80px;   /* adjust as needed */
    height: 80px;  /* adjust as needed */
    object-fit: contain; /* makes sure the image doesn't get stretched */
    font-size: 50px;
  
  color: gold;
  animation: rotateGlow 4s linear infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 5px gold);
  will-change: transform, filter;
}

@keyframes rotateGlow {
  0% {
    transform: rotateY(0deg) rotateZ(0deg);
    filter: drop-shadow(0 0 5px gold);
  }
  50% {
    transform: rotateY(180deg) rotateZ(15deg);
    filter: drop-shadow(0 0 15px gold);
  }
  100% {
    transform: rotateY(360deg) rotateZ(0deg);
    filter: drop-shadow(0 0 5px gold);
  }
}

     .teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;

    /* Center the whole grid */
    max-width: 1200px; /* Optional: to restrict total width */
    margin: 0 auto; /* This centers it horizontally */
}


        .team-card {
            background: linear-gradient(145deg, #1c1f29, #151922);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            border: 2px solid rgba(255, 221, 85, 0.1);
            padding: 25px 20px 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .team-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(255, 221, 85, 0.25);
            border-color: rgba(255, 221, 85, 0.4);
        }

        .team-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: #ffdd55;
            opacity: 0.7;
            transition: opacity 0.3s;
        }

        .team-card:hover::before {
            opacity: 1;
        }

        .team-logo {
            width: 120px;
            height: 120px;
            margin: 15px auto 25px;
            background: linear-gradient(135deg, #252a37 0%, #1c212e 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border: 4px solid #ffdd55;
            box-shadow: 0 0 25px rgba(255, 221, 85, 0.3);
            z-index: 2;
        }

        .team-logo img {
            font-size: 50px;
            color: #ffdd55;
        }

        .team-info {
            text-align: center;
            width: 100%;
        }

        .team-name {
            color: #ffdd55;
            font-size: 2.8rem;
            margin-bottom: 15px;
            font-weight: 700;
            letter-spacing: 1px;
        }

        .team-country {
            color: #bbb;
            font-size: 1.6rem;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .team-stats {
            display: flex;
            justify-content: space-around;
            width: 100%;
            margin: 20px 0;
        }

        .stat {
            text-align: center;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: #ffdd55;
            margin-bottom: 5px;
        }

        .stat-label {
           
            color: #aaa;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .team-strength {
            width: 100%;
            margin: 20px 0;
        }

        .strength-bar {
            height: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            overflow: hidden;
            position: relative;
        }

        .strength-fill {
            height: 100%;
            background: #ffdd55;
            border-radius: 5px;
            position: relative;
        }

        .strength-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            animation: shine 2s infinite;
        }

        .strength-label {
            display: flex;
            justify-content: space-between;
            margin-top: 8px;
           
            color: #ccc;
        }

        .team-players {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 25px;
        }

        .player {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: #252a37;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffdd55;
            font-size: 1.5rem;
            font-weight: 700;
            border: 2px solid #2d3340;
            transition: all 0.3s ease;
        }

        .player:hover {
            transform: scale(1.2);
            background: #ffdd55;
            color: #000;
            border-color: #ffdd55;
        }

        .team-footer {
            margin-top: auto;
            padding-top: 20px;
            width: 100%;
        }

        .team-status {
            display: inline-block;
            padding: 8px 20px;
            background: rgba(255, 221, 85, 0.15);
            border-radius: 30px;
            color: #ffdd55;
            font-size: 0.9rem;
            font-weight: 600;
            letter-spacing: 1px;
        }

        /* Animations */
        @keyframes shine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        .team-card:hover .team-logo {
            animation: float 2s ease-in-out infinite;
        }

        /* Responsive */
        @media (max-width: 1100px) {
            .section-title {
                font-size: 3.2rem;
            }
        }

        @media (max-width: 768px) {
            .section-title {
                font-size: 2.5rem;
            }
            .section-subtitle {
                font-size: 1rem;
            }
        }
      
        @media (max-width: 480px) {
            .section-title {
                font-size: 2rem;
            }
            .teams-grid {
                grid-template-columns: 1fr;
            }
        }
    