/* style/promotions.css */

:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
  --brand-primary: #11A84E;
  --brand-secondary: #22C768;
}

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

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

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

.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  padding-top: 10px; /* Aligns with requirement for small top padding */
  background-color: var(--deep-green-color);
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-promotions__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-main-color);
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-promotions__btn-secondary {
  background-color: #ffffff;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-promotions__overview-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__content-wrapper p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-secondary-color);
}

/* Featured Promotions Grid */
.page-promotions__featured-promotions-section {
  background-color: var(--card-bg-color);
}

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

.page-promotions__promotion-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  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), 0 0 15px var(--glow-color);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.4rem;
  color: var(--gold-color);
  padding: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-promotions__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-promotions__promotion-card .page-promotions__cta-button {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  max-width: none; /* Override max-width for card buttons */
}

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

.page-promotions__steps-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-promotions__claim-steps {
  list-style: none;
  padding: 0;
  flex: 1;
}

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.page-promotions__step-number {
  background: var(--button-gradient);
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-right: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-content {
  flex-grow: 1;
}

.page-promotions__step-title {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-bottom: 5px;
  font-weight: 600;
}

.page-promotions__step-content p {
  font-size: 1rem;
  color: var(--text-secondary-color);
}

.page-promotions__step-content a {
  color: var(--brand-secondary);
  text-decoration: underline;
}

.page-promotions__step-content a:hover {
  color: var(--glow-color);
}

.page-promotions__claim-image {
  flex: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__note-text {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-top: 40px;
  font-style: italic;
}

/* Terms & Conditions Section */
.page-promotions__dark-section {
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-promotions__terms-content {
  margin-top: 40px;
}

.page-promotions__terms-subtitle {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-promotions__terms-content p {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-promotions__terms-conditions-section .page-promotions__cta-button {
  margin-top: 40px;
}

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

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: var(--card-bg-color);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: var(--deep-green-color);
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question::marker {
  display: none;
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

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

.page-promotions__faq-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
  padding: 100px 0;
  text-align: center;
}

.page-promotions__cta-bottom-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--gold-color);
}

.page-promotions__cta-bottom-description {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: var(--text-main-color);
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__section-padding {
    padding: 60px 0;
  }
  .page-promotions__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-promotions__section-padding {
    padding: 40px 0;
  }

  .page-promotions__hero-section {
    min-height: 450px;
    padding-top: 10px !important;
  }

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

  .page-promotions__main-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

  .page-promotions__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

  /* All content containers for mobile responsiveness */
  .page-promotions__section, 
  .page-promotions__card, 
  .page-promotions__container, 
  .page-promotions__cta-buttons, 
  .page-promotions__hero-section,
  .page-promotions__overview-section,
  .page-promotions__featured-promotions-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-conditions-section,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom-section,
  .page-promotions__promotions-grid,
  .page-promotions__steps-wrapper,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-promotions__promotions-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__steps-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-promotions__claim-image {
    order: -1; /* Image appears before steps on mobile */
  }

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

  .page-promotions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__card-image {
    height: 200px;
  }

  .page-promotions__faq-image {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }
  .page-promotions__hero-section {
    min-height: 400px;
  }
}