/* style/promotions.css */

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

/* Base styles for the page content, assuming body has a dark background */
.page-promotions {
  background-color: var(--w388-background);
  color: var(--w388-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

.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, 2.8rem);
  color: var(--w388-gold);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-promotions__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--w388-text-secondary);
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--w388-deep-green);
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 1920px; /* Use max-width for original image size */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

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

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--w388-gold);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-promotions__intro-description {
  font-size: 1.2em;
  color: var(--w388-text-main);
  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;
  font-size: 1.1em;
  cursor: pointer;
  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(--w388-btn-gradient);
  color: var(--w388-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

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

/* Dark Section */
.page-promotions__dark-section {
  background-color: var(--w388-deep-green);
  padding: 60px 0;
}

/* Types of Promotions Section */
.page-promotions__types-section {
  padding: 60px 0;
  background-color: var(--w388-background);
}

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

.page-promotions__promotion-category.page-promotions__card {
  background-color: var(--w388-card-bg);
  border: 1px solid var(--w388-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promotion-category.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__category-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-promotions__category-title {
  font-size: 1.5em;
  color: var(--w388-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__category-description {
  color: var(--w388-text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
}

/* Featured Promotions */
.page-promotions__featured-section {
  padding: 60px 0;
}

.page-promotions__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-promotions__promotion-card.page-promotions__card {
  background-color: var(--w388-card-bg);
  border: 1px solid var(--w388-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-promotions__card-title {
  font-size: 1.3em;
  color: var(--w388-gold);
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-promotions__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-promotions__card-title a:hover {
  text-decoration: underline;
}

.page-promotions__card-description {
  color: var(--w388-text-secondary);
  font-size: 0.9em;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-promotions__promotion-card .page-promotions__btn-primary {
  margin: 0 20px 20px 20px;
}

/* Guide Section */
.page-promotions__guide-section {
  padding: 60px 0;
  background-color: var(--w388-background);
}

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

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

.page-promotions__step-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-promotions__step-description {
  color: var(--w388-text-secondary);
  font-size: 0.95em;
}

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

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding: 60px 0;
}

.page-promotions__why-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-promotions__list-item {
  background-color: var(--w388-card-bg);
  border: 1px solid var(--w388-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--w388-text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__list-item strong {
  color: var(--w388-gold);
}

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

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

.page-promotions__faq-item {
  background-color: var(--w388-card-bg);
  border: 1px solid var(--w388-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--w388-gold);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--w388-glow);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--w388-text-secondary);
  font-size: 1em;
}

.page-promotions__faq-answer p {
  margin: 0;
}

/* Call to Action Section */
.page-promotions__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__cta-section .page-promotions__section-title {
  margin-bottom: 20px;
}

.page-promotions__cta-section .page-promotions__text-block {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  
  .page-promotions__hero-image {
    height: 300px;
  }

  .page-promotions__main-title {
    font-size: 2.2em;
  }

  .page-promotions__intro-description {
    font-size: 1em;
  }

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

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

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

  .page-promotions__promotion-card .page-promotions__btn-primary {
    width: calc(100% - 40px);
  }

  .page-promotions__promotion-category.page-promotions__card,
  .page-promotions__promotion-card.page-promotions__card,
  .page-promotions__step-item.page-promotions__card {
    padding: 20px;
  }

  .page-promotions__category-icon,
  .page-promotions__step-image {
    width: 80px;
    height: 80px;
  }
  
  /* Mobile specific overrides for images, videos, buttons */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
  }
}