:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --accent-color: #FFD700; /* Used for highlights */
  --border-color-light: #e0e0e0;
  --bg-dark: #0a0a0a; /* Body background from shared.css */
}

.page-promotions-cashback-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light-bg); /* Default text color for light sections */
  background-color: var(--bg-dark); /* Ensure main content area respects body bg */
}

.page-promotions-cashback-rules__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-promotions-cashback-rules__light-bg {
  background-color: #ffffff;
  color: var(--text-color-light-bg);
}

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

.page-promotions-cashback-rules__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-promotions-cashback-rules__subtitle {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions-cashback-rules__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: inherit;
}

.page-promotions-cashback-rules__center-text {
  text-align: center;
}

/* Hero Section */
.page-promotions-cashback-rules__hero-section {
  position: relative;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-promotions-cashback-rules__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions-cashback-rules__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
  line-height: 1.2;
}

.page-promotions-cashback-rules__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-color-dark-bg);
}

.page-promotions-cashback-rules__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-promotions-cashback-rules__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-promotions-cashback-rules__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-promotions-cashback-rules__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions-cashback-rules__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-promotions-cashback-rules__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* Content Images */
.page-promotions-cashback-rules__image-content {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Feature Grid for Eligibility Section */
.page-promotions-cashback-rules__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-promotions-cashback-rules__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-color-dark-bg);
}

.page-promotions-cashback-rules__feature-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Table for Rates Calculation */
.page-promotions-cashback-rules__table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-promotions-cashback-rules__cashback-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is readable on smaller screens */
}

.page-promotions-cashback-rules__cashback-table th,
.page-promotions-cashback-rules__cashback-table td {
  padding: 15px;
  border: 1px solid var(--border-color-light);
  text-align: left;
  font-size: 16px;
}

.page-promotions-cashback-rules__cashback-table th {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  font-weight: bold;
}

.page-promotions-cashback-rules__cashback-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.page-promotions-cashback-rules__cashback-table tr:nth-child(odd) {
  background-color: #ffffff;
}

.page-promotions-cashback-rules__cashback-table tbody tr:hover {
  background-color: #f0f0f0;
}

/* Steps Grid for Claiming Section */
.page-promotions-cashback-rules__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-promotions-cashback-rules__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: var(--text-color-dark-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-promotions-cashback-rules__step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 32px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.page-promotions-cashback-rules__step-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Terms and Conditions List */
.page-promotions-cashback-rules__terms-list {
  margin-top: 40px;
}

.page-promotions-cashback-rules__term-item {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 5px solid var(--secondary-color);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions-cashback-rules__term-item p {
  margin-bottom: 0;
}

/* FAQ Section */
.page-promotions-cashback-rules__faq-list {
  margin-top: 40px;
}

.page-promotions-cashback-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-promotions-cashback-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-color-dark-bg);
}

.page-promotions-cashback-rules__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-color);
}

.page-promotions-cashback-rules__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit;
}

.page-promotions-cashback-rules__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions-cashback-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color-dark-bg);
}

.page-promotions-cashback-rules__faq-item.active .page-promotions-cashback-rules__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
}

.page-promotions-cashback-rules__faq-item.active .page-promotions-cashback-rules__faq-toggle {
  color: var(--text-color-dark-bg);
  transform: rotate(45deg); /* Change to X for active */
}

/* Conclusion CTA Section */
.page-promotions-cashback-rules__center-buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Global image styles */
.page-promotions-cashback-rules img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-cashback-rules__main-title {
    font-size: 42px;
  }

  .page-promotions-cashback-rules__hero-description {
    font-size: 18px;
  }

  .page-promotions-cashback-rules__section-title {
    font-size: 28px;
  }

  .page-promotions-cashback-rules__subtitle {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-promotions-cashback-rules__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 30px;
  }

  .page-promotions-cashback-rules__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions-cashback-rules__main-title {
    font-size: 36px;
  }

  .page-promotions-cashback-rules__hero-description {
    font-size: 16px;
  }

  .page-promotions-cashback-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions-cashback-rules__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-promotions-cashback-rules__container {
    padding: 30px 15px;
  }

  .page-promotions-cashback-rules__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-promotions-cashback-rules__subtitle {
    font-size: 20px;
  }

  .page-promotions-cashback-rules__text-block {
    font-size: 15px;
  }

  .page-promotions-cashback-rules__feature-grid,
  .page-promotions-cashback-rules__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-cashback-rules__cashback-table th,
  .page-promotions-cashback-rules__cashback-table td {
    padding: 10px;
    font-size: 14px;
  }

  .page-promotions-cashback-rules__faq-question {
    padding: 15px 20px;
  }

  .page-promotions-cashback-rules__faq-question h3 {
    font-size: 16px;
  }

  .page-promotions-cashback-rules__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-promotions-cashback-rules__faq-item.active .page-promotions-cashback-rules__faq-answer {
    padding: 15px 20px !important;
  }

  .page-promotions-cashback-rules__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }
  
  .page-promotions-cashback-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-promotions-cashback-rules__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    position: relative;
    opacity: 0.2;
  }

  .page-promotions-cashback-rules__table-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }
}