/* style/promotions.css */

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

/* Base Styles for .page-promotions */
.page-promotions {
  color: var(--go9-text-main); /* Default text color for the page */
  background-color: var(--go9-bg-dark); /* Page background from custom color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--go9-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background: var(--go9-card-bg);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
}

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

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-promotions__main-title {
  font-weight: bold;
  color: var(--go9-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
}

.page-promotions__description {
  font-size: 1.2em;
  color: var(--go9-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.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;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--go9-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary {
  background-color: var(--go9-deep-green);
  color: var(--go9-secondary);
  border: 1px solid var(--go9-border);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--go9-border);
  color: var(--go9-text-main);
}

/* Sections */
.page-promotions__intro-section,
.page-promotions__claim-guide-section,
.page-promotions__why-go9-section,
.page-promotions__final-cta-section {
  padding: 80px 0;
  background-color: var(--go9-bg-dark);
}

.page-promotions__categories-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--go9-card-bg);
}

.page-promotions__dark-bg {
  background-color: var(--go9-card-bg);
  color: var(--go9-text-main);
}

.page-promotions__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure images are responsive by default */
}

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

.page-promotions__card {
  background-color: var(--go9-deep-green);
  border: 1px solid var(--go9-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--go9-text-secondary);
}

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

.page-promotions__card ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 20px;
}

.page-promotions__card ul li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--go9-text-secondary);
}

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

.page-promotions__card .page-promotions__btn-secondary {
  margin-top: 20px;
  align-self: flex-start;
}

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

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

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--go9-btn-gradient);
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

/* Terms List */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__terms-list li {
  background-color: var(--go9-deep-green);
  border: 1px solid var(--go9-divider);
  border-left: 5px solid var(--go9-secondary);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  color: var(--go9-text-secondary);
  line-height: 1.5;
}

.page-promotions__terms-list li strong {
  color: var(--go9-text-main);
}

/* Advantages List */
.page-promotions__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-promotions__advantage-list li {
  background-color: var(--go9-card-bg);
  border: 1px solid var(--go9-border);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  padding-left: 50px;
  color: var(--go9-text-secondary);
}

.page-promotions__advantage-list li::before {
  content: '⭐';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--go9-text-main);
  font-size: 1.1em;
  background-color: var(--go9-card-bg);
  border-bottom: 1px solid var(--go9-border);
}

.page-promotions__faq-question::marker, /* Hide default marker for details */
.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--go9-secondary);
}

.page-promotions__faq-answer {
  padding: 20px;
  padding-top: 0;
  color: var(--go9-text-secondary);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid var(--go9-border);
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-promotions__final-cta-section .page-promotions__btn-primary {
  margin-top: 30px;
}

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

  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section,
  .page-promotions__intro-section,
  .page-promotions__categories-section,
  .page-promotions__claim-guide-section,
  .page-promotions__terms-section,
  .page-promotions__why-go9-section,
  .page-promotions__faq-section,
  .page-promotions__final-cta-section {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-promotions__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

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

  .page-promotions__promotion-grid,
  .page-promotions__guide-steps,
  .page-promotions__advantage-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card,
  .page-promotions__step-item,
  .page-promotions__terms-list li,
  .page-promotions__advantage-list li {
    padding: 20px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  
  .page-promotions__card .page-promotions__btn-secondary {
    align-self: stretch;
  }

  /* Mobile image, video, button adaptation */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__hero-image-wrapper,
  .page-promotions__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-promotions__hero-section {
    padding-top: 10px !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;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}