/* style/promotions-daily-cashback.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* --- General Styles --- */
.page-promotions-daily-cashback {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-promotions-daily-cashback__section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-promotions-daily-cashback__section:first-of-type {
    padding-top: 10px; /* Small top padding for first section */
}

.page-promotions-daily-cashback__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-promotions-daily-cashback__light-bg {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-promotions-daily-cashback__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold */
}

.page-promotions-daily-cashback__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-promotions-daily-cashback__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-promotions-daily-cashback__text-main {
    color: #F2FFF6; /* Ensure main text color on dark backgrounds */
}

.page-promotions-daily-cashback__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions-daily-cashback__btn-primary,
.page-promotions-daily-cashback__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-promotions-daily-cashback__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
}

.page-promotions-daily-cashback__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-promotions-daily-cashback__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-promotions-daily-cashback__btn-secondary:hover {
  background-color: #57E38D; /* Glow */
  color: #08160F; /* Background */
  transform: translateY(-2px);
}

.page-promotions-daily-cashback__btn-centered {
  display: block;
  margin: 40px auto 20px auto;
  max-width: 300px;
}

.page-promotions-daily-cashback a {
    color: #57E38D; /* Glow */
    text-decoration: none;
}

.page-promotions-daily-cashback a:hover {
    text-decoration: underline;
}

/* --- Hero Section --- */
.page-promotions-daily-cashback__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 0; /* Remove default section padding */
  padding-top: 10px; /* Small top padding for first section */
}

.page-promotions-daily-cashback__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

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

.page-promotions-daily-cashback__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-promotions-daily-cashback__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 900;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-promotions-daily-cashback__hero-description {
  font-size: 1.3rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-daily-cashback__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Text Image Layout --- */
.page-promotions-daily-cashback__text-image-layout,
.page-promotions-daily-cashback__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-promotions-daily-cashback__text-image-layout .page-promotions-daily-cashback__image {
    order: 2;
}

.page-promotions-daily-cashback__image-text-layout .page-promotions-daily-cashback__image {
    order: 1;
}

.page-promotions-daily-cashback__text-block-wrapper,
.page-promotions-daily-cashback__numbered-list {
    flex: 1;
}

.page-promotions-daily-cashback__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

/* --- Lists --- */
.page-promotions-daily-cashback__numbered-list,
.page-promotions-daily-cashback__bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-promotions-daily-cashback__list-item {
  margin-bottom: 25px;
  padding-left: 30px;
  position: relative;
}

.page-promotions-daily-cashback__numbered-list .page-promotions-daily-cashback__list-item::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  font-size: 1.5rem;
  line-height: 1;
}

.page-promotions-daily-cashback__bullet-list .page-promotions-daily-cashback__list-item::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  font-size: 1.5rem;
  line-height: 1;
}

.page-promotions-daily-cashback__list-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #57E38D; /* Glow */
}

/* --- Benefits Grid --- */
.page-promotions-daily-cashback__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions-daily-cashback__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

.page-promotions-daily-cashback__card-dark {
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
}

.page-promotions-daily-cashback__card-icon {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: contain; /* Ensure icon fits */
}

.page-promotions-daily-cashback__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-promotions-daily-cashback__card-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

/* --- Games Grid --- */
.page-promotions-daily-cashback__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions-daily-cashback__game-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

.page-promotions-daily-cashback__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-promotions-daily-cashback__game-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E; /* Gold */
}

.page-promotions-daily-cashback__game-title a {
    color: #F2C14E; /* Gold */
    text-decoration: none;
}

.page-promotions-daily-cashback__game-title a:hover {
    text-decoration: underline;
}

.page-promotions-daily-cashback__game-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-promotions-daily-cashback__game-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #11A84E; /* Main Color */
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-promotions-daily-cashback__game-link:hover {
  background-color: #22C768; /* Auxiliary Color */
}

/* --- FAQ Section --- */
.page-promotions-daily-cashback__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-promotions-daily-cashback__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions-daily-cashback__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  border-bottom: 1px solid #2E7A4E; /* Border */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-promotions-daily-cashback__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions-daily-cashback__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-promotions-daily-cashback__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #57E38D; /* Glow */
}

