/* style/promotions.css */

/* Custom Colors */
:root {
  --page-promotions-bg: #0D0E12;
  --page-promotions-card-bg: #17191F;
  --page-promotions-text-main: #FFF3E6;
  --page-promotions-border: #A84F0C;
  --page-promotions-glow: #FFB04D;
  --page-promotions-deep-orange: #D96800;
  --page-promotions-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-promotions {
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
  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;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles top padding, use small decorative padding */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-promotions__hero-content {
  position: relative; /* Ensure content is above the image but not overlapping it in 3D space */
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the bottom part of the image for visual flow, but not overlapping text onto image */
  z-index: 1;
  background: linear-gradient(0deg, var(--page-promotions-bg) 0%, rgba(13, 14, 18, 0.8) 50%, rgba(13, 14, 18, 0) 100%);
  border-radius: 10px;
}

.page-promotions__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #ffffff; /* Ensure high contrast */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.page-promotions__cta-button {
  display: inline-block;
  background: var(--page-promotions-button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  opacity: 0.9;
}

.page-promotions__cta-button--secondary {
  background: none;
  border: 2px solid var(--page-promotions-border);
  color: var(--page-promotions-text-main);
  box-shadow: none;
}

.page-promotions__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.page-promotions__cta-button--final {
  width: 100%;
  max-width: 400px;
  margin-top: 30px;
}

/* General Sections */
.page-promotions__introduction-section,
.page-promotions__promotion-categories,
.page-promotions__terms-conditions-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__conclusion-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-promotions__section-title {
  font-size: 2.2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-promotions__text-block a {
  color: var(--page-promotions-glow);
  text-decoration: none;
}

.page-promotions__text-block a:hover {
  text-decoration: underline;
}

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

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

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 140, 26, 0.2);
}

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

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-promotions__card-button {
  display: inline-block;
  background: var(--page-promotions-button-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background 0.3s ease;
  text-align: center;
  border: none;
}

.page-promotions__card-button:hover {
  opacity: 0.9;
}

/* Lists */
.page-promotions__styled-list,
.page-promotions__numbered-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-promotions__styled-list li,
.page-promotions__numbered-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--page-promotions-text-main);
}

.page-promotions__styled-list li::before {
  content: '•';
  color: var(--page-promotions-glow);
  position: absolute;
  left: 0;
  font-size: 1.5em;
  line-height: 1;
  top: 0;
}

.page-promotions__numbered-list {
  counter-reset: promotion-step;
}

.page-promotions__numbered-list li::before {
  counter-increment: promotion-step;
  content: 'Bước ' counter(promotion-step) ': ';
  color: var(--page-promotions-glow);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* FAQ Section */
.page-promotions__faq-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 0 auto 40px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__faq-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-promotions__faq-item[open] {
  background-color: var(--page-promotions-deep-orange);
  box-shadow: 0 5px 20px rgba(255, 140, 26, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-promotions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-promotions-glow);
}

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

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

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

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

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

  .page-promotions__hero-content {
    margin-top: -100px;
  }
}

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

  .page-promotions__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-promotions__main-title {
    font-size: 2em !important;
  }

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

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-promotions__introduction-section,
  .page-promotions__promotion-categories,
  .page-promotions__terms-conditions-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    padding: 40px 0;
  }

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

  .page-promotions__card-image {
    height: 200px;
  }

  .page-promotions__card-title {
    font-size: 1.3em;
  }

  .page-promotions__text-block,
  .page-promotions__styled-list li,
  .page-promotions__numbered-list li,
  .page-promotions__faq-answer {
    font-size: 0.95em;
  }

  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  .page-promotions__hero-image-wrapper,
  .page-promotions__container,
  .page-promotions__promotion-categories,
  .page-promotions__grid-layout,
  .page-promotions__card,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Mobile button responsiveness */
  .page-promotions__cta-button,
  .page-promotions__card-button,
  .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;
  }

  /* Ensure content sections have padding */
  .page-promotions__introduction-section .page-promotions__container,
  .page-promotions__terms-conditions-section .page-promotions__container,
  .page-promotions__how-to-claim-section .page-promotions__container,
  .page-promotions__conclusion-section .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em !important;
  }

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

  .page-promotions__hero-content {
    margin-top: -60px;
  }

  .page-promotions__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-promotions__card-title {
    font-size: 1.2em;
  }
}