:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background-dark: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --header-offset: 120px; /* Default for desktop, adjusted by shared.css media queries */
}

/* Base styles for the page content */
.page-promo-daily-cashback {
  background-color: var(--background-dark); /* From custom colors */
  color: var(--text-main); /* Text Main from custom colors */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promo-daily-cashback h1,
.page-promo-daily-cashback h2,
.page-promo-daily-cashback h3 {
  color: var(--text-main); /* Ensure titles are visible on dark background */
  margin-bottom: 15px;
}

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

/* Hero Section */
.page-promo-daily-cashback__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  padding-bottom: 50px;
  overflow: hidden; /* Prevent content overflow */
}

.page-promo-daily-cashback__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and text */
}

.page-promo-daily-cashback__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
}

.page-promo-daily-cashback__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
}

.page-promo-daily-cashback__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px;
  color: var(--text-main);
}

/* CTA Buttons */
.page-promo-daily-cashback__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 600px; /* Constrain button group width */
  box-sizing: border-box;
}

.page-promo-daily-cashback__btn-primary,
.page-promo-daily-cashback__btn-secondary {
  display: inline-flex; /* Use inline-flex for button content alignment */
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.page-promo-daily-cashback__btn-primary {
  background: var(--button-gradient); /* Custom button gradient */
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

.page-promo-daily-cashback__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-promo-daily-cashback__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-promo-daily-cashback__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--background-dark);
  box-shadow: 0 0 15px var(--glow-color);
}

/* Info Section */
.page-promo-daily-cashback__info-section {
  padding: 50px 0;
  text-align: center;
  background-color: var(--background-dark);
}

.page-promo-daily-cashback__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.page-promo-daily-cashback__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-promo-daily-cashback__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color); /* Use primary color for sub-titles */
}

.page-promo-daily-cashback__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main);
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo-daily-cashback__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo-daily-cashback__list li {
  background-color: var(--card-bg); /* Card BG from custom colors */
  color: var(--text-main); /* Text Main from custom colors */
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color); /* Border color from custom colors */
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.page-promo-daily-cashback__list li strong {
  color: var(--primary-color);
  margin-right: 8px;
}

/* Expandable Content */
.page-promo-daily-cashback__expandable-content {
  max-height: 0; /* Default: collapsed */
  overflow: hidden;
  transition: max-height 0.7s ease-out;
  padding-bottom: 0;
}

.page-promo-daily-cashback__expandable-content.expanded {
  max-height: 2000px; /* Sufficiently large to show all content */
  padding-bottom: 20px;
}

.page-promo-daily-cashback__load-less-btn {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 20px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-promo-daily-cashback__load-less-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px var(--glow-color);
}

.page-promo-daily-cashback__load-less-icon {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #ffffff;
  transition: transform 0.3s ease;
  transform: rotate(180deg); /* Initial state: pointing down for 'Load more' */
}

.page-promo-daily-cashback__expandable-content.expanded + .page-promo-daily-cashback__load-less-btn .page-promo-daily-cashback__load-less-icon {
  transform: rotate(0deg); /* Point up for 'Load less' */
}

/* Game Categories */
.page-promo-daily-cashback__game-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-promo-daily-cashback__category-card {
  background-color: var(--card-bg); /* Card BG from custom colors */
  border: 1px solid var(--border-color); /* Border color from custom colors */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 150px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-main);
}

.page-promo-daily-cashback__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
}

.page-promo-daily-cashback__category-icon {
  width: 30px; /* Allowed small icon size */
  height: 30px; /* Allowed small icon size */
  margin-bottom: 10px;
  display: inline-block; /* Ensure it's centered */
  filter: drop-shadow(0 0 5px var(--glow-color)); /* Add a subtle glow for icons */
}

.page-promo-daily-cashback__category-name {
  display: block;
  font-weight: bold;
  font-size: 1rem;
  color: var(--text-main);
}


/* Dark Section */
.page-promo-daily-cashback__dark-section {
  background-color: var(--primary-color); /* Use primary color as background for dark section */
  color: #ffffff; /* White text for contrast */
  padding: 60px 0;
  text-align: center;
}

.page-promo-daily-cashback__dark-section .page-promo-daily-cashback__section-title {
  color: #ffffff; /* Ensure title is white */
}

