/* style/lottery.css */

/* General page styling, ensuring text color contrasts with body background #111 */
.page-lottery {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px; /* Add some padding for visual spacing */
}

.page-lottery__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-lottery__text-block a {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-lottery__text-block a:hover {
  color: #fff;
}

.page-lottery__tips-list, .page-lottery__responsible-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-lottery__tips-list li, .page-lottery__responsible-list li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.7;
  color: #cccccc;
}

.page-lottery__tips-list li strong, .page-lottery__responsible-list li strong {
  color: #FFD700;
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 20px 80px; /* Desktop: padding-top to clear fixed header */
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8) 0%, rgba(255, 215, 0, 0.2) 100%); /* Blend of brand colors */
  color: #ffffff;
  box-sizing: border-box;
}

.page-lottery__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2; /* Subtle background image */
}

.page-lottery__main-title {
  font-size: 52px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-description {
  font-size: 22px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-lottery__hero-description a {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-lottery__hero-description a:hover {
  color: #fff;
}

.page-lottery__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container is full width for mobile adaptation */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-lottery__cta-button--primary {
  background: #FFD700;
  color: #111; /* Dark text for light button */
  border: 2px solid #FFD700;
}

.page-lottery__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__cta-button--secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-lottery__cta-button--secondary:hover {
  background: #FFD700;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-lottery__intro-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #f0f0f0;
}

/* Games Section */
.page-lottery__games-section {
  padding: 80px 0;
  background-color: #222; /* Another dark background variation */
  color: #f0f0f0;
}

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

.page-lottery__game-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent background for cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__game-card-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__game-card-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__game-card-description {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.7;
  flex-grow: 1; /* Allow description to take available space */
  margin-bottom: 20px;
}

.page-lottery__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #FFD700;
  color: #111;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-1px);
}

/* How-To-Play Section */
.page-lottery__how-to-play-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-lottery__how-to-play-section .page-lottery__section-title {
  color: #8B0000; /* Auxiliary color for titles on light background */
}

.page-lottery__how-to-play-section .page-lottery__text-block {
  color: #555555;
}

.page-lottery__how-to-play-section .page-lottery__text-block a {
  color: #8B0000;
  text-decoration: underline;
}

.page-lottery__how-to-play-section .page-lottery__text-block a:hover {
  color: #b30000;
}

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

.page-lottery__step-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-lottery__step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-lottery__step-icon {
  width: 60px;
  height: 60px;
  background: #FFD700;
  color: #111;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-lottery__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 10px;
}

.page-lottery__step-description {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
}

.page-lottery__step-description a {
  color: #8B0000;
  text-decoration: underline;
}

.page-lottery__step-description a:hover {
  color: #b30000;
}

.page-lottery__process-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

/* Advantages Section */
.page-lottery__advantages-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darkest background */
  color: #f0f0f0;
}

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

.page-lottery__advantage-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-lottery__advantage-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-lottery__advantage-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__advantage-description {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.7;
}

.page-lottery__advantage-description a {
  color: #FFD700;
  text-decoration: underline;
}

.page-lottery__advantage-description a:hover {
  color: #fff;
}

/* Tips Section */
.page-lottery__tips-section {
  padding: 80px 0;
  background-color: #f0f0f0;
  color: #333333;
}

.page-lottery__tips-section .page-lottery__section-title {
  color: #8B0000;
}

.page-lottery__tips-section .page-lottery__text-block {
  color: #555555;
}

.page-lottery__tips-section .page-lottery__text-block a {
  color: #8B0000;
  text-decoration: underline;
}

.page-lottery__tips-section .page-lottery__text-block a:hover {
  color: #b30000;
}

.page-lottery__tips-list {
  color: #555555;
}

.page-lottery__tips-list li strong {
  color: #8B0000;
}

/* Responsible Gambling Section */
.page-lottery__responsible-gambling-section {
  padding: 80px 0;
  background-color: #111;
  color: #f0f0f0;
}

.page-lottery__responsible-list {
  color: #cccccc;
}

.page-lottery__responsible-list li strong {
  color: #FFD700;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-lottery__faq-list {
  margin-top: 40px;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}