/* style/promotions.css */

/* Variables for color scheme */
:root {
  --primary-color: #FF8C1A;
  --auxiliary-color: #FFA53A;
  --card-bg-color: #17191F;
  --bg-color: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

/* Base styles for the page-promotions scope */
.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* #FFF3E6 */
  background-color: var(--bg-color); /* #0D0E12 */
  line-height: 1.6;
  padding-bottom: 40px;
}

/* Section padding for consistency */
.page-promotions__section-padding {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Headings */
.page-promotions__main-title {
  font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
  font-weight: 700;
  color: var(--glow-color); /* #FFB04D */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--glow-color); /* #FFB04D */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-promotions__card-title,
.page-promotions__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main); /* #FFF3E6 */
  margin-bottom: 15px;
}

/* Text blocks */
.page-promotions__text-block,
.page-promotions__hero-description,
.page-promotions p {
  font-size: 1rem;
  color: var(--text-main); /* #FFF3E6 */
  margin-bottom: 20px;
  text-align: justify;
}

/* Links */
.page-promotions a {
  color: var(--primary-color); /* #FF8C1A */
  text-decoration: none;
}

.page-promotions a:hover {
  text-decoration: underline;
  color: var(--auxiliary-color); /* #FFA53A */
}

/* Buttons */
.page-promotions__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__cta-buttons--center {
  justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  max-width: 100%; /* Ensure button adapts to container width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, var(--auxiliary-color) 0%, var(--deep-orange) 100%); /* #FFA53A to #D96800 */
  color: var(--text-main); /* #FFF3E6 */
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-orange) 0%, var(--auxiliary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.3);
}

.page-promotions__btn-secondary {
  background: var(--card-bg-color); /* #17191F */
  color: var(--primary-color); /* #FF8C1A */
  border: 2px solid var(--primary-color); /* #FF8C1A */
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main); /* #FFF3E6 */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.3);
}

.page-promotions__btn-secondary--full {
  width: 100%;
  max-width: 300px; /* Limit width for single buttons */
  margin: 20px auto 0 auto;
}

.page-promotions__card-button {
  background: linear-gradient(180deg, var(--auxiliary-color) 0%, var(--deep-orange) 100%);
  color: var(--text-main); /* #FFF3E6 */
  border: none;
  font-size: 0.95rem;
  padding: 10px 20px;
  margin-top: auto; /* Push button to the bottom of the card */
}

.page-promotions__card-button:hover {
  background: linear-gradient(180deg, var(--deep-orange) 0%, var(--auxiliary-color) 100%);
  transform: translateY(-1px);
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color); /* #0D0E12 */
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column; /* Image above content */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
  max-height: 600px; /* Limit height */
}

.page-promotions__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
  position: relative;
}

/* Promotion Types Grid */
.page-promotions__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-promotions__promotion-card {
  background-color: var(--card-bg-color); /* #17191F */
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color); /* #A84F0C */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__card-description {
  font-size: 0.95rem;
  color: var(--text-main); /* #FFF3E6 */
  flex-grow: 1;
}

/* How to Claim Steps */
.page-promotions__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-promotions__step-card {
  background-color: var(--card-bg-color); /* #17191F */
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color); /* #A84F0C */
}

.page-promotions__step-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__step-description {
  font-size: 0.95rem;
  color: var(--text-main); /* #FFF3E6 */
}

/* Terms and Conditions List */
.page-promotions__terms-list,
.page-promotions__why-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-promotions__terms-list li,
.page-promotions__why-list li {
  background-color: var(--card-bg-color); /* #17191F */
  border: 1px solid var(--border-color); /* #A84F0C */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-main); /* #FFF3E6 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 35px;
}

.page-promotions__terms-list li strong,
.page-promotions__why-list li strong {
  color: var(--primary-color); /* #FF8C1A */
}

.page-promotions__terms-list li::before,
.page-promotions__why-list li::before {
  content: '✓';
  color: var(--glow-color); /* #FFB04D */
  font-weight: bold;
  position: absolute;
  left: 10px;
  top: 15px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: var(--card-bg-color); /* #17191F */
  border: 1px solid var(--border-color); /* #A84F0C */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main); /* #FFF3E6 */
  cursor: pointer;
  background-color: var(--card-bg-color); /* #17191F */
  position: relative;
  list-style: none; /* For <summary> */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

.page-promotions__faq-question::marker {
  display: none; /* Hide default marker for <summary> */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color); /* #FFB04D */
}

.page-promotions__faq-answer {
  padding: 0 20px 15px 20px;
  font-size: 1rem;
  color: var(--text-main); /* #FFF3E6 */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 10px 20px 20px 20px;
}

/* Conclusion Section */
.page-promotions__conclusion {
  text-align: center;
}

/* Image responsiveness for all images in .page-promotions */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all containers with images also adapt */
.page-promotions__hero-image-wrapper,
.page-promotions__promotion-card,
.page-promotions__step-card {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --------------------------------------------------- */
/* Responsive Styles for Mobile (max-width: 768px) */
/* --------------------------------------------------- */
@media (max-width: 768px) {
  /* General page adjustments */
  .page-promotions__section-padding {
    padding: 20px 15px;
  }

  /* Hero Section */
  .page-promotions__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-promotions__hero-image {
    object-fit: contain !important; /* Use contain for mobile hero to avoid cropping */
    max-height: none !important; /* Remove max-height for mobile */
    aspect-ratio: unset !important; /* Remove aspect ratio if set */
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__hero-content {
    padding: 20px 15px;
  }

  .page-promotions__main-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 0.95rem;
  }

  /* Button specific mobile styles */
  .page-promotions__cta-buttons,
  .page-promotions__cta-buttons--center {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-promotions__btn-secondary--full {
    max-width: 100% !important;
  }

  /* Promotion Types Grid */
  .page-promotions__promotion-grid {
    grid-template-columns: 1fr !important; /* Single column for promotion cards */
    gap: 20px !important;
  }

  .page-promotions__promotion-card {
    padding: 20px !important;
  }

  .page-promotions__card-image {
    height: 180px !important; /* Slightly smaller height for mobile cards */
  }

  /* How to Claim Steps */
  .page-promotions__step-grid {
    grid-template-columns: 1fr !important; /* Single column for steps */
    gap: 20px !important;
  }

  /* Terms and Conditions / Why Choose Lists */
  .page-promotions__terms-list li,
  .page-promotions__why-list li {
    padding: 12px 15px 12px 30px !important; /* Adjust padding for smaller screens */
    margin-bottom: 10px !important;
    font-size: 0.95rem !important;
  }

  .page-promotions__terms-list li::before,
  .page-promotions__why-list li::before {
    top: 12px !important;
  }

  /* FAQ Section */
  .page-promotions__faq-question {
    font-size: 1rem !important;
    padding: 15px 15px !important;
  }

  .page-promotions__faq-answer {
    padding: 0 15px 10px 15px !important;
    font-size: 0.95rem !important;
  }

  .page-promotions__faq-item[open] .page-promotions__faq-answer {
    padding: 10px 15px 15px 15px !important;
  }

  /* Generic image responsiveness for all images in .page-promotions */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__info-section,
  .page-promotions__promotion-types,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__why-choose,
  .page-promotions__faq-section,
  .page-promotions__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}