.header {
  position: relative;
  text-align: center;
  margin: 3rem 0;
  overflow: hidden;
  padding-bottom: 1rem;
}

/* Confetti Animation */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall linear infinite;
  z-index: 1;
}

@keyframes confetti-fall {
  to {
    transform: translateY(220px) rotate(360deg);
    opacity: 0;
  }
}

/* Different confetti shapes */
.confetti-square {
  background: #f94144;
}

.confetti-circle {
  background: #f3722c;
  border-radius: 50%;
}

.confetti-rect {
  background: #f8961e;
  width: 15px;
  height: 8px;
}

.confetti-triangle {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid #f9c74f;
}

.confetti-star {
  background: #90be6d;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  width: 12px;
  height: 12px;
}

.confetti-ribbon {
  background: #43aa8b;
  width: 3px;
  height: 15px;
}

.confetti-diamond {
  background: #4d908e;
  transform: rotate(45deg);
}

.confetti-hex {
  background: #577590;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  width: 12px;
  height: 12px;
}

.header h1 {
  font-size: 48px;
  font-weight: 700;
  color: rgba(24, 66, 153, 1);
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
  font-size: 20px;
  color: #666;
  font-weight: 300;
  margin-bottom: 24px;
}

.year-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: white;
  padding: 10px 20px;
  width: max-content;
  border-radius: 25px;
  margin: 0 auto 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.year-filter label {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  display: block;
}

.year-select {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 16px;
}

.year-select:focus {
  outline: none;
}

.year-select:hover {
  border-color: #9ca3af;
}

.winners-container {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); */
  grid-template-columns: 1fr 1fr;
  grid-template-rows: masonry;
  grid-auto-flow: dense;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.winners-container.single-item {
  grid-template-columns: 1fr;
  place-items: center;
}

.winners-container.single-item .winner-card {
  max-width: 500px;
}

.winner-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.winner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-header-section {
  padding: 32px 40px 24px;
  position: relative;
  background: linear-gradient(135deg, #e8f4f8 0%, #d4e7f0 100%);
}

.card-header-section.first {
  background: linear-gradient(135deg, #e3c263 0%, #d4af37 100%);
}

.card-header-section.second {
  background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
}

.card-header-section.third {
  background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
}

/* Top section with badge and logo */
.top-hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.shadow-div {
  width: 100px;
}

.position-badge {
  background: white;
  color: #1a1a1a;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.position-text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.logo-container {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.business-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Profile image in header */
.header-profile-container {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.header-profile-container .profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Main content section */
.card-body-section {
  padding: 32px 40px 40px;
}

.profile-info {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(30, 60, 114, 1);
  margin-bottom: 8px;
}

.business-name {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(102, 126, 234, 1);
  margin-bottom: 1rem;
}

.school-info {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(240, 244, 255, 1);
  padding: 0.3rem;
  gap: 8px;
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 500;
  margin-bottom: 0.5rem;
  border-radius: 6px;
}

.school-info > span {
  font-size: 0.9rem;
  color: rgba(30, 60, 114, 1);
}

.qualification {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.content-section {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(240, 244, 255, 1);
  border-radius: 12px;
}

.content-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  color: rgba(30, 60, 114, 1);
}

.content-section p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.expandable-content {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  position: relative;
}

.expandable-content.expanded {
  max-height: none;
}

.expandable-content:not(.expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, white);
  pointer-events: none;
}

.show-less-btn,
.show-more-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 16px;
}

.show-less-btn:hover,
.show-more-btn:hover {
  background: #0052a3;
}

.show-less-btn,
.show-more-btn {
  background-color: rgba(0, 79, 159, 1);
  border-color: rgba(0, 79, 159, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.show-less-btn {
  display: none;
}

.expandable-content.expanded + .show-more-btn {
  display: none;
}

.expandable-content.expanded + .show-more-btn + .show-less-btn {
  display: block;
}

.social-handles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f8f9fa;
  border-radius: 20px;
  text-decoration: none;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.social-link.twitter:hover {
  background: #1da1f2;
  color: white;
}

.social-link.instagram:hover {
  background: #e4405f;
  color: white;
}

.social-link.youtube:hover {
  background: #e4405f;
  color: white;
}

.social-link.linkedin:hover {
  background: #0077b5;
  color: white;
}

.social-link.tiktok:hover {
  background: #0077b5;
  color: white;
}

.social-link.facebook:hover {
  background: #1877f2;
  color: white;
}

.social-link.website:hover {
  background: #28a745;
  color: white;
}

.social-link.whatsapp:hover {
  background: #28a745;
  color: white;
}

.community-banner {
  background: rgba(30, 136, 243, 1);
  box-shadow: 0 4px 20px rgb(28, 117, 205);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: max-content;
  border-radius: 50px;
  padding: 0 1.3rem;
  margin: 0 auto 2rem;
}

.community-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgb(28, 117, 205);
}

.community-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 0;
  color: white;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  z-index: 1;
}

.community-link:hover .whatsapp-icon {
  transform: scale(1.02);
}

.community-text {
  z-index: 1;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.document-link {
  text-decoration: underline;
}

.no-winners {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

@media (max-width: 768px) {
  .winners-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .header h1 {
    font-size: 36px;
  }

  .social-handles {
    justify-content: center;
  }
}

@media (max-width: 440px) {
  .top-hero-section {
    flex-direction: column;
    gap: 10px;
  }
}