/* style/promotions-daily-rebate.css */

/* Variables */
:root {
  --lb555-primary-color: #26A9E0;
  --lb555-secondary-color: #FFFFFF;
  --lb555-login-color: #EA7C07;
  --lb555-dark-text: #333333;
  --lb555-light-text: #ffffff;
  --lb555-background-light: #f8f8f8; /* Adjusted for better contrast on body if shared.css is dark */
  --lb555-background-dark: #1a1a1a; /* Assuming a dark body background from shared.css */
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-promotions-daily-rebate {
  color: var(--lb555-light-text); /* Default text color for the main content area */
  background-color: var(--lb555-background-dark); /* Fallback, but body background is from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-promotions-daily-rebate__section {
  padding: 60px 0;
}

.page-promotions-daily-rebate__light-bg {
  background-color: var(--lb555-background-light);
  color: var(--lb555-dark-text);
}

.page-promotions-daily-rebate__dark-bg {
  background-color: var(--lb555-primary-color); /* Using primary color as a dark background for sections */
  color: var(--lb555-light-text);
}

.page-promotions-daily-rebate__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-promotions-daily-rebate__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-promotions-daily-rebate__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-promotions-daily-rebate__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--lb555-light-text);
}

.page-promotions-daily-rebate__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--lb555-light-text);
}

.page-promotions-daily-rebate__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section background */
}

.page-promotions-daily-rebate__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions-daily-rebate__text-block--center {
  text-align: center;
}

.page-promotions-daily-rebate__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-promotions-daily-rebate__cta-buttons--center {
  text-align: center;
}

.page-promotions-daily-rebate__btn-primary,
.page-promotions-daily-rebate__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-promotions-daily-rebate__btn-primary {
  background-color: var(--lb555-primary-color);
  color: var(--lb555-light-text);
  border: 2px solid var(--lb555-primary-color);
}

.page-promotions-daily-rebate__btn-primary:hover {
  background-color: darken(var(--lb555-primary-color), 10%); /* Placeholder for darken function */
  border-color: darken(var(--lb555-primary-color), 10%);
}

.page-promotions-daily-rebate__btn-secondary {
  background-color: transparent;
  color: var(--lb555-light-text);
  border: 2px solid var(--lb555-light-text);
}

.page-promotions-daily-rebate__btn-secondary:hover {
  background-color: var(--lb555-light-text);
  color: var(--lb555-primary-color);
}

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

.page-promotions-daily-rebate__card {
  background-color: var(--lb555-secondary-color);
  color: var(--lb555-dark-text);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-promotions-daily-rebate__card--transparent {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--lb555-light-text);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions-daily-rebate__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: inherit;
}

.page-promotions-daily-rebate__card-text {
  font-size: 1em;
  color: inherit;
  flex-grow: 1;
}

.page-promotions-daily-rebate__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-promotions-daily-rebate__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions-daily-rebate__list-item {
  background-color: var(--lb555-secondary-color);
  color: var(--lb555-dark-text);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions-daily-rebate__list-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--lb555-primary-color);
}

.page-promotions-daily-rebate__list-text {
  font-size: 1em;
  color: var(--lb555-dark-text);
}

.page-promotions-daily-rebate__list-text a {
  color: var(--lb555-primary-color);
  text-decoration: underline;
}

.page-promotions-daily-rebate__terms-list {
  list-style: disc inside;
  padding-left: 20px;
  font-size: 1.1em;
  color: inherit;
}

.page-promotions-daily-rebate__terms-list .page-promotions-daily-rebate__list-item {
  background: none;
  box-shadow: none;
  padding: 5px 0;
  margin-bottom: 10px;
  color: inherit;
}

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

.page-promotions-daily-rebate__feature-item {
  padding: 25px;
  background-color: var(--lb555-secondary-color);
  color: var(--lb555-dark-text);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-promotions-daily-rebate__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions-daily-rebate__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--lb555-primary-color);
}

.page-promotions-daily-rebate__feature-text {
  font-size: 1em;
  color: var(--lb555-dark-text);
}

.page-promotions-daily-rebate__faq-list {
  margin-top: 40px;
}

.page-promotions-daily-rebate__faq-item {
  background-color: var(--lb555-secondary-color);
  color: var(--lb555-dark-text);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions-daily-rebate__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--lb555-dark-text);
  list-style: none; /* For details/summary */
}

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

.page-promotions-daily-rebate__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--lb555-primary-color);
}

.page-promotions-daily-rebate__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--lb555-dark-text);
  line-height: 1.6;
}

/* Ensure images are responsive */
.page-promotions-daily-rebate img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-promotions-daily-rebate {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions-daily-rebate__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-promotions-daily-rebate__hero-content {
    padding: 15px;
  }

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

  .page-promotions-daily-rebate__description {
    font-size: 1em;
  }

  .page-promotions-daily-rebate__section-title {
    font-size: 1.8em;
  }

  .page-promotions-daily-rebate__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-promotions-daily-rebate__btn-primary,
  .page-promotions-daily-rebate__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-promotions-daily-rebate__grid-container,
  .page-promotions-daily-rebate__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-daily-rebate__card,
  .page-promotions-daily-rebate__feature-item,
  .page-promotions-daily-rebate__faq-item,
  .page-promotions-daily-rebate__list-item {
    padding: 20px;
  }

  .page-promotions-daily-rebate img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions-daily-rebate__card-image,
  .page-promotions-daily-rebate__feature-icon {
    width: 80px;
    height: 80px;
  }
}

/* Ensure content areas don't cause overflow */
.page-promotions-daily-rebate__container,
.page-promotions-daily-rebate__grid-container,
.page-promotions-daily-rebate__feature-grid,
.page-promotions-daily-rebate__faq-list,
.page-promotions-daily-rebate__steps-list,
.page-promotions-daily-rebate__terms-list {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Contrast fixes for specific elements if needed */
.page-promotions-daily-rebate__card--transparent .page-promotions-daily-rebate__card-title,
.page-promotions-daily-rebate__card--transparent .page-promotions-daily-rebate__card-text {
  color: var(--lb555-light-text); /* Ensure light text on transparent card with primary color background */
}

.page-promotions-daily-rebate__dark-bg .page-promotions-daily-rebate__section-title {
  color: var(--lb555-light-text);
}

.page-promotions-daily-rebate__light-bg .page-promotions-daily-rebate__section-title {
  color: var(--lb555-dark-text);
}

.page-promotions-daily-rebate a {
  color: var(--lb555-primary-color);
}

.page-promotions-daily-rebate__list-text a {
  color: var(--lb555-primary-color);
}