/* style/leaderboard.css */
.page-leaderboard {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
}

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

.page-leaderboard__hero {
  background: linear-gradient(135deg, #0047AB 0%, #003380 100%); /* Deeper blue for hero */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-leaderboard__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700; /* Gold for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-leaderboard__hero-subtitle {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

.page-leaderboard__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.15;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 0;
}

.page-leaderboard__hero-image {
  max-width: 600px;
  height: auto;
  transform: translateX(100px) translateY(100px) rotate(-15deg);
  object-fit: cover;
}

.page-leaderboard__hero > .page-leaderboard__container {
  position: relative;
  z-index: 1;
}

.page-leaderboard__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-leaderboard__btn--primary {
  background-color: #FFD700;
  color: #0047AB;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-leaderboard__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-leaderboard__section {
  padding: 60px 0;
  background-color: #ffffff;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-leaderboard__section:nth-child(odd) {
  background-color: #fefefe;
}

.page-leaderboard__section-title {
  font-size: 2.5em;
  color: #0047AB;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-leaderboard__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-leaderboard__section--introduction p {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-leaderboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-leaderboard__grid-item {
  background-color: #f0f8ff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-leaderboard__grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-leaderboard__grid-title {
  font-size: 1.5em;
  color: #0047AB;
  margin-bottom: 15px;
}

.page-leaderboard__grid-item p {
  font-size: 1em;
  color: #555;
}

.page-leaderboard__leaderboard-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-leaderboard__leaderboard-item {
  background-color: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-leaderboard__leaderboard-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-leaderboard__item-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-leaderboard__item-title {
  font-size: 1.8em;
  color: #0047AB;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-leaderboard__item-title a {
  color: #0047AB;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-leaderboard__item-title a:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-leaderboard__item-description {
  font-size: 1em;
  color: #666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-leaderboard__btn--secondary {
  background-color: #0047AB;
  color: #ffffff;
  padding: 12px 25px;
  font-size: 0.95em;
  border: 2px solid #0047AB;
}

.page-leaderboard__btn--secondary:hover {
  background-color: #003380;
  border-color: #003380;
  transform: translateY(-2px);
}

.page-leaderboard__sub-section-title {
  font-size: 2em;
  color: #0047AB;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
}

.page-leaderboard__section--how-to p {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
}

.page-leaderboard__ordered-list {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-leaderboard__ordered-list li {
  counter-increment: item;
  margin-bottom: 30px;
  padding-left: 60px;
  position: relative;
  text-align: left;
}

.page-leaderboard__ordered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FFD700;
  color: #0047AB;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-leaderboard__list-title {
  font-size: 1.6em;
  color: #0047AB;
  margin-bottom: 10px;
}

.page-leaderboard__ordered-list li p {
  font-size: 1em;
  color: #555;
  text-align: left;
}

.page-leaderboard__inline-link {
  color: #0047AB;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-leaderboard__inline-link:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-leaderboard__section--safety p {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-leaderboard__feature-image {
  display: block;
  max-width: 300px;
  height: auto;
  margin: 40px auto 0 auto;
  opacity: 0.8;
}

.page-leaderboard__cta-banner {
  background: linear-gradient(90deg, #0047AB, #003380);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-leaderboard__cta-banner .page-leaderboard__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-leaderboard__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-leaderboard__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-leaderboard__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-leaderboard__btn--cta {
  background-color: #FFD700;
  color: #0047AB;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.page-leaderboard__btn--cta:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-leaderboard__cta-image {
  position: absolute;
  bottom: -20px;
  left: -50px;
  width: 300px;
  height: auto;
  opacity: 0.15;
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-leaderboard__hero-title {
    font-size: 2.5em;
  }
  .page-leaderboard__hero-subtitle {
    font-size: 1.1em;
  }
  .page-leaderboard__section-title {
    font-size: 2em;
  }
  .page-leaderboard__grid {
    grid-template-columns: 1fr;
  }
  .page-leaderboard__leaderboard-list {
    grid-template-columns: 1fr;
  }
  .page-leaderboard__cta-title {
    font-size: 2.2em;
  }
  .page-leaderboard__cta-text {
    font-size: 1.1em;
  }
  .page-leaderboard__hero-image-wrapper {
    display: none;
  }
  .page-leaderboard__cta-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-leaderboard__hero {
    padding: 60px 0;
  }
  .page-leaderboard__hero-title {
    font-size: 2em;
  }
  .page-leaderboard__hero-subtitle {
    font-size: 1em;
  }
  .page-leaderboard__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-leaderboard__section {
    padding: 40px 0;
  }
  .page-leaderboard__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-leaderboard__grid-title {
    font-size: 1.3em;
  }
  .page-leaderboard__item-title {
    font-size: 1.5em;
  }
  .page-leaderboard__sub-section-title {
    font-size: 1.7em;
  }
  .page-leaderboard__ordered-list li {
    padding-left: 50px;
  }
  .page-leaderboard__ordered-list li::before {
    width: 40px;
    height: 40px;
    font-size: 1.3em;
  }
  .page-leaderboard__list-title {
    font-size: 1.4em;
  }
  .page-leaderboard__cta-title {
    font-size: 1.8em;
  }
  .page-leaderboard__cta-text {
    font-size: 1em;
  }
  .page-leaderboard__btn--cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-leaderboard__container {
    padding: 0 15px;
  }
  .page-leaderboard__hero-title {
    font-size: 1.8em;
  }
  .page-leaderboard__hero-subtitle {
    font-size: 0.9em;
  }
  .page-leaderboard__section-title {
    font-size: 1.5em;
  }
  .page-leaderboard__grid-item {
    padding: 20px;
  }
  .page-leaderboard__item-title {
    font-size: 1.3em;
  }
  .page-leaderboard__sub-section-title {
    font-size: 1.5em;
  }
  .page-leaderboard__ordered-list li {
    padding-left: 45px;
  }
  .page-leaderboard__ordered-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }
  .page-leaderboard__list-title {
    font-size: 1.2em;
  }
  .page-leaderboard__cta-title {
    font-size: 1.6em;
  }
  .page-leaderboard__btn--cta {
    padding: 12px 25px;
    font-size: 1em;
  }
}