/* style/promotions.css */

/* --- General Page Styles --- */
.page-promotions {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherit from body (dark: #1a1a1a) */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* --- Hero Section --- */
.page-promotions__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 40px;
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Gradient with brand colors */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-promotions__hero-content {
  max-width: 600px;
  text-align: left;
  z-index: 2;
}

.page-promotions__main-title {
  font-size: 52px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* White text for hero title */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-promotions__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-promotions__cta-group {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

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

.page-promotions__cta-button--primary {
  background: #FFD700; /* Primary brand color */
  color: #8B0000; /* Dark red text for contrast */
}

.page-promotions__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--secondary {
  background: #8B0000; /* Secondary brand color */
  color: #ffffff;
  border: 2px solid #FFD700;
}

.page-promotions__cta-button--secondary:hover {
  background: #6a0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-image-wrapper {
  flex-shrink: 0;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 600px; /* Limit image width */
  width: 100%;
}

.page-promotions__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: none; /* Ensure no filter changes color */
}

/* --- Categories Section --- */
.page-promotions__categories-section,
.page-promotions__featured-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__final-cta-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__categories-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 60px 40px;
}

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

.page-promotions__category-card {
  background: rgba(255, 255, 255, 0.1); /* Dark card background */
  border-radius: 10px;
  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;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-promotions__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* Ensure no filter changes color */
}

.page-promotions__category-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-promotions__category-text {
  font-size: 16px;
  color: #e0e0e0;
  flex-grow: 1; /* Push button to bottom */
  margin-bottom: 20px;
}

.page-promotions__category-button {
  display: inline-block;
  padding: 10px 25px;
  background: #8B0000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Align to bottom */
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__category-button:hover {
  background: #6a0000;
}

/* --- Featured Promotions Section --- */
.page-promotions__featured-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack on small screens */
  gap: 40px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
}

.page-promotions__promo-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  filter: none; /* Ensure no filter changes color */
}

.page-promotions__promo-content {
  padding: 30px;
  width: 60%;
  color: #ffffff;
}

.page-promotions__promo-title {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-promotions__promo-description {
  font-size: 17px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-promotions__promo-details {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-promotions__promo-details li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-promotions__promo-details li::before {
  content: '✓';
  color: #FFD700;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-promotions__promo-button {
  display: inline-block;
  padding: 12px 30px;
  background: #FFD700;
  color: #8B0000;
  text-decoration: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__promo-button:hover {
  background: #e6c200;
}

/* --- How to Claim Section --- */
.page-promotions__how-to-claim-section {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 60px 40px;
}

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

.page-promotions__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #FFD700;
  color: #8B0000;
  border-radius: 50%;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-promotions__step-description {
  font-size: 16px;
  color: #e0e0e0;
}

.page-promotions__step-description a {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions__step-description a:hover {
  color: #e6c200;
}

/* --- Terms & Conditions Section --- */
.page-promotions__terms-section {
  padding-bottom: 60px;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  color: #f0f0f0;
}

.page-promotions__terms-list li {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__terms-list li a {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions__terms-list li a:hover {
  color: #e6c200;
}

.page-promotions__terms-cta {
  text-align: center;
  margin-top: 40px;
}

/* --- Final CTA Section --- */
.page-promotions__final-cta-section {
  background: linear-gradient(45deg, #8B0000 0%, #FFD700 100%);
  padding: 80px 40px;
  text-align: center;
  color: #ffffff;
  border-radius: 12px;
  margin-bottom: 40px;
}

.page-promotions__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}


/* --- Responsive Design (Mobile) --- */
@media (max-width: 992px) {
  .page-promotions__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-promotions__hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }

  .page-promotions__main-title {
    font-size: 42px;
  }

  .page-promotions__hero-description {
    font-size: 18px;
  }

  .page-promotions__cta-group {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-promotions__hero-image-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .page-promotions__section-title {
    font-size: 30px;
  }

  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-promotions__categories-section,
  .page-promotions__featured-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__final-cta-section {
    padding: 60px 20px;
  }

  .page-promotions__categories-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__promo-card {
    flex-direction: column;
  }

  .page-promotions__promo-image {
    width: 100%;
    height: 250px;
  }

  .page-promotions__promo-content {
    width: 100%;
    padding: 25px;
  }

  .page-promotions__promo-title {
    font-size: 24px;
  }

  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__terms-list {
    margin: 30px auto;
  }

  .page-promotions__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  /* Ensure all images are responsive and do not overflow */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all image containers are responsive and do not overflow */
  .page-promotions__hero-image-wrapper,
  .page-promotions__category-image,
  .page-promotions__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure content sections have proper padding for mobile */
  .page-promotions__hero-section,
  .page-promotions__categories-section,
  .page-promotions__featured-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__final-cta-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all buttons are responsive and do not overflow */
  .page-promotions__cta-button,
  .page-promotions__category-button,
  .page-promotions__promo-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px !important; /* Adjust padding for smaller screens */
    font-size: 16px !important;
  }

  /* Button groups for mobile */
  .page-promotions__cta-group,
  .page-promotions__final-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__category-card,
  .page-promotions__promo-card,
  .page-promotions__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__category-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-promotions__promo-image {
    height: 200px; /* Adjust height for mobile */
  }
}

/* Ensure padding-top for main content area to avoid header overlap */
.page-promotions {
  padding-top: var(--header-offset, 120px);
}
@media (max-width: 768px) {
  .page-promotions {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
}