/* style/promotions.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

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

.page-promotions {
  color: var(--color-text-main); /* Deep Green background, so light text */
  background-color: var(--color-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions__dark-section {
  background-color: var(--color-background);
  color: var(--color-text-main);
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small decorative padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: -300px; /* Adjust to pull content up over the image */
  padding: 40px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text block */
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--color-glow);
}

.page-promotions__btn-secondary {
  background: none;
  color: var(--color-glow);
  border: 2px solid var(--color-glow);
}

.page-promotions__btn-secondary:hover {
  background: var(--color-glow);
  color: var(--color-background);
}

.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-promotions__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

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

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-promotions__card-button:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px var(--color-glow);
}

.page-promotions__steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__step-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background: var(--button-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-promotions__step-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__step-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--color-deep-green);
  color: var(--color-text-main);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-promotions__step-button:hover {
  background: var(--color-glow);
  color: var(--color-background);
  border-color: var(--color-glow);
}

.page-promotions__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__feature-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
}

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

.page-promotions__feature-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

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

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

.page-promotions__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--color-text-main);
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary:hover {
  background-color: var(--color-primary);
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--color-text-main);
}

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

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  background-color: var(--color-card-bg);
}

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

.page-promotions__conclusion-section {
  padding-bottom: 80px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -200px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-content {
    margin-top: -150px;
    padding: 20px;
    max-width: 90%;
  }

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

  .page-promotions__intro-text,
  .page-promotions__section-description,
  .page-promotions__card-text,
  .page-promotions__step-text,
  .page-promotions__feature-text,
  .page-promotions__faq-answer {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

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

  .page-promotions__card-grid,
  .page-promotions__steps-container,
  .page-promotions__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__card,
  .page-promotions__step-item,
  .page-promotions__feature-item,
  .page-promotions__faq-item {
    padding: 20px;
  }

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button,
  .page-promotions__step-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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__hero-image-wrapper,
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important;
  }
}

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

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 10vw, 2.2rem);
  }

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