/* style/promotions.css */
:root {
  --primary-color: #0A2E50;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-promotions {
  color: var(--text-light); /* Body background is dark, so text is light */
  padding-top: 120px; /* Adjust for fixed header */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #061d33 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-promotions__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__cta-button--primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-promotions__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-promotions__cta-button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-light);
}

/* Dark Section */
.page-promotions__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

/* Promo List Section */
.page-promotions__promo-list-section {
  padding: 60px 0;
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-promotions__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-weight: bold;
}

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

.page-promotions__promo-card-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__promo-card-button:hover {
  background-color: #e6c200;
}

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

.page-promotions__how-to-claim-section .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__how-to-claim-section .page-promotions__section-description {
  color: var(--text-dark);
}

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

.page-promotions__step-item {
  background-color: #ffffff;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 70px;
}

.page-promotions__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-promotions__step-item h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 1.3em;
}

.page-promotions__step-item p {
  color: var(--text-dark);
}

.page-promotions__step-item a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__step-item a:hover {
  color: var(--secondary-color);
}

/* Terms Section */
.page-promotions__terms-section {
  background-color: var(--primary-color);
  padding: 60px 0;
}

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

.page-promotions__terms-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

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

.page-promotions__faq-section .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__faq-section .page-promotions__section-description {
  color: var(--text-dark);
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
  background: #eeeeee;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Brand Section */
.page-promotions__brand-section {
  padding: 60px 0;
}

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

.page-promotions__brand-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-promotions__brand-item h3 {
  color: var(--secondary-color);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-promotions__brand-item p {
  font-size: 1em;
}

/* Blog Section */
.page-promotions__blog-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-promotions__blog-section .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__blog-section .page-promotions__section-description {
  color: var(--text-dark);
}

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

.page-promotions__blog-item {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-promotions__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions__blog-item-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__blog-link {
  text-decoration: none;
  color: inherit;
}

.page-promotions__blog-item-title {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-promotions__blog-link:hover .page-promotions__blog-item-title {
  color: var(--secondary-color);
}

.page-promotions__blog-item-excerpt {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__blog-item-date {
  font-size: 0.85em;
  color: #777;
  align-self: flex-start;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.8em;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-promotions__hero-section {
    padding: 60px 0;
  }

  .page-promotions__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-promotions__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important; /* Ensure buttons are full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

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

  .page-promotions__promo-grid,
  .page-promotions__brand-content,
  .page-promotions__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card-image,
  .page-promotions__blog-item-image {
    height: 180px;
  }

  .page-promotions__promo-card-title {
    font-size: 1.3em;
  }

  .page-promotions__promo-card-text {
    font-size: 0.95em;
  }

  .page-promotions__promo-card-button {
    padding: 10px 20px;
    font-size: 0.95em;
  }

  .page-promotions__step-item {
    padding: 20px 20px 20px 60px;
  }

  .page-promotions__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
    left: 15px;
  }

  .page-promotions__step-item h4 {
    font-size: 1.1em;
  }

  .page-promotions__terms-list {
    padding-left: 25px;
    font-size: 0.95em;
  }

  .page-promotions__faq-question {
    padding: 15px;
  }

  .page-promotions__faq-question h3 {
    font-size: 1em;
  }

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

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  .page-promotions__brand-item {
    padding: 25px;
  }

  .page-promotions__brand-item h3 {
    font-size: 1.2em;
  }

  .page-promotions__blog-item-title {
    font-size: 1.1em;
  }

  .page-promotions__blog-item-excerpt {
    font-size: 0.9em;
  }

  /* Image responsive styles */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__hero-section,
  .page-promotions__promo-list-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__brand-section,
  .page-promotions__blog-section,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__promo-card-content,
  .page-promotions__blog-item,
  .page-promotions__blog-item-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}