/* style/card-games-rules.css */
.page-card-games-rules {
  font-family: 'Arial', sans-serif;
  color: #E0E0E0; /* Light grey for text on dark background */
  background-color: #0F1A2B; /* Primary dark background */
  line-height: 1.6;
}

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

.page-card-games-rules__hero {
  background: linear-gradient(135deg, #0F1A2B 0%, #2A3B50 100%);
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.page-card-games-rules__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('[GALLERY:bg:abstract_pattern,geometric,dark_gold]');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.page-card-games-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-card-games-rules__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Auxiliary gold for titles */
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  font-weight: bold;
}

.page-card-games-rules__hero-description {
  font-size: 1.2em;
  color: #C0C0C0;
  margin-bottom: 30px;
}

.page-card-games-rules__hero-image-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin-top: 40px;
}

.page-card-games-rules__hero-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-card-games-rules__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.page-card-games-rules__section:last-of-type {
  border-bottom: none;
}

.page-card-games-rules__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-card-games-rules__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-card-games-rules__intro p,
.page-card-games-rules__rules-overview p {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-card-games-rules__rules-overview ul {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 20px;
}

.page-card-games-rules__rules-overview li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #E0E0E0;
}

.page-card-games-rules__rules-overview li strong {
  color: #FFD700;
}

.page-card-games-rules__game-details {
  background-color: #1A273B;
}

.page-card-games-rules__game-card {
  background-color: #0F1A2B;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-card-games-rules__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-card-games-rules__game-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 15px;
}

.page-card-games-rules__game-subtitle {
  font-size: 1.5em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 4px solid #FFD700;
  padding-left: 15px;
}

.page-card-games-rules__game-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  margin: 20px auto 30px auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-card-games-rules__game-card p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-card-games-rules__game-card ol,
.page-card-games-rules__game-card ul {
  list-style-type: decimal;
  padding-left: 30px;
  margin-bottom: 20px;
}

.page-card-games-rules__game-card ul {
  list-style-type: disc;
}

.page-card-games-rules__game-card li {
  margin-bottom: 8px;
}

.page-card-games-rules__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0F1A2B;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-card-games-rules__cta-button:hover {
  background-color: #E6C200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

.page-card-games-rules__cta-button--secondary {
  background-color: #2A3B50;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: none;
}

.page-card-games-rules__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #0F1A2B;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-card-games-rules__fair-play {
  text-align: center;
  background-color: #0F1A2B;
  padding: 80px 0;
}

.page-card-games-rules__fair-play p {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: #C0C0C0;
}

.page-card-games-rules__cta-final {
  background: linear-gradient(90deg, #0F1A2B, #2A3B50);
  padding: 80px 0;
  text-align: center;
}

.page-card-games-rules__cta-final-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-card-games-rules__cta-final-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-card-games-rules__cta-final-text {
  max-width: 700px;
}

.page-card-games-rules__cta-final .page-card-games-rules__section-title {
  margin-bottom: 20px;
}

.page-card-games-rules__cta-final p {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #C0C0C0;
}

.page-card-games-rules__buttons-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-card-games-rules__cta-button--outline {
  background-color: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
  box-shadow: none;
}

.page-card-games-rules__cta-button--outline:hover {
  background-color: #FFD700;
  color: #0F1A2B;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (min-width: 768px) {
  .page-card-games-rules__hero {
    flex-direction: row;
    text-align: left;
    padding: 100px 0;
  }

  .page-card-games-rules__hero-content {
    text-align: left;
    flex: 1;
    padding-right: 30px;
  }

  .page-card-games-rules__hero-image-wrapper {
    flex: 1;
    margin-top: 0;
  }

  .page-card-games-rules__section-title {
    font-size: 3em;
  }

  .page-card-games-rules__game-details .page-card-games-rules__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
  }

  .page-card-games-rules__game-card {
    margin-bottom: 0;
  }

  .page-card-games-rules__cta-final-content {
    flex-direction: row;
    text-align: left;
    gap: 60px;
  }

  .page-card-games-rules__cta-final-image {
    max-width: 350px;
  }

  .page-card-games-rules__cta-final-text {
    flex: 1;
  }

  .page-card-games-rules__buttons-group {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .page-card-games-rules__hero-title {
    font-size: 4em;
  }

  .page-card-games-rules__hero-description {
    font-size: 1.3em;
  }

  .page-card-games-rules__section-title {
    font-size: 3.5em;
  }
}

@media (max-width: 767px) {
  .page-card-games-rules__hero {
    padding: 60px 20px;
  }

  .page-card-games-rules__hero-title {
    font-size: 2.5em;
  }

  .page-card-games-rules__hero-description {
    font-size: 1em;
  }

  .page-card-games-rules__section {
    padding: 40px 0;
  }

  .page-card-games-rules__section-title {
    font-size: 2em;
  }

  .page-card-games-rules__game-card {
    padding: 20px;
  }

  .page-card-games-rules__game-title {
    font-size: 1.8em;
  }

  .page-card-games-rules__game-subtitle {
    font-size: 1.3em;
  }

  .page-card-games-rules__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-card-games-rules__fair-play p,
  .page-card-games-rules__cta-final p {
    font-size: 1em;
  }

  .page-card-games-rules__cta-final-content {
    padding: 0 20px;
  }

  .page-card-games-rules__buttons-group {
    flex-direction: column;
    gap: 15px;
  }
}