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

/* Base styles for the page */
.page-promotions-daily-rebate {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Ensure light background for main content */
}

/* Hero Section */
.page-promotions-daily-rebate__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0;
}

.page-promotions-daily-rebate__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px; /* Space between image and content */
}

.page-promotions-daily-rebate__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions-daily-rebate__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-promotions-daily-rebate__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
}

.page-promotions-daily-rebate__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-promotions-daily-rebate__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: 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: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-promotions-daily-rebate__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-promotions-daily-rebate__btn-primary:hover {
  background-color: #d16b05;
  transform: translateY(-2px);
}

.page-promotions-daily-rebate__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions-daily-rebate__btn-secondary:hover {
  background-color: #e0f7fa;
  transform: translateY(-2px);
}

.page-promotions-daily-rebate__btn-primary--large {
  font-size: 1.1rem;
  padding: 18px 35px;
}

/* General Section Styles */
.page-promotions-daily-rebate__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-promotions-daily-rebate__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 30px;
}

.page-promotions-daily-rebate__section-title--white {
  color: #ffffff;
}

.page-promotions-daily-rebate__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-promotions-daily-rebate__text-block--white {
  color: #f0f0f0;
}

.page-promotions-daily-rebate__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions-daily-rebate__image--center {
  margin-left: auto;
  margin-right: auto;
}

/* Dark background sections */
.page-promotions-daily-rebate__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions-daily-rebate__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions-daily-rebate__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Lists */
.page-promotions-daily-rebate__list,
.page-promotions-daily-rebate__numbered-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-promotions-daily-rebate__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 1.05rem;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-promotions-daily-rebate__list-item--white {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-promotions-daily-rebate__numbered-list {
  counter-reset: item;
}

.page-promotions-daily-rebate__numbered-list .page-promotions-daily-rebate__list-item {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
  padding-left: 50px;
  position: relative;
}

.page-promotions-daily-rebate__numbered-list .page-promotions-daily-rebate__list-item::before {
  content: counter(item) ".";
  counter-increment: item;
  position: absolute;
  left: 20px;
  top: 15px;
  font-weight: bold;
  color: #26A9E0;
  font-size: 1.2rem;
}

.page-promotions-daily-rebate__numbered-list--white .page-promotions-daily-rebate__list-item {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-promotions-daily-rebate__numbered-list--white .page-promotions-daily-rebate__list-item::before {
  color: #ffffff;
}

/* Table styles */
.page-promotions-daily-rebate__table-responsive {
  overflow-x: auto;
  margin: 30px auto;
  max-width: 1000px;
}

.page-promotions-daily-rebate__rebate-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.page-promotions-daily-rebate__rebate-table th,
.page-promotions-daily-rebate__rebate-table td {
  padding: 15px;
  border: 1px solid #e0e0e0;
  text-align: left;
  font-size: 1rem;
}

.page-promotions-daily-rebate__rebate-table th {
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: 600;
}

.page-promotions-daily-rebate__rebate-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.page-promotions-daily-rebate__rebate-table tbody tr:hover {
  background-color: #eef7fc;
}

/* Benefit List */
.page-promotions-daily-rebate__benefit-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 1200px;
}

.page-promotions-daily-rebate__benefit-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  flex: 1 1 calc(33% - 40px);
  max-width: calc(33% - 40px);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-promotions-daily-rebate__benefit-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 5px solid #26A9E0;
  padding: 10px;
}

.page-promotions-daily-rebate__benefit-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions-daily-rebate__benefit-description {
  font-size: 1rem;
  color: #555555;
}

/* FAQ Section */
.page-promotions-daily-rebate__faq-section {
  background-color: #f8f8f8;
  padding-bottom: 80px;
}

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

.page-promotions-daily-rebate__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  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: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f8ff;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-promotions-daily-rebate__faq-question:hover {
  background-color: #e6f2ff;
}

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

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

.page-promotions-daily-rebate__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-promotions-daily-rebate__faq-item[open] .page-promotions-daily-rebate__faq-toggle {
  content: '−';
}

.page-promotions-daily-rebate__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  border-top: 1px solid #e0e0e0;
  background-color: #ffffff;
}

/* CTA Bottom Section */
.page-promotions-daily-rebate__cta-bottom {
  padding: 80px 20px;
  background-color: #26A9E0;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions-daily-rebate__benefit-item {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}

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

  .page-promotions-daily-rebate__hero-section {
    padding: 10px 15px 40px;
    min-height: auto;
  }

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

  .page-promotions-daily-rebate__hero-description {
    font-size: 1.05rem;
  }

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

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

  .page-promotions-daily-rebate__section {
    padding: 40px 15px;
  }

  .page-promotions-daily-rebate__content-area {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-promotions-daily-rebate__image-wrapper,
  .page-promotions-daily-rebate__container,
  .page-promotions-daily-rebate__table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions-daily-rebate__rebate-table {
    font-size: 0.9rem;
  }

  .page-promotions-daily-rebate__rebate-table th,
  .page-promotions-daily-rebate__rebate-table td {
    padding: 10px;
  }

  .page-promotions-daily-rebate__benefit-list {
    flex-direction: column;
    gap: 20px;
  }

  .page-promotions-daily-rebate__benefit-item {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 20px;
  }

  .page-promotions-daily-rebate__benefit-icon {
    width: 100px;
    height: 100px;
  }

  .page-promotions-daily-rebate__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-promotions-daily-rebate__faq-answer {
    padding: 10px 20px 15px;
  }
  
  .page-promotions-daily-rebate__cta-bottom {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions-daily-rebate__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-promotions-daily-rebate__hero-description {
    font-size: 0.95rem;
  }
}

/* Ensure proper contrast for text on various backgrounds */
/* This applies for main text on light backgrounds */
.page-promotions-daily-rebate p,
.page-promotions-daily-rebate li,
.page-promotions-daily-rebate__rebate-table td {
  color: #333333; 
}

/* Text on brand color backgrounds */
.page-promotions-daily-rebate__hero-section,
.page-promotions-daily-rebate__dark-section,
.page-promotions-daily-rebate__cta-bottom {
  color: #ffffff;
}

.page-promotions-daily-rebate__dark-section .page-promotions-daily-rebate__text-block,
.page-promotions-daily-rebate__dark-section .page-promotions-daily-rebate__list-item,
.page-promotions-daily-rebate__cta-bottom .page-promotions-daily-rebate__text-block {
  color: #f0f0f0;
}

.page-promotions-daily-rebate__rebate-table th {
  color: #ffffff;
}

.page-promotions-daily-rebate__rebate-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.page-promotions-daily-rebate__rebate-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.page-promotions-daily-rebate__faq-question {
  color: #333333;
}

.page-promotions-daily-rebate__faq-answer {
  color: #555555;
}