
/* ==================================
   Awards Page
================================== */

.awards-section {
  padding: 100px 0 80px;
}

/* Awards container */
.awards-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
}

/* ==================================
   Common Award Box Styling
================================== */

.awards-box {
  --award-color: 254, 167, 17;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 30px;

  background: rgba(var(--award-color), 0.045);
  border: 2px solid rgba(var(--award-color), 0.7);
  border-radius: 15px;

  /* Permanent subtle glow */
  box-shadow:
    0 0 12px rgba(var(--award-color), 0.2),
    0 0 30px rgba(var(--award-color), 0.1);

  transition:
    transform 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* ==================================
   Animated Idle Glow
================================== */

.awards-box::before {
  content: "";
  position: absolute;
  inset: -2px;

  border: 2px solid rgb(var(--award-color));
  border-radius: inherit;

  box-shadow:
    0 0 12px rgba(var(--award-color), 0.5),
    0 0 30px rgba(var(--award-color), 0.25),
    0 0 55px rgba(var(--award-color), 0.12);

  pointer-events: none;

  animation: awards-glow 1.5s ease-in-out infinite alternate;
}

/* Pulsing animation */
@keyframes awards-glow {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}

/* ==================================
   Hover Effect
================================== */

.awards-box:hover,
.awards-box:focus-within {
  transform: translateY(-10px);

  background: rgba(var(--award-color), 0.08);
  border-color: rgb(var(--award-color));

  box-shadow:
    0 0 20px rgba(var(--award-color), 0.55),
    0 0 45px rgba(var(--award-color), 0.3),
    0 0 75px rgba(var(--award-color), 0.15);

  z-index: 2;
}

/* Stronger glow on hover */
.awards-box:hover::before,
.awards-box:focus-within::before {
  animation: none;
  opacity: 1;

  box-shadow:
    0 0 20px rgba(var(--award-color), 0.8),
    0 0 45px rgba(var(--award-color), 0.45),
    0 0 75px rgba(var(--award-color), 0.2);
}

/* ==================================
   Titles and Text
================================== */

.awards-box h3 {
  color: rgb(var(--award-color));
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 25px;

  text-shadow: 0 0 10px rgba(var(--award-color), 0.25);

  transition: text-shadow 0.35s ease;
}

.awards-box:hover h3 {
  text-shadow:
    0 0 12px rgba(var(--award-color), 0.7),
    0 0 25px rgba(var(--award-color), 0.35);
}

.awards-box h4 {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 10px 0 15px;
}

.awards-box p {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}

/* Links */
.awards-box a {
  display: inline-block;
  color: var(--blue-light);
  text-decoration: underline;
  text-decoration-color: var(--blue-light);
  font-size: 1rem;

  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.awards-box a:hover {
  color: rgb(var(--award-color));
  text-shadow: 0 0 12px rgba(var(--award-color), 0.4);
  text-decoration-color: rgb(var(--award-color));
}

/* ==================================
   Medal Colors
================================== */

/* Silver */
.awards-silver {
  --award-color: 192, 192, 192;
}

/* Gold */
.awards-gold {
  --award-color: 255, 215, 0;
  transform: translateY(-30px);
}

/* Gold stays elevated on hover */
.awards-gold:hover,
.awards-gold:focus-within {
  transform: translateY(-42px);
}

/* Bronze */
.awards-bronze {
  --award-color: 205, 127, 50;
}

/* ==================================
   Responsive Layout
================================== */

@media (max-width: 992px) {
  .awards-container {
    gap: 18px;
  }

  .awards-box {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .awards-section {
    padding: 40px 0;
  }

  .awards-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .awards-box {
    max-width: 420px;
    margin: 0 auto;
    padding: 30px;
  }

  .awards-gold {
    transform: none;
  }

  .awards-box:hover,
  .awards-box:focus-within,
  .awards-gold:hover,
  .awards-gold:focus-within {
    transform: translateY(-8px);
  }
}

/* ==================================
   Reduced Motion
================================== */

@media (prefers-reduced-motion: reduce) {
  .awards-box,
  .awards-box h3,
  .awards-box a {
    transition: none;
  }

  .awards-box::before {
    animation: none;
    opacity: 0.7;
  }

  .awards-box:hover,
  .awards-box:focus-within,
  .awards-gold,
  .awards-gold:hover,
  .awards-gold:focus-within {
    transform: none;
  }
}
