/* ============================= */
/* TOPPER SECTION */
/* ============================= */

.topper-section {
  background: #f6f3ef;
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Header */
.topper-header {
  text-align: center;
  margin-bottom: 60px;
}

.topper-header h2 {
  font-size: 40px;
  color: #0e3c4c;
  font-family: "Georgia", serif;
  margin-bottom: 15px;
}

.topper-header p {
  color: #666;
  max-width: 700px;
  margin: auto;
}

/* Grid */
.topper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* Card */
.topper-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transition: 0.4s ease;
  transform: translateY(40px);
  opacity: 0;
  animation: fadeUp 0.8s forwards;
}

/* Stagger animation */
.topper-card:nth-child(1) {
  animation-delay: 0.1s;
}
.topper-card:nth-child(2) {
  animation-delay: 0.2s;
}
.topper-card:nth-child(3) {
  animation-delay: 0.3s;
}
.topper-card:nth-child(4) {
  animation-delay: 0.4s;
}
.topper-card:nth-child(5) {
  animation-delay: 0.5s;
}
.topper-card:nth-child(6) {
  animation-delay: 0.6s;
}
.topper-card:nth-child(7) {
  animation-delay: 0.7s;
}
.topper-card:nth-child(8) {
  animation-delay: 0.8s;
}
.topper-card:nth-child(9) {
  animation-delay: 0.9s;
}
.topper-card:nth-child(10) {
  animation-delay: 1s;
}
.topper-card:nth-child(11) {
  animation-delay: 1.1s;
}
.topper-card:nth-child(12) {
  animation-delay: 1.2s;
}

/* Image */
.topper-img {
  height: 250px;
  overflow: hidden;
}

.topper-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

/* Info */
.topper-info {
  padding: 20px;
}

.topper-info h4 {
  color: #0e3c4c;
  margin-bottom: 5px;
}

.topper-info span {
  color: #ff5a2c;
  font-weight: 600;
}

/* Rank Badge */
.rank-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(45deg, #ff7a18, #ff4b2b);
  color: #fff;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: bold;
}

/* Hover Effects */
.topper-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.topper-card:hover img {
  transform: scale(1.08);
}

/* Animation */
@keyframes fadeUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .topper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .topper-grid {
    grid-template-columns: 1fr;
  }
}
