/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

/* Section spacing */
.page-promotions__section {
  padding: 60px 0;
}

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Color contrast classes */
.page-promotions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-promotions__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: #FFFFFF;
}

.page-promotions__dark-bg .page-promotions__section-description {
  color: #F0F0F0;
}

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles padding-top from header */
  background-color: #F8F8F8;
  text-align: center;
  overflow: hidden;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 100%; /* Ensure image does not overflow */
}

.page-promotions__hero-content {
  max-width: 900px;
  padding: 40px 20px 0;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-promotions__description-text {
  font-size: 20px;
  color: #555555;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
}

.page-promotions__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
  background-color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-promotions__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #F0F8FF;
  color: #1a8ccb;
  border-color: #1a8ccb;
}

/* Login button specific style */
.page-promotions__btn-login {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-promotions__btn-login:hover {
  background-color: #cc6a00;
  border-color: #cc6a00;
}

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

.page-promotions__promotion-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promotion-card:hover {
  transform: translateY(-5px);
}

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

.page-promotions__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__card-text {
  font-size: 16px;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #EA7C07;
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background-color: #cc6a00;
}

/* VIP Program Section */
.page-promotions__vip-program .page-promotions__section-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px auto;
  display: block;
  max-width: 100%;
  object-fit: cover;
}

.page-promotions__vip-benefits {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.page-promotions__vip-item {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.page-promotions__vip-item::before {
  content: '✓';
  color: #FFFFFF;
  font-weight: bold;
  margin-right: 10px;
}

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

.page-promotions__step-item {
  background-color: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
}

.page-promotions__step-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__step-item p {
  font-size: 16px;
  color: #555555;
}

.page-promotions__step-item a {
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
}

.page-promotions__step-item a:hover {
  text-decoration: underline;
}

/* Terms & Conditions Section */
.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-promotions__terms-item {
  font-size: 16px;
  color: #555555;
  margin-bottom: 10px;
}

.page-promotions__terms-item:last-child {
  margin-bottom: 0;
}

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

.page-promotions__faq-item {
  background-color: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-item[open] {
  background-color: #FFFFFF;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #FFFFFF;
  border-radius: 10px;
  list-style: none; /* Hide default marker for details/summary */
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #555555;
}

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

/* CTA Bottom Section */
.page-promotions__cta-bottom {
  text-align: center;
}

.page-promotions__cta-bottom .page-promotions__section-title {
  color: #FFFFFF;
}

.page-promotions__cta-bottom .page-promotions__section-description {
  color: #F0F0F0;
}

.page-promotions__cta-bottom .page-promotions__cta-buttons {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-promotions__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__vip-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px !important;
  }

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

  .page-promotions__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-promotions__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-promotions__main-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .page-promotions__description-text {
    font-size: 18px;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-login,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Image responsive rules */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__hero-image-wrapper,
  .page-promotions__promotion-card,
  .page-promotions__vip-program .page-promotions__section-image,
  .page-promotions__card-image,
  .page-promotions__section,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__vip-benefits {
    padding: 0 15px;
  }
  
  .page-promotions__vip-item {
    grid-column: span 2; /* Make VIP items full width on mobile */
  }

  .page-promotions__claim-steps,
  .page-promotions__terms-list,
  .page-promotions__faq-list {
    margin: 30px auto;
    padding: 0 15px;
  }

  .page-promotions__step-item,
  .page-promotions__faq-item {
    padding: 15px;
  }

  .page-promotions__faq-question {
    padding: 15px;
  }

  .page-promotions__faq-qtext {
    font-size: 16px;
  }

  .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }
  
  /* Ensure all content areas have appropriate padding on mobile */
  .page-promotions__hero-content,
  .page-promotions__highlight-promotions .page-promotions__container,
  .page-promotions__vip-program .page-promotions__container,
  .page-promotions__how-to-claim .page-promotions__container,
  .page-promotions__terms-conditions .page-promotions__container,
  .page-promotions__faq-section .page-promotions__container,
  .page-promotions__cta-bottom .page-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}