/* style/promotions.css */
/* Body background is #B71C1C (dark), so main text color should be light (#FFF5E1) */

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #7A0E0E; /* Deep Red, slightly darker for hero background */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px; /* Space between image and text */
}

.page-promotions__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any background elements if layered */
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 font size */
  font-weight: 700;
  color: #F4D34D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__intro-text {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
}

/* General Section Styles */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF5E1; /* Text Main */
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
}

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

.page-promotions__overview-item {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
  color: #FFF5E1; /* Text Main */
}

.page-promotions__overview-item:hover {
  transform: translateY(-10px);
}

.page-promotions__overview-item-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD86A; /* Lighter Gold for titles */
}

/* Featured Promotions Section */
.page-promotions__featured-promotions {
  padding: 80px 0;
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-promotions__promotion-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  color: #FFF5E1; /* Text Main */
}

.page-promotions__promotion-card:hover {
  transform: translateY(-10px);
}

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

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD86A; /* Lighter Gold for titles */
}

.page-promotions__card-description {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #FFF5E1; /* Text Main */
}

/* How To Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
}

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

.page-promotions__step-item {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF5E1; /* Text Main */
}

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red for contrast */
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD86A; /* Lighter Gold for titles */
}

.page-promotions__claim-image-wrapper {
    margin-top: 60px;
    text-align: center;
}

.page-promotions__claim-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 80px 0;
  background-color: #7A0E0E; /* Deep Red */
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  color: #FFF5E1; /* Text Main */
}

.page-promotions__terms-list li {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for list items */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.05rem;
  border-left: 4px solid #F2B544; /* Border Gold */
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #B71C1C; /* Background */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F2B544; /* Border Gold */
  margin: 10px;
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 5px 20px rgba(255, 216, 106, 0.4);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #FFD86A; /* Lighter Gold */
  border: 2px solid #F2B544; /* Border Gold */
  margin: 10px;
}

.page-promotions__btn-secondary:hover {
  background-color: #F2B544; /* Border Gold */
  color: #7A0E0E; /* Deep Red */
  box-shadow: 0 5px 20px rgba(242, 181, 68, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__intro-text {
    font-size: 1.15rem;
  }
  .page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-promotions__section-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-promotions__intro-text {
    font-size: 1rem;
  }
  .page-promotions__section-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  .page-promotions__section-description {
    font-size: 0.95rem;
  }

  .page-promotions__overview-section,
  .page-promotions__featured-promotions,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__cta-section {
    padding: 50px 0;
  }

  .page-promotions__promotions-grid,
  .page-promotions__overview-grid,
  .page-promotions__claim-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promotion-card,
  .page-promotions__overview-item,
  .page-promotions__step-item {
    padding: 20px;
  }

  .page-promotions__card-title,
  .page-promotions__overview-item-title,
  .page-promotions__step-title {
    font-size: 1.3rem;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
    display: block; /* Stack buttons on mobile */
    margin: 10px auto;
    max-width: 90%; /* Adjust max-width for mobile buttons */
    width: 100% !important; /* Force width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* All images must be responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers must be responsive */
  .page-promotions__hero-image-wrapper,
  .page-promotions__claim-image-wrapper,
  .page-promotions__promotion-card,
  .page-promotions__container,
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__overview-item,
  .page-promotions__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Specific handling for buttons in groups */
  .page-promotions__cta-section .page-promotions__btn-primary,
  .page-promotions__cta-section .page-promotions__btn-secondary {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Color Contrast Enforcement - Based on body background #B71C1C (dark) */
/* All text should be light, all backgrounds are dark or brand colors */
.page-promotions {
  color: #FFF5E1; /* Text Main (light) on Background (dark) */
}

.page-promotions__dark-section {
  color: #FFF5E1; /* Text Main (light) on Deep Red (dark) */
}

.page-promotions__card {
  background-color: #D32F2F; /* Card BG (dark) */
  color: #FFF5E1; /* Text Main (light) */
}

.page-promotions__btn-primary {
  /* Background is gold gradient, text is Deep Red for contrast */
  color: #7A0E0E;
}

.page-promotions__btn-secondary {
  /* Background is transparent, text is Gold, border is Gold */
  color: #FFD86A;
}

.page-promotions__step-number {
  /* Background is Gold, text is Deep Red for contrast */
  color: #7A0E0E;
}

.page-promotions__main-title,
.page-promotions__section-title,
.page-promotions__overview-item-title,
.page-promotions__card-title,
.page-promotions__step-title {
  color: #F4D34D; /* Gold or Lighter Gold for emphasis */
}

.page-promotions__terms-list li {
  color: #FFF5E1; /* Light text on slightly transparent dark background */
}

/* Ensure content area images are not too small */
.page-promotions__card-image,
.page-promotions__claim-image {
  min-width: 200px;
  min-height: 200px;
}