/* style/lottery-historical-results.css */

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Base Styles */
.page-lottery-historical-results {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* #F2FFF6 */
  background-color: var(--background-color); /* #08160F */
}

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

.page-lottery-historical-results__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main-color); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-lottery-historical-results__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* #11A84E to #22C768 */
  border-radius: 2px;
}

.page-lottery-historical-results__text-block {
  font-size: 1.1em;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 20px;
  text-align: center;
}

/* Hero Section */
.page-lottery-historical-results__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for visual spacing */
  overflow: hidden;
  box-sizing: border-box;
}

.page-lottery-historical-results__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-lottery-historical-results__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-lottery-historical-results__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-lottery-historical-results__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  font-weight: 900;
  color: var(--text-main-color); /* #F2FFF6 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery-historical-results__description {
  font-size: 1.2em;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 30px;
}

/* CTA Button */
.page-lottery-historical-results__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery-historical-results__cta-button--primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-lottery-historical-results__cta-button--primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-lottery-historical-results__cta-button--secondary {
  background: transparent;
  color: var(--primary-color); /* #11A84E */
  border: 2px solid var(--primary-color); /* #11A84E */
}

.page-lottery-historical-results__cta-button--secondary:hover {
  background: var(--primary-color); /* #11A84E */
  color: #ffffff;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-lottery-historical-results__introduction-section {
  padding: 60px 0;
  text-align: center;
}

.page-lottery-historical-results__introduction-section .page-lottery-historical-results__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-historical-results__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  max-width: 800px; /* Ensure content images are not too wide */
}

/* How-to Lookup Section */
.page-lottery-historical-results__how-to-lookup-section {
  padding: 60px 0;
  background-color: var(--card-bg-color); /* #11271B */
}

.page-lottery-historical-results__step-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-lottery-historical-results__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color); /* #2E7A4E */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  font-size: 1.1em;
  color: var(--text-main-color); /* #F2FFF6 */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-lottery-historical-results__list-item strong {
  color: var(--gold-color); /* #F2C14E */
}

.page-lottery-historical-results__sub-list {
  list-style: disc;
  margin-top: 10px;
  margin-left: 25px;
  color: var(--text-secondary-color); /* #A7D9B8 */
}

.page-lottery-historical-results__sub-list-item {
  margin-bottom: 5px;
}

/* Lottery Types Section */
.page-lottery-historical-results__lottery-types-section {
  padding: 60px 0;
  background-color: var(--deep-green-color); /* #0A4B2C */
}

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

.page-lottery-historical-results__card {
  background-color: var(--card-bg-color); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery-historical-results__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.page-lottery-historical-results__card-title {
  font-size: 1.8em;
  color: var(--text-main-color); /* #F2FFF6 */
  margin-bottom: 15px;
}

.page-lottery-historical-results__card-text {
  font-size: 1em;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery-historical-results__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

/* Analysis Section */
.page-lottery-historical-results__analysis-section {
  padding: 60px 0;
  text-align: center;
}

.page-lottery-historical-results__analysis-section .page-lottery-historical-results__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-historical-results__analysis-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-lottery-historical-results__analysis-list .page-lottery-historical-results__list-item {
  background-color: rgba(34, 199, 104, 0.1);
  border-left: 5px solid var(--primary-color); /* #11A84E */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-main-color); /* #F2FFF6 */
}

/* Why mv67 Section */
.page-lottery-historical-results__why-mv67-section {
  padding: 60px 0;
  background-color: var(--card-bg-color); /* #11271B */
}

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

.page-lottery-historical-results__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--divider-color); /* #1E3A2A */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

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

.page-lottery-historical-results__feature-title {
  font-size: 1.5em;
  color: var(--gold-color); /* #F2C14E */
  margin-bottom: 10px;
}

.page-lottery-historical-results__feature-text {
  font-size: 1em;
  color: var(--text-secondary-color); /* #A7D9B8 */
}

/* FAQ Section */
.page-lottery-historical-results__faq-section {
  padding: 60px 0;
  text-align: center;
}

.page-lottery-historical-results__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-lottery-historical-results__faq-item {
  background-color: var(--card-bg-color); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.page-lottery-historical-results__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main-color); /* #F2FFF6 */
  cursor: pointer;
  background-color: rgba(34, 199, 104, 0.1);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-lottery-historical-results__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.2);
}

.page-lottery-historical-results__faq-qtext {
  flex-grow: 1;
}

.page-lottery-historical-results__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color); /* #F2C14E */
  margin-left: 15px;
}

.page-lottery-historical-results__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary-color); /* #A7D9B8 */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-lottery-historical-results__faq-item[open] .page-lottery-historical-results__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 15px;
}

/* Hide default details marker */
.page-lottery-historical-results__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-lottery-historical-results__faq-item summary {
  list-style: none;
}

.page-lottery-historical-results__faq-answer p {
  margin-bottom: 0;
}

.page-lottery-historical-results__faq-answer a {
  color: var(--secondary-color); /* #22C768 */
  text-decoration: underline;
}

.page-lottery-historical-results__faq-answer a:hover {
  color: var(--glow-color); /* #57E38D */
}

/* CTA Section */
.page-lottery-historical-results__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--deep-green-color); /* #0A4B2C */
}

.page-lottery-historical-results__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery-historical-results__section-title {
    font-size: 2em;
  }
  .page-lottery-historical-results__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-lottery-historical-results__description {
    font-size: 1.1em;
  }
  .page-lottery-historical-results__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-lottery-historical-results__container,
  .page-lottery-historical-results__hero-section,
  .page-lottery-historical-results__introduction-section,
  .page-lottery-historical-results__how-to-lookup-section,
  .page-lottery-historical-results__lottery-types-section,
  .page-lottery-historical-results__analysis-section,
  .page-lottery-historical-results__why-mv67-section,
  .page-lottery-historical-results__faq-section,
  .page-lottery-historical-results__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-lottery-historical-results__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    padding-bottom: 40px !important;
  }

  .page-lottery-historical-results__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-lottery-historical-results__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-lottery-historical-results__text-block,
  .page-lottery-historical-results__description,
  .page-lottery-historical-results__list-item,
  .page-lottery-historical-results__card-text,
  .page-lottery-historical-results__feature-text,
  .page-lottery-historical-results__faq-answer p {
    font-size: 1em !important;
    text-align: left !important;
  }

  /* Images responsive */
  .page-lottery-historical-results img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
  }

  /* Cards grid responsive */
  .page-lottery-historical-results__card-grid,
  .page-lottery-historical-results__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery-historical-results__card,
  .page-lottery-historical-results__feature-card {
    padding: 20px;
  }

  /* Buttons responsive */
  .page-lottery-historical-results__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-lottery-historical-results__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-lottery-historical-results__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-lottery-historical-results__faq-toggle {
    font-size: 1.3em;
  }

  .page-lottery-historical-results__hero-image-wrapper {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .page-lottery-historical-results__section-title {
    font-size: 1.5em;
  }
  .page-lottery-historical-results__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-lottery-historical-results__description {
    font-size: 0.95em;
  }
}