/* style/lottery.css */

/* Base styles for the lottery page */
.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0d0d0d; /* Inherited from shared, ensuring consistency */
  padding-top: 0; /* Handled by hero banner */
}

/* Hero Banner Section */
.page-lottery__hero-banner {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-top: 120px; /* Space for fixed header */
}

.page-lottery__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
  display: block;
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 51, 102, 0.7); /* Semi-transparent brand blue */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFCC00; /* Accent color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-lottery__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* General Section Styling */
.page-lottery__section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-lottery__section:nth-of-type(even) {
  background-color: #1a1a1a;
}

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

.page-lottery__section-title {
  font-size: 2.5em;
  color: #FFCC00; /* Accent color for section titles */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-lottery__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #003366;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-lottery__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

.page-lottery__paragraph a {
  color: #FFCC00; /* Link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__paragraph a:hover {
  color: #ffd700; /* Lighter gold on hover */
  text-decoration: underline;
}

.page-lottery__paragraph--center {
  text-align: center;
  margin-top: 40px;
}

/* Buttons */
.page-lottery__btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.page-lottery__btn--primary {
  background-color: #FFCC00;
  color: #003366;
  border-color: #FFCC00;
}

.page-lottery__btn--primary:hover {
  background-color: #ffd700;
  border-color: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-lottery__btn--secondary {
  background-color: #003366;
  color: #ffffff;
  border-color: #003366;
}

.page-lottery__btn--secondary:hover {
  background-color: #004488;
  border-color: #004488;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-lottery__btn--small {
  padding: 10px 20px;
  font-size: 1em;
}

/* Grid Layouts */
.page-lottery__grid {
  display: grid;
  gap: 30px;
}

.page-lottery__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card Styling */
.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible white tint */
  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;
  display: flex;
  flex-direction: column;
}

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

.page-lottery__card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for image consistency */
  overflow: hidden;
}

.page-lottery__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-lottery__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__card-title {
  font-size: 1.4em;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-lottery__card-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 20px;
}

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

.page-lottery__advantage-item {
  background-color: rgba(0, 51, 102, 0.7); /* Dark blue with transparency */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-lottery__advantage-item:hover {
  transform: translateY(-8px);
  background-color: #004488;
}

.page-lottery__advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: #FFCC00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-lottery__advantage-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.page-lottery__advantage-title {
  font-size: 1.3em;
  color: #FFCC00;
  margin-bottom: 10px;
}

.page-lottery__advantage-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

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

.page-lottery__guide-step:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-lottery__guide-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  background-color: #003366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-lottery__guide-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.page-lottery__guide-title {
  font-size: 1.4em;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-lottery__guide-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

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

.page-lottery__promo-card {
  background-color: rgba(0, 51, 102, 0.7);
  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;
  display: flex;
  flex-direction: column;
}

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

.page-lottery__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-lottery__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__promo-title {
  font-size: 1.5em;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-lottery__promo-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 40px;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #003366; /* Dark blue background for question */
  border: 1px solid #004488;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background-color: #004488;
  border-color: #0055aa;
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for question */
  pointer-events: none;
}

.page-lottery__faq-question h3 a {
  color: #ffffff;
  text-decoration: none;
}

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00; /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-lottery__faq-item.active .page-lottery__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
  color: #FFCC00;
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  color: #f0f0f0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to show all content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-lottery__blog-card {
  background-color: rgba(255, 255, 255, 0.08);
  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;
  display: flex;
  flex-direction: column;
}

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

.page-lottery__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-lottery__blog-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__blog-title {
  font-size: 1.3em;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-lottery__blog-title a {
  color: #FFCC00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__blog-title a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.page-lottery__blog-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-lottery__readmore {
  display: inline-block;
  color: #FFCC00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-lottery__readmore:hover {
  color: #ffd700;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 2.5em;
  }
  .page-lottery__hero-description {
    font-size: 1.1em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
  .page-lottery__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-lottery__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-lottery__advantages-grid, .page-lottery__guide-steps, .page-lottery__promo-grid, .page-lottery__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-banner {
    min-height: 400px;
    padding-top: 100px; /* Adjust for mobile fixed header */
  }
  .page-lottery__hero-content {
    max-width: 95%;
    padding: 15px;
  }
  .page-lottery__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-lottery__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-lottery__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn {
    width: 100%;
    padding: 12px 20px;
  }
  .page-lottery__section {
    padding: 50px 0;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-lottery__paragraph {
    font-size: 1em;
  }
  .page-lottery__grid--3-cols {
    grid-template-columns: 1fr;
  }
  .page-lottery__card-image-wrapper {
    height: 180px;
  }
  .page-lottery__card-content, .page-lottery__promo-content, .page-lottery__blog-content {
    padding: 20px;
  }
  .page-lottery__card-title, .page-lottery__promo-title, .page-lottery__blog-title {
    font-size: 1.2em;
  }
  .page-lottery__advantages-grid, .page-lottery__guide-steps, .page-lottery__promo-grid, .page-lottery__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__advantage-icon, .page-lottery__guide-icon {
    width: 70px;
    height: 70px;
  }
  .page-lottery__advantage-icon img, .page-lottery__guide-icon img {
    width: 50px;
    height: 50px;
  }
  .page-lottery__faq-question {
    padding: 15px 20px;
  }
  .page-lottery__faq-question h3 {
    font-size: 1.1em;
  }
  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-lottery__faq-answer {
    padding: 0 20px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }
  /* Mobile image specific rules */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-banner,
  .page-lottery__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__hero-banner {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 1.8em;
  }
  .page-lottery__hero-description {
    font-size: 0.9em;
  }
  .page-lottery__section-title {
    font-size: 1.6em;
  }
  .page-lottery__btn {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}