/* style/promotions.css */
/* Custom properties for colors */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg: #17191F;
  --bg-color: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
  --light-text-color: #f0f0f0; /* For dark backgrounds */
  --dark-text-color: #333333; /* For light backgrounds */
  --header-offset: 70px; /* Default value, assumed from shared.css */
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--bg-color); /* Page background */
}

/* Global container for content */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Section titles */
.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
  text-shadow: 0 0 5px rgba(255, 140, 26, 0.5);
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* Text blocks */
.page-promotions__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--light-text-color);
}

/* Card styling */
.page-promotions__card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main); /* Ensure text is visible on dark card background */
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--bg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* 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, main offset from body */
  background-color: var(--bg-color);
  overflow: hidden;
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__main-title {
  font-size: clamp(2.2em, 5vw, 3.5em); /* Responsive font size */
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.7);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__hero-description {
  font-size: clamp(1em, 2.5vw, 1.2em);
  color: var(--light-text-color);
  max-width: 700px;
  margin: 0 auto;
}

/* Intro Section */
.page-promotions__intro-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

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

.page-promotions__feature-item {
  text-align: center;
}

.page-promotions__feature-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-promotions__feature-description {
  color: var(--text-main);
  font-size: 0.95em;
}

/* Promotion Categories Section */
.page-promotions__promo-categories-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* Darker background for this section */
}

.page-promotions__dark-bg {
  color: var(--light-text-color);
}

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

.page-promotions__promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-promotions__promo-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-promotions__promo-description {
  color: var(--light-text-color);
  font-size: 0.9em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

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

.page-promotions__step-item {
  text-align: center;
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px var(--glow-color);
}

.page-promotions__step-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-promotions__step-description {
  color: var(--text-main);
  font-size: 0.9em;
}

.page-promotions__step-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__step-description a:hover {
  text-decoration: underline;
}

/* Terms & Conditions Section */
.page-promotions__terms-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-promotions__terms-list {
  list-style: disc;
  max-width: 900px;
  margin: 30px auto 0;
  text-align: left;
  padding-left: 40px;
  color: var(--light-text-color);
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.page-promotions__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: rgba(255, 140, 26, 0.1); /* Using primary-color with alpha */
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--secondary-color);
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05); /* Using primary-color with alpha */
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
}
details.page-promotions__faq-item .page-promotions__faq-answer p {
  margin: 0;
  color: var(--text-main);
}
details.page-promotions__faq-item .page-promotions__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}
details.page-promotions__faq-item .page-promotions__faq-answer a:hover {
  text-decoration: underline;
}

/* Blog Section */
.page-promotions__blog-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

.page-promotions__blog-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for blog thumbnails */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-promotions__blog-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-promotions__blog-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__blog-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__blog-meta {
  font-size: 0.85em;
  color: #aaa;
  margin-bottom: 15px;
}

.page-promotions__blog-excerpt {
  color: var(--light-text-color);
  font-size: 0.9em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  transition: color 0.3s ease;
}

.page-promotions__read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__text-block {
    font-size: 1em;
  }
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-promotions__hero-description {
    font-size: clamp(0.9em, 2vw, 1.1em);
  }
  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-promotions__cta-group {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__text-block {
    margin-bottom: 30px;
  }
  .page-promotions__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }
  .page-promotions__hero-image img {
    border-radius: 4px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-promotions__hero-description {
    font-size: clamp(0.9em, 3vw, 1em);
  }
  .page-promotions__cta-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px; /* Add padding to CTA group itself */
    box-sizing: border-box;
  }
  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__intro-section,
  .page-promotions__promo-categories-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__blog-section {
    padding: 40px 0;
  }

  .page-promotions__features-grid,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-promotions__promo-card img,
  .page-promotions__blog-card img {
    
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
  .page-promotions__faq-qtext { font-size: 15px; }
  .page-promotions__faq-toggle { font-size: 20px; width: 24px; }
  details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }

  /* Ensure all images are responsive and not smaller than 200px */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }
  
  .page-promotions__promo-card img,
  .page-promotions__blog-card img {
    min-width: 200px;
    min- /* Adjusted for mobile card layout, but width still 200px minimum */
  }

  /* All containers with images should have appropriate padding/sizing */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right handled by specific elements */
  }
  
  .page-promotions__terms-list {
    padding-left: 20px;
  }
}

/* Ensure content area images are not displayed smaller than 200px */
.page-promotions__promo-card img,
.page-promotions__blog-card img,
.page-promotions__hero-image img {
  min-width: 200px;
  min-height: 200px;
}
/* Adjust specific image types if needed, e.g., blog thumbnails can be slightly smaller in height but not width */
@media (max-width: 768px) {
  .page-promotions__promo-card img,
  .page-promotions__blog-card img {
    min- /* Adjusted for mobile card layout, but width still 200px minimum */
  }
}