/* style/promotions.css */

/* Variables from customization */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --page-bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

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

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

.page-promotions__section-padding {
  padding: 60px 0;
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

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

/* 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: var(--page-bg);
  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;
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-promotions__main-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-promotions__hero-description {
  font-size: 20px;
  color: #e0e0e0;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-promotions__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

/* Overview Section */
.page-promotions__overview-section {
  background-color: var(--page-bg);
}

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

.page-promotions__promo-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-promotions__card-text {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-promotions__card-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Promotion Categories Section */
.page-promotions__promo-categories {
  background-color: #0d0d0d;
}

.page-promotions__category-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__category-title {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.page-promotions__category-item p {
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-promotions__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-promotions__feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #ccc;
}

.page-promotions__feature-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-promotions__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.page-promotions__btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

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

.page-promotions__step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-promotions__step-card p {
  color: #ccc;
}

/* Security and Support Section */
.page-promotions__security-support {
  background-color: #0d0d0d;
}

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

.page-promotions__info-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__info-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__info-item p {
  color: #ccc;
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: #1a1a1a;
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 25px;
  background: #0f0f0f;
  border-radius: 0 0 12px 12px;
  color: #ccc;
}

/* Latest Blog Section */
.page-promotions__latest-blog {
  background-color: #0d0d0d;
}

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

.page-promotions__blog-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-promotions__blog-card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
}

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

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

.page-promotions__blog-card-text {
  font-size: 15px;
  color: #ccc;
  margin: 0 20px 15px;
}

.page-promotions__blog-date {
  display: block;
  font-size: 14px;
  color: #888;
  margin: 0 20px 20px;
}

/* Global image responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

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

  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section-padding {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: 28px;
    padding-bottom: 8px;
  }

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

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

  .page-promotions__promo-card,
  .page-promotions__category-item,
  .page-promotions__step-card,
  .page-promotions__info-item,
  .page-promotions__blog-card {
    padding: 20px;
  }

  .page-promotions__promo-card img {
    height: 200px;
  }

  .page-promotions__card-title {
    font-size: 20px;
  }

  .page-promotions__card-text {
    font-size: 15px;
  }

  .page-promotions__card-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 20px;
  }

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

  .page-promotions__feature-list li {
    font-size: 15px;
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px 20px;
  }

  .page-promotions__faq-qtext {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
  }

  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 20px 20px;
  }

  .page-promotions__blog-card-title {
    font-size: 18px;
  }

  .page-promotions__blog-card-text {
    font-size: 14px;
  }

  /* Image and container responsive safety */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-direction: column !important; /* Ensure vertical stacking for button groups */
    gap: 10px;
  }
}

/* Color contrast safety for body background #0A0A0A (dark) */
.page-promotions h1, .page-promotions h2, .page-promotions h3, .page-promotions h4, .page-promotions h5, .page-promotions h6 {
  color: var(--text-main); /* Ensure light text for headings */
}

.page-promotions p, .page-promotions li, .page-promotions span {
  color: #ccc; /* Slightly lighter than main text for readability on dark */
}

/* Override specific elements to ensure contrast if needed */
.page-promotions__cta-button {
  color: #ffffff; /* White text on gradient button */
}

.page-promotions__card-button {
  color: #ffffff; /* White text on gradient button */
}

.page-promotions__btn-primary {
  color: #ffffff; /* White text on gradient button */
}

.page-promotions__btn-secondary {
  color: var(--primary-color); /* Primary color text on transparent/light background */
}

.page-promotions__btn-secondary:hover {
  color: #ffffff; /* White text on primary color background */
}