:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;

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

/* style/blog.css */

/* --- Base Styles & Variables --- */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background); /* Default background color for the page */
}

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

.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-blog__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main); /* Text Main for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(19, 153, 74, 0.4);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(19, 153, 74, 0.6);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--text-main); /* Text Main for secondary button */
  border: 2px solid var(--border);
}

.page-blog__btn-secondary:hover {
  background: var(--border);
  color: var(--text-main);
  transform: translateY(-2px);
}

.page-blog__button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--background); /* Ensure hero section has a background */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the wrapper while maintaining aspect ratio */
}

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-blog__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* --- About ebet4 Section --- */
.page-blog__about-ebet4 {
  background-color: var(--card-bg); /* Darker background for contrast */
  padding: 80px 0;
}
.page-blog__about-ebet4 .page-blog__section-title {
  color: var(--text-main);
}
.page-blog__about-ebet4 .page-blog__text-block {
  color: var(--text-secondary);
}

/* --- Latest News Section --- */
.page-blog__latest-news {
  background-color: var(--background);
}

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

.page-blog__news-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards are same height */
}

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

.page-blog__news-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__card-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to expand */
  display: flex;
  flex-direction: column;
}

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main);
  flex-grow: 1; /* Make title take available space */
}

.page-blog__card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: var(--glow); /* Highlight on hover */
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* --- Promotions Section --- */
.page-blog__promotions {
  background-color: var(--card-bg);
  padding: 80px 0;
}
.page-blog__promotions .page-blog__section-title {
  color: var(--text-main);
}

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

.page-blog__promo-card {
  background-color: var(--background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__promo-image {
  width: 100%;
  height: 337px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

/* --- Why Choose Us Section --- */
.page-blog__why-choose-us {
  background-color: var(--background);
}

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

.page-blog__feature-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease;
  height: 100%;
}

.page-blog__feature-item:hover {
  transform: translateY(-5px);
}

.page-blog__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 15px;
}

/* --- FAQ Section --- */
.page-blog__faq {
  background-color: var(--card-bg);
  padding: 80px 0;
}
.page-blog__faq .page-blog__section-title {
  color: var(--text-main);
}

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

.page-blog__faq-item {
  background-color: var(--background);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green); /* Darker background for question */
  border-bottom: 1px solid var(--divider);
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: var(--divider);
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow);
}

/* For details tag */
.page-blog__faq-item[open] .page-blog__faq-question {
    border-bottom: 1px solid var(--divider);
}
.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: '−';
}
.page-blog__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-blog__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  background-color: var(--background);
}

.page-blog__faq-answer p:last-child {
  margin-bottom: 0;
}


/* --- Bottom CTA Section --- */
.page-blog__cta-bottom {
  background-color: var(--deep-green); /* Use a brand color for CTA */
  padding: 80px 0;
}

.page-blog__cta-container {
  max-width: 800px;
}

.page-blog__cta-bottom .page-blog__section-title {
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-blog__cta-bottom .page-blog__text-block {
  color: var(--text-secondary);
  margin-bottom: 40px;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__hero-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__news-card,
  .page-blog__promo-card,
  .page-blog__feature-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific fix for hero-section padding-top */
  .page-blog__hero-section {
    padding-top: 10px !important; /* body has --header-offset, this is for visual spacing */
  }

  /* Mobile button responsiveness */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    /* No additional horizontal padding here as the container already handles it */
  }
  
  .page-blog__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important; /* Adjust gap for stacked buttons */
    padding-left: 15px; /* Apply padding to the group itself */
    padding-right: 15px;
  }

  .page-blog__news-grid,
  .page-blog__promo-grid,
  .page-blog__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__news-image,
  .page-blog__promo-image {
    height: auto !important; /* Allow height to adjust automatically */
    max-height: 250px !important; /* Cap max height for mobile images */
  }

  .page-blog__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 15px 20px;
  }
}

/* No filter property to change image colors */
.page-blog img {
    filter: none;
}