/* style/promotions.css */

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

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--k88cc-text-main); /* Default text color for the main content area */
  background-color: var(--k88cc-background);
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--k88cc-deep-green);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for text */
  border-radius: 8px;
  margin-top: -100px; /* Overlap slightly with image for design */
}

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

.page-promotions__description {
  font-size: 1.1rem;
  color: var(--k88cc-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-button {
  display: inline-block;
  background: var(--k88cc-button-gradient);
  color: var(--k88cc-text-main);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* Section Styling */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--k88cc-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promotions__text-block {
  font-size: 1rem;
  color: var(--k88cc-text-secondary);
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__overview-section,
.page-promotions__how-to-claim,
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--k88cc-dark-section-bg, var(--k88cc-card-bg));
  color: var(--k88cc-text-main);
}

.page-promotions__promotion-types,
.page-promotions__terms-conditions,
.page-promotions__conclusion-section {
  padding: 80px 0;
  background-color: var(--k88cc-background);
  color: var(--k88cc-text-main);
}

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

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

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--k88cc-glow);
}

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

.page-promotions__card-title {
  font-size: 1.5rem;
  color: var(--k88cc-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-promotions__feature-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 20px 0;
  text-align: left;
  width: 100%;
}

.page-promotions__feature-item {
  font-size: 1rem;
  color: var(--k88cc-text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__feature-item p {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--k88cc-text-secondary);
  margin-top: 5px;
  text-align: left;
}

.page-promotions__card-button {
  display: inline-block;
  background: var(--k88cc-button-gradient);
  color: var(--k88cc-text-main);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: auto; /* Push button to the bottom */
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* How to Claim Section */
.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
}

.page-promotions__step-item {
  background-color: var(--k88cc-background);
  border: 1px solid var(--k88cc-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--k88cc-text-main);
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.page-promotions__step-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Terms & Conditions Section */
.page-promotions__terms-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0 auto 40px auto;
  max-width: 800px;
  color: var(--k88cc-text-secondary);
}

.page-promotions__terms-item {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-promotions__terms-item strong {
  color: var(--k88cc-text-main);
}

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

.page-promotions__faq-item {
  background-color: var(--k88cc-background);
  border: 1px solid var(--k88cc-border);
  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.1rem;
  font-weight: bold;
  color: var(--k88cc-text-main);
  cursor: pointer;
  background-color: var(--k88cc-card-bg);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--k88cc-gold);
}

.page-promotions__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--k88cc-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
  padding-top: 10px;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: var(--k88cc-deep-green);
}

/* Conclusion Section */
.page-promotions__conclusion-section {
  text-align: center;
  padding: 60px 0;
}

/* Responsive Design */
/* All images basic responsive styles */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons basic responsive styles */
.page-promotions__cta-button,
.page-promotions__card-button {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -50px;
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    margin-top: -30px;
    padding: 20px 10px;
  }

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

  .page-promotions__description {
    font-size: 1rem;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-promotions__text-block,
  .page-promotions__step-item,
  .page-promotions__terms-item,
  .page-promotions__card-description,
  .page-promotions__faq-question {
    font-size: 0.95rem;
  }

  .page-promotions__overview-section,
  .page-promotions__promotion-types,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    padding: 50px 0;
  }

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

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

  /* Force responsive for all images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all buttons and button containers */
  .page-promotions__cta-button,
  .page-promotions__card-button {
    max-width: 100% !important;
    width: 100% !important; /* Ensure full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !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;
    overflow: hidden !important;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles header offset */
  }
}