/* style/promotions.css */

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

.page-promotions {
  color: var(--color-text-main);
  background-color: var(--color-bg-dark);
  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 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body already handles padding-top */
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  border: 2px solid var(--color-primary);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-main);
  transform: translateY(-3px);
}

/* General Section Styling */
.page-promotions__section {
  padding: 60px 0;
  background-color: var(--color-bg-dark);
}

.page-promotions__section:nth-of-type(even) {
  background-color: var(--color-card-bg);
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promotions__text-block {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__text-block strong {
  color: var(--color-text-main);
}

.page-promotions__text-block a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Promo Grid */
.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  min-height: 200px;
}

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

.page-promotions__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-promotions__card-description {
  font-size: 1em;
  color: var(--color-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
  text-align: justify;
}

.page-promotions__card-button {
  width: 100%;
  max-width: 250px;
}

/* Terms Section */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-promotions__terms-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__terms-subtitle {
  font-size: 1.3em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.page-promotions__terms-text {
  font-size: 1em;
  color: var(--color-text-secondary);
}

/* How-To-Claim Section */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-promotions__steps-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-promotions__steps-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-main);
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--color-glow);
}

.page-promotions__steps-subtitle {
  font-size: 1.4em;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.page-promotions__steps-text {
  font-size: 1em;
  color: var(--color-text-secondary);
}

/* Video Section */
.page-promotions__video-section {
  padding: 60px 0;
  background-color: var(--color-card-bg);
  text-align: center;
}

.page-promotions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-border);
}

.page-promotions__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-promotions__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  color: var(--color-text-main);
  font-weight: bold;
  background-color: var(--color-deep-green);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-item summary:hover {
  background-color: var(--color-primary);
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: var(--color-text-secondary);
  background-color: var(--color-card-bg);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Floating Buttons */
.page-promotions__floating-buttons {
  display: none; /* Hidden by default, shown on mobile */
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__section,
  .page-promotions__promo-card,
  .page-promotions__terms-item,
  .page-promotions__steps-item,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__faq-item,
  .page-promotions__floating-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }

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

  .page-promotions__text-block {
    font-size: 1em;
  }

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

  .page-promotions__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__terms-list,
  .page-promotions__steps-list {
    gap: 20px;
  }

  .page-promotions__video-section {
    padding-top: 10px !important;
  }

  .page-promotions video,
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  /* Floating Buttons on Mobile */
  .page-promotions__floating-buttons {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    justify-content: space-around;
    padding: 10px 0;
  }

  .page-promotions__floating-btn {
    display: block;
    flex: 1;
    text-align: center;
    padding: 12px 0;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
  }

  .page-promotions__floating-btn--register {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: 2px solid var(--color-primary);
  }

  .page-promotions__floating-btn--login {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
  }
}

/* Desktop specific video container width rule */
.page-promotions__video-container {
  width: 100%; /* Ensure width is 100% on desktop, alongside max-width */
}