/* style/lottery.css */

/* Variables from shared.css assumed to be available */
:root {
  --primary-color: #1A2E4E; /* Dark blue/purple */
  --secondary-color: #FFD700; /* Gold/Bright orange */
  --text-light: #ffffff;
  --text-dark: #333333;
  --dark-bg-1: #0d0d0d; /* Assuming a dark background for body */
  --light-bg-1: #f8f8f8;
}

.page-lottery {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from body */
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  min-height: 100vh; /* Ensure content pushes footer down */
}

/* Container for consistent content width */
.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Styling */
.page-lottery__hero-section,
.page-lottery__introduction-section,
.page-lottery__types-section,
.page-lottery__guide-section,
.page-lottery__advantages-section,
.page-lottery__tips-section,
.page-lottery__faq-section,
.page-lottery__final-cta-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-lottery__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a4a6b 100%);
  padding-top: 10px; /* Adjust for fixed header */
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
}

.page-lottery__hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-lottery__hero-text {
  flex: 1;
}

.page-lottery__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-lottery__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color); /* Use secondary color for emphasis */
}

.page-lottery__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  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(--secondary-color);
  border-radius: 2px;
}

.page-lottery__section-description {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #cccccc;
}

/* CTA Buttons */
.page-lottery__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure text wraps within button */
}

.page-lottery__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

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

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

.page-lottery__cta-button--secondary:hover {
  background: #3a4a6b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-lottery__introduction-section {
  background-color: #15253d; /* Slightly lighter than body bg */
  color: var(--text-light);
}

.page-lottery__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-lottery__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image has some base width */
}

.page-lottery__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__text-content {
  flex: 2;
  font-size: 17px;
  line-height: 1.7;
}

.page-lottery__text-content p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-lottery__text-content a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-lottery__text-content a:hover {
  color: #e6b800;
}

/* Types Section - Grid Layout */
.page-lottery__types-section {
  background-color: var(--dark-bg-1);
}

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

.page-lottery__card {
  background: #1e3a5f; /* Darker card background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #2a4c7a; /* Subtle border for definition */
}

.page-lottery__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.page-lottery__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area, crop if necessary */
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-lottery__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-lottery__card-text a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-lottery__card-text a:hover {
  color: #e6b800;
}

.page-lottery__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__card-button:hover {
  background: #e6b800;
  transform: translateY(-2px);
}

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

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

.page-lottery__step-item {
  background: #1e3a5f;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2a4c7a;
}