/* style/lottery.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #B22222; /* Deep Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000; /* Body background from shared.css */
  --background-light: #f5f5f5;
  --border-color: #e0e0e0;
  --header-offset: 120px; /* Default value, will be overridden by shared.css */
}

/* Base styles for the lottery page content */
.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Ensure consistency */
}

.page-lottery a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.page-lottery a:hover {
  color: var(--secondary-color);
}

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

.page-lottery__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-lottery__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-light); /* Default for dark background */
}

/* Buttons */
.page-lottery__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-lottery__cta-buttons--center {
  margin-top: 40px;
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-lottery__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-lottery__btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  border-color: #e6c200;
}

.page-lottery__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-lottery__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--background-dark); /* Dark text on gold hover */
}

/* --- Hero Section --- */
.page-lottery__hero-section {
  position: relative;
  padding-top: 0; /* shared.css should handle body padding-top */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
  overflow: hidden;
}

.page-lottery__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.page-lottery__hero-content {
  flex: 1;
  padding-right: 40px;
  text-align: left;
}

.page-lottery__main-title {
  font-size: 52px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-lottery__main-description {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-lottery__hero-image-wrapper {
  flex: 1;
  text-align: right;
  position: relative;
}

.page-lottery__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Introduction Section --- */
.page-lottery__introduction-section {
  background-color: var(--background-light); /* Light background for contrast */
  color: var(--text-dark);
}

.page-lottery__introduction-section .page-lottery__text-block {
  color: var(--text-dark); /* Ensure dark text on light background */
}

/* --- Types Section --- */
.page-lottery__types-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-lottery__type-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery__type-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

.page-lottery__type-description {
  font-size: 16px;
  color: var(--text-light);
}

/* --- Guide Section --- */
.page-lottery__guide-section {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-lottery__guide-section .page-lottery__text-block {
  color: var(--text-dark);
}

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

.page-lottery__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery__step-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

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

/* --- Promotions Section --- */
.page-lottery__promotions-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-lottery__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery__promo-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

.page-lottery__promo-description {
  font-size: 16px;
  color: var(--text-light);
}

/* --- Features Section --- */
.page-lottery__features-section {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-lottery__features-section .page-lottery__text-block {
  color: var(--text-dark);
}

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

.page-lottery__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}