.page-promotions-daily-cashback__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Style for <details> tag native open state */
.page-promotions-daily-cashback__faq-item[open] .page-promotions-daily-cashback__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
  padding-top: 15px;
}

/* Style for JS controlled active state (if using div structure) */
.page-promotions-daily-cashback__faq-item.active .page-promotions-daily-cashback__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    padding-top: 15px;
}


/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .page-promotions-daily-cashback__hero-content {
    padding: 30px 15px;
  }

  .page-promotions-daily-cashback__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .page-promotions-daily-cashback__hero-description {
    font-size: 1.1rem;
  }

  .page-promotions-daily-cashback__section-title {
    font-size: 2rem;
  }

  .page-promotions-daily-cashback__text-image-layout,
  .page-promotions-daily-cashback__image-text-layout {
      flex-direction: column;
      gap: 30px;
  }

  .page-promotions-daily-cashback__text-image-layout .page-promotions-daily-cashback__image,
  .page-promotions-daily-cashback__image-text-layout .page-promotions-daily-cashback__image {
      order: unset; /* Reset order for mobile */
  }

  .page-promotions-daily-cashback__benefits-grid,
  .page-promotions-daily-cashback__games-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions-daily-cashback__section {
    padding: 40px 15px;
  }

  .page-promotions-daily-cashback__section:first-of-type {
      padding-top: 10px !important; /* body already handles header offset */
  }

  .page-promotions-daily-cashback__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-promotions-daily-cashback__hero-description {
    font-size: 1rem;
  }

  .page-promotions-daily-cashback__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-promotions-daily-cashback__btn-primary,
  .page-promotions-daily-cashback__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions-daily-cashback__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-promotions-daily-cashback__sub-title {
    font-size: 1.5rem;
  }

  .page-promotions-daily-cashback__text-block {
    font-size: 1rem;
  }

  /* Mobile image responsiveness */
  .page-promotions-daily-cashback img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions-daily-cashback__section,
  .page-promotions-daily-cashback__card,
  .page-promotions-daily-cashback__container,
  .page-promotions-daily-cashback__game-card,
  .page-promotions-daily-cashback__hero-content,
  .page-promotions-daily-cashback__text-block-wrapper,
  .page-promotions-daily-cashback__numbered-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-promotions-daily-cashback__hero-section {
    min-height: 400px;
  }
  .page-promotions-daily-cashback__hero-content {
      padding: 20px 15px;
  }

  .page-promotions-daily-cashback__card-icon {
      width: 200px;
      height: 200px;
      min-width: 200px; /* Adjusted min size for mobile card icons */
      min-height: 200px;
  }
}

/* Ensure no CSS filter on images */
.page-promotions-daily-cashback img:not(.page-promotions-daily-cashback__hero-image) {
    filter: none !important;
}

/* Ensure contrast */
.page-promotions-daily-cashback p,
.page-promotions-daily-cashback li,
.page-promotions-daily-cashback__text-block,
.page-promotions-daily-cashback__card-description,
.page-promotions-daily-cashback__game-description,
.page-promotions-daily-cashback__faq-answer p {
  color: #A7D9B8; /* Text Secondary - good contrast on #08160F and #11271B */
}

.page-promotions-daily-cashback h1,
.page-promotions-daily-cashback h2,
.page-promotions-daily-cashback h3,
.page-promotions-daily-cashback h4,
.page-promotions-daily-cashback h5,
.page-promotions-daily-cashback h6,
.page-promotions-daily-cashback__main-title,
.page-promotions-daily-cashback__section-title,
.page-promotions-daily-cashback__sub-title,
.page-promotions-daily-cashback__list-title,
.page-promotions-daily-cashback__card-title,
.page-promotions-daily-cashback__game-title,
.page-promotions-daily-cashback__faq-question {
  color: #F2FFF6; /* Text Main */
}

.page-promotions-daily-cashback__hero-section .page-promotions-daily-cashback__main-title,
.page-promotions-daily-cashback__section-title {
    color: #F2C14E; /* Gold for main titles */
}

.page-promotions-daily-cashback__game-title a {
    color: #F2C14E; /* Gold for game title links */
}

.page-promotions-daily-cashback__btn-primary {
    color: #ffffff; /* White text on gradient button */
}
.page-promotions-daily-cashback__btn-secondary {
    color: #57E38D; /* Glow color for secondary button text */
}