.page-promo-daily-cashback__dark-section .page-promo-daily-cashback__section-title::after {
  background-color: #ffffff; /* White underline for dark section title */
}

.page-promo-daily-cashback__dark-section .page-promo-daily-cashback__text-block {
  color: #ffffff; /* Ensure text is white */
}

.page-promo-daily-cashback__dark-section .page-promo-daily-cashback__btn-secondary {
  border-color: #ffffff; /* White border for secondary button on dark section */
  color: #ffffff; /* White text for secondary button */
}

.page-promo-daily-cashback__dark-section .page-promo-daily-cashback__btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-color); /* Primary color text on hover */
}

/* FAQ Section */
.page-promo-daily-cashback__faq-section {
  padding: 50px 0;
  background-color: var(--background-dark);
  text-align: center;
}

.page-promo-daily-cashback__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo-daily-cashback__faq-item {
  background-color: var(--card-bg); /* Card BG from custom colors */
  border: 1px solid var(--border-color); /* Border color from custom colors */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-promo-daily-cashback__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main);
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
}

.page-promo-daily-cashback__faq-question:hover {
  background-color: rgba(var(--primary-color), 0.1); /* Subtle hover effect */
}

.page-promo-daily-cashback__faq-question h3 {
  margin: 0;
  color: var(--text-main);
  text-align: left;
  flex-grow: 1;
}

.page-promo-daily-cashback__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.page-promo-daily-cashback__faq-item.active .page-promo-daily-cashback__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.page-promo-daily-cashback__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  text-align: left;
  color: var(--text-main);
}

.page-promo-daily-cashback__faq-item.active .page-promo-daily-cashback__faq-answer {
  max-height: 1000px !important; /* Important for expansion */
  padding: 15px 20px;
}

.page-promo-daily-cashback__faq-answer p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
}

/* Partner Section */
.page-promo-daily-cashback__partner-section {
  padding: 50px 0;
  background-color: var(--background-dark);
  text-align: center;
}

.page-promo-daily-cashback__partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-promo-daily-cashback__partner-logo {
  width: 167px; /* Fixed width for partner logos */
  height: 127px; /* Fixed height for partner logos */
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5); /* Desaturate and lighten for dark background */
  transition: filter 0.3s ease;
}

.page-promo-daily-cashback__partner-logo:hover {
  filter: grayscale(0%) brightness(1) drop-shadow(0 0 10px var(--glow-color)); /* Colorize and glow on hover */
}


/* Responsive Design */
@media (max-width: 768px) {
  .page-promo-daily-cashback {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promo-daily-cashback__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
    padding-bottom: 30px;
  }
  
  .page-promo-daily-cashback__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-promo-daily-cashback__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promo-daily-cashback__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-promo-daily-cashback__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-promo-daily-cashback__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-promo-daily-cashback__btn-primary,
  .page-promo-daily-cashback__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promo-daily-cashback__info-section,
  .page-promo-daily-cashback__dark-section,
  .page-promo-daily-cashback__faq-section,
  .page-promo-daily-cashback__partner-section {
    padding: 30px 0;
  }

  .page-promo-daily-cashback__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promo-daily-cashback__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-promo-daily-cashback__sub-title {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-promo-daily-cashback__text-block,
  .page-promo-daily-cashback__list li,
  .page-promo-daily-cashback__faq-question,
  .page-promo-daily-cashback__faq-answer p {
    font-size: 0.95rem;
  }

  .page-promo-daily-cashback__game-categories {
    flex-direction: row; /* Keep row for categories, allow wrap */
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .page-promo-daily-cashback__category-card {
    width: calc(50% - 10px); /* Two cards per row */
    padding: 15px;
  }

  /* Ensure all images are responsive in mobile */
  .page-promo-daily-cashback img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Specific override for small icons if they are too large from above rule */
  .page-promo-daily-cashback__category-icon {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
  }
  .page-promo-daily-cashback__partner-logo {
    width: 120px !important; /* Adjust partner logo size for mobile */
    height: auto !important;
    max-width: 120px !important;
  }

  .page-promo-daily-cashback__faq-question,
  .page-promo-daily-cashback__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promo-daily-cashback__category-card {
    width: 100%; /* One card per row on very small screens */
  }
}