/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Sử dụng màu chữ chính */
  background-color: var(--background-color); /* Sử dụng màu nền chính */
}

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

.page-promotions__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

.page-promotions__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color);
  line-height: 1.2;
}

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

/* Hero Section */
.page-promotions__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}

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

.page-promotions__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background: rgba(8, 22, 15, 0.7); /* Dark background with transparency */
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-sizing: border-box;
}

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

.page-promotions__description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary,
.page-promotions__card-button.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary,
.page-promotions__card-button.page-promotions__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--border-color);
}

.page-promotions__btn-secondary:hover,
.page-promotions__card-button.page-promotions__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: rgba(46, 122, 78, 0.2);
}

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

.page-promotions__promo-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
}

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

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

.page-promotions__card-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

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

.page-promotions__card-button {
  width: auto;
  margin-top: auto; /* Push button to bottom */
}

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

.page-promotions__step-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.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: 2em;
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

/* Terms List */
.page-promotions__terms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.page-promotions__terms-item {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
}

.page-promotions__terms-item .page-promotions__card-title {
  font-size: 1.4em;
  color: var(--glow-color);
  margin-bottom: 10px;
}

.page-promotions__terms-item .page-promotions__card-text {
  font-size: 0.95em;
  color: var(--text-secondary-color);
}

.page-promotions__read-more {
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-secondary-color);
}

.page-promotions__read-more a {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__read-more a:hover {
  text-decoration: underline;
}

/* FAQ List */
.page-promotions__faq-list {
  margin-top: 50px;
  text-align: left;
}

.page-promotions__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
  list-style: none;
  user-select: none;
}

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

details.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid var(--divider-color);
}

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

.page-promotions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

details.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

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

/* Global image styles */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2.2em;
  }

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

  .page-promotions__hero-content {
    padding: 30px;
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    min-height: 500px;
  }

  .page-promotions__hero-content {
    padding: 20px;
    max-width: 90%;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-promotions__description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%; /* Ensure buttons take full width */
  }

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

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

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

  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__terms-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__terms-item,
  .page-promotions__faq-item {
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
    box-sizing: border-box !important;
  }

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

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

  .page-promotions__card-text {
    font-size: 0.9em;
  }

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

  .page-promotions__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.9em;
  }

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

  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__terms-item,
  .page-promotions__faq-item,
  .page-promotions__cta-buttons,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__terms-list,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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