/* style/blog-lucky-8-beginner-guide.css */

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

/* Base styles for the page content, ensuring text color contrasts with the body background */
.page-blog-lucky-8-beginner-guide {
  color: var(--text-main); /* Main text color for dark backgrounds */
  background-color: var(--background-color); /* Page background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog-lucky-8-beginner-guide__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--background-color);
  color: var(--text-main);
  overflow: hidden; /* Ensure no overflow */
}

.page-blog-lucky-8-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px; /* Space between image and text */
}

.page-blog-lucky-8-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog-lucky-8-beginner-guide__hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog-lucky-8-beginner-guide__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-blog-lucky-8-beginner-guide__hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-lucky-8-beginner-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog-lucky-8-beginner-guide__btn-primary,
.page-blog-lucky-8-beginner-guide__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-blog-lucky-8-beginner-guide__btn-primary {
  background: var(--button-gradient); /* Custom button gradient */
  color: var(--text-main); /* White-like text for primary button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-lucky-8-beginner-guide__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-lucky-8-beginner-guide__btn-secondary {
  background: transparent;
  color: var(--glow-color); /* Glow color for secondary button text */
  border: 2px solid var(--glow-color);
}

.page-blog-lucky-8-beginner-guide__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--background-color); /* Dark text on hover */
  transform: translateY(-2px);
}

.page-blog-lucky-8-beginner-guide__section {
  padding: 60px 20px;
  background-color: var(--background-color);
  color: var(--text-main);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-blog-lucky-8-beginner-guide__content-area {
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog-lucky-8-beginner-guide__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gold-color); /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-blog-lucky-8-beginner-guide__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-main);
  text-align: justify;
}

.page-blog-lucky-8-beginner-guide__card {
  background-color: var(--card-bg); /* Card background color */
  color: var(--text-main); /* Main text color for card content */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color); /* Border color */
  box-sizing: border-box;
}

.page-blog-lucky-8-beginner-guide__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--glow-color); /* Glow color for card titles */
  margin-bottom: 15px;
}

.page-blog-lucky-8-beginner-guide__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-blog-lucky-8-beginner-guide__list-item {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  color: var(--text-main);
}

.page-blog-lucky-8-beginner-guide__list-item::before {
  content: '✓';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-blog-lucky-8-beginner-guide__list-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.page-blog-lucky-8-beginner-guide__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-blog-lucky-8-beginner-guide__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
}

.page-blog-lucky-8-beginner-guide__game-card .page-blog-lucky-8-beginner-guide__image {
  margin-top: 0;
  margin-bottom: 15px;
  max-height: 200px; /* Limit height for uniform cards */
  object-fit: contain; /* Ensure full image is visible */
}

.page-blog-lucky-8-beginner-guide__game-card .page-blog-lucky-8-beginner-guide__card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-blog-lucky-8-beginner-guide__game-card .page-blog-lucky-8-beginner-guide__paragraph {
  font-size: 0.95rem;
  flex-grow: 1;
  text-align: center;
}

.page-blog-lucky-8-beginner-guide__game-card .page-blog-lucky-8-beginner-guide__btn-secondary {
  margin-top: 20px;
  width: auto;
  align-self: center;
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* FAQ Section */
.page-blog-lucky-8-beginner-guide__faq-list {
  margin-top: 40px;
}

.page-blog-lucky-8-beginner-guide__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-blog-lucky-8-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--glow-color);
  position: relative;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-blog-lucky-8-beginner-guide__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-blog-lucky-8-beginner-guide__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-blog-lucky-8-beginner-guide__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.page-blog-lucky-8-beginner-guide__faq-item[open] .page-blog-lucky-8-beginner-guide__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-blog-lucky-8-beginner-guide__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-main);
  text-align: justify;
}

.page-blog-lucky-8-beginner-guide__faq-answer p {
  margin-bottom: 10px;
}

.page-blog-lucky-8-beginner-guide__faq-answer .page-blog-lucky-8-beginner-guide__btn-secondary {
  margin-top: 10px;
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* Call to Action Section */
.page-blog-lucky-8-beginner-guide__call-to-action {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--deep-green-color); /* Deep green background for CTA */
  color: var(--text-main);
  border-top: 1px solid var(--divider-color);
}

.page-blog-lucky-8-beginner-guide__call-to-action .page-blog-lucky-8-beginner-guide__section-title {
  color: var(--gold-color);
  margin-bottom: 25px;
}

.page-blog-lucky-8-beginner-guide__call-to-action .page-blog-lucky-8-beginner-guide__paragraph {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
}