:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --bg-color: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Body background is dark, so text is light */
  background-color: var(--bg-color);
  line-height: 1.6;
}

.page-lottery__section {
  padding: 60px 20px;
  text-align: center;
}

.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.page-lottery__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-lottery__text-block {
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

/* HERO Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg-color);
  overflow: hidden;
}

.page-lottery__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-lottery__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1; /* Image below text content */
}

.page-lottery__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2; /* Text content above image (visually, but not overlapping) */
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-lottery__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Using clamp for responsive font-size */
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__description {
  font-size: 18px;
  color: var(--text-main);
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* For mobile button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__cta-button:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Feature Grid (Intro Section) */
.page-lottery__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-lottery__feature-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery__feature-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-lottery__feature-item p {
  font-size: 16px;
  color: var(--text-main);
}

/* Game Types Section */
.page-lottery__game-types-section {
  background-color: var(--card-bg); /* Darker background for variety */
  padding: 80px 20px;
}

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

.page-lottery__game-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  padding-bottom: 20px;
}

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

.page-lottery__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.page-lottery__game-card .page-lottery__card-title {
  font-size: 20px;
  color: var(--primary-color);
  margin: 0 20px 10px;
  font-weight: 700;
}

.page-lottery__game-card p {
  font-size: 16px;
  color: var(--text-main);
  margin: 0 20px;
}

/* Benefits Section */
.page-lottery__benefits-section {
  padding: 80px 20px;
}

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

.page-lottery__benefit-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery__benefit-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--glow-color)); /* Subtle glow for icons */
}

.page-lottery__benefit-title {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-lottery__benefit-item p {
  font-size: 16px;
  color: var(--text-main);
}

/* Guide Section */
.page-lottery__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__step-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery__step-item img {
  width: 100%;
   /* Consistent image height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-lottery__step-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-lottery__step-item p {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-lottery__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* For mobile button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-small:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Tips Section */
.page-lottery__tips-section {
  background-color: var(--card-bg);
  padding: 80px 20px;
}

.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-lottery__tips-list li {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__tips-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery__tip-title {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-lottery__tips-list li p {
  font-size: 16px;
  color: var(--text-main);
}

/* Promotions Section */
.page-lottery__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}