.card-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .card {
            width: calc(25% - 20px); /* 4 cards in first row */
            min-width: 200px;
            background: #fff;
            border: 1px solid #6495ED;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            border-radius: 8px;
            overflow: hidden;
            text-align: center;
            transition: transform 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
        }

        .card img {
            width: 50%;
            max-height: 120px;
            object-fit: contain;
            display: block;
            margin: 15px auto 0;
        }

        .card-info {
            padding: 15px 10px;
        }

        .card-info h3 {
            margin: 10px 0 5px;
            font-size: 18px;
            color: #333;
        }

        .card-info p {
            margin: 0;
            font-size: 14px;
            color: #777;
        }

        /* Force second row (cards 5 to 7) to have only 3 cards */
        .card-grid > .card:nth-child(n+5) {
            width: calc(33.33% - 20px);
        }

        /* Responsive - Optional */
        @media (max-width: 768px) {
            .card {
                width: calc(50% - 20px);
            }

            .card-grid > .card:nth-child(n+5) {
                width: calc(50% - 20px);
            }
        }

        @media (max-width: 480px) {
            .card, .card-grid > .card:nth-child(n+5) {
                width: 100%;
            }
        }
.dashboard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
  width: 100%;
  max-width: 1400px;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

/* Fade in animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 0rem;
  text-align: center;
  box-shadow:
    0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-15px) scale(1.07);
  box-shadow:
    0 12px 40px 0 rgba(255, 255, 255, 0.4);
}

/* Icon wrapper with gradient background + pulse */
.icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  padding: 1.4rem;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  box-shadow:
    0 4px 15px rgba(238, 9, 121, 0.6);
  animation: pulse 3s ease-in-out infinite;
  display: inline-block;
  color: white;
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(238, 9, 121, 0.7),
      0 0 20px rgba(238, 9, 121, 0.5);
  }
  50% {
    box-shadow:
      0 0 25px rgba(238, 9, 121, 1),
      0 0 40px rgba(238, 9, 121, 0.8);
  }
}

h2 {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.count {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 3px 6px rgba(0,0,0,0.35);
}

/* Color variations per card with gradient icon backgrounds */
.card1 .icon {
  background: linear-gradient(135deg, #4caf50, #81c784);
  box-shadow: 0 4px 15px rgba(129, 199, 132, 0.6);
  animation-name: pulseGreen;
}
@keyframes pulseGreen {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(129, 199, 132, 0.7),
      0 0 20px rgba(129, 199, 132, 0.5);
  }
  50% {
    box-shadow:
      0 0 25px rgba(129, 199, 132, 1),
      0 0 40px rgba(129, 199, 132, 0.8);
  }
}

.card2 .icon {
  background: linear-gradient(135deg, #2196f3, #64b5f6);
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.6);
  animation-name: pulseBlue;
}
@keyframes pulseBlue {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(100, 181, 246, 0.7),
      0 0 20px rgba(100, 181, 246, 0.5);
  }
  50% {
    box-shadow:
      0 0 25px rgba(100, 181, 246, 1),
      0 0 40px rgba(100, 181, 246, 0.8);
  }
}

.card3 .icon {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  box-shadow: 0 4px 15px rgba(255, 183, 77, 0.6);
  animation-name: pulseOrange;
}
@keyframes pulseOrange {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(255, 183, 77, 0.7),
      0 0 20px rgba(255, 183, 77, 0.5);
  }
  50% {
    box-shadow:
      0 0 25px rgba(255, 183, 77, 1),
      0 0 40px rgba(255, 183, 77, 0.8);
  }
}

.card4 .icon {
  background: linear-gradient(135deg, #9c27b0, #ba68c8);
  box-shadow: 0 4px 15px rgba(186, 104, 200, 0.6);
  animation-name: pulsePurple;
}
@keyframes pulsePurple {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(186, 104, 200, 0.7),
      0 0 20px rgba(186, 104, 200, 0.5);
  }
  50% {
    box-shadow:
      0 0 25px rgba(186, 104, 200, 1),
      0 0 40px rgba(186, 104, 200, 0.8);
  }
}

.card5 .icon {
  background: linear-gradient(135deg, #f44336, #e57373);
  box-shadow: 0 4px 15px rgba(229, 115, 115, 0.6);
  animation-name: pulseRed;
}
@keyframes pulseRed {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(229, 115, 115, 0.7),
      0 0 20px rgba(229, 115, 115, 0.5);
  }
  50% {
    box-shadow:
      0 0 25px rgba(229, 115, 115, 1),
      0 0 40px rgba(229, 115, 115, 0.8);
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}
.carousel-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
}

.carousel-row a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 150px;
    text-align: center;
}

.carousel-row a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.carousel-row img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.carousel-row span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
@media (max-width: 600px) {
    .carousel-row a {
        width: 120px;
        padding: 10px;
    }

    .carousel-row span {
        font-size: 12px;
    }

    .carousel-row img {
        max-width: 60px;
    }
}
