/* style/promotions.css */
/* Define CSS variables for color palette */
:root {
  --primary-color: #113B7A;
  --auxiliary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B;
}

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color from palette */
  background-color: var(--deep-navy); /* Match shared body background if dark */
}

/* Ensure body padding-top is handled by shared.css */
/* .page-promotions should not have padding-top: var(--header-offset); */

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

/* --- Hero Section --- */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles main offset */
  padding-bottom: 40px;
  background-color: var(--deep-navy);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  margin-bottom: 20px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-promotions__description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* --- Buttons --- */
.page-promotions__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-promotions__btn--primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-promotions__btn--secondary {
  background: var(--card-bg); /* Use card background for secondary button */
  color: var(--text-main);
  border: 2px solid var(--border);
}

.page-promotions__btn--secondary:hover {
  background: var(--border);
  color: #ffffff;
}

.page-promotions__btn--center {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* --- Section General --- */
.page-promotions__section {
  padding: 60px 0;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-promotions__text-block {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-promotions__link {
  color: var(--auxiliary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__link:hover {
  color: var(--glow);
  text-decoration: underline;
}

/* --- Dark Section (for contrast) --- */
.page-promotions__dark-section {
  background-color: var(--deep-navy);
  color: var(--text-main);
}
.page-promotions__dark-section .page-promotions__section-title {
  color: var(--text-main);
}
.page-promotions__dark-section .page-promotions__text-block {
  color: var(--text-secondary);
}

/* --- Promotion Grid Section --- */
.page-promotions__promo-grid-section {
  background-color: var(--card-bg);
}

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

.page-promotions__card {
  background-color: var(--deep-navy);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border);
}

.page-promotions__card-image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Minimum size for images */
  max-height: 300px; /* Cap height for uniform look */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__card-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Make text block grow to align buttons */
}

/* --- How To Claim Section --- */
.page-promotions__how-to-claim-section {
  background-color: var(--deep-navy);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-promotions__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2em;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-promotions__step-text {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin: 0;
  text-align: left;
}

/* --- FAQ Section --- */
.page-promotions__faq-section {
  background-color: var(--card-bg);
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__faq-item {
  background-color: var(--deep-navy);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-secondary);
}

.page-promotions__faq-item[open] {
  background-color: var(--primary-color);
  border-color: var(--auxiliary-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  color: #ffffff;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.page-promotions__faq-question:hover {
  color: var(--auxiliary-color);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  line-height: 1;
  margin-left: 15px;
  color: var(--text-secondary);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  color: #ffffff;
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- CTA Bottom Section --- */
.page-promotions__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-navy);
}

.page-promotions__cta-content {
  max-width: 900px;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  box-sizing: border-box;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-promotions__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
  }
  .page-promotions__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__hero-section {
    padding-bottom: 30px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-promotions__description {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    margin-bottom: 20px;
  }
  .page-promotions__btn {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }
  .page-promotions__text-block {
    font-size: 1em;
  }
  .page-promotions__grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__card {
    padding: 20px;
  }
  .page-promotions__card-image {
    max-height: 250px;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }
  .page-promotions__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-promotions__step-text {
    font-size: 1em;
  }
  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__btn--center {
    width: 100%;
  }

  /* Force responsive for all images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force responsive for all image containers */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Force responsive for all buttons */
  .page-promotions__btn,
  .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; /* Ensure padding for full-width buttons */
    padding-right: 15px;
  }
  .page-promotions__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Video related styles (if any video is added) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}