/* style/promotions.css */
:root {
  --primary-color: #FF4500; /* Orange-Red */
  --secondary-color: #007BFF; /* Bright Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #212529;
  --border-color: #e0e0e0;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

.page-promotions-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions-section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions-section:nth-of-type(even) {
  background-color: #f0f2f5;
}

.page-promotions-section-title {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-promotions-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions-hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--background-dark); /* Fallback */
}

.page-promotions-hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions-hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%;
  color: var(--text-light);
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 10px;
}

.page-promotions-hero-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions-hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-promotions-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
  text-transform: uppercase;
}

.page-promotions-cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.page-promotions-secondary-cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.page-promotions-secondary-cta-button:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

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

.page-promotions-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-promotions-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions-card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  min-height: 50px;
}

.page-promotions-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions-card-title a:hover {
  color: var(--secondary-color);
}

.page-promotions-card-description {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-promotions-card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-promotions-card-button:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Promotion Details */
.page-promotions-detail-block {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.page-promotions-detail-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-promotions-detail-block .page-promotions-text {
  font-size: 1.05em;
  margin-bottom: 15px;
  text-align: justify;
}

/* Terms and Conditions */
.page-promotions-terms .page-promotions-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-terms .page-promotions-list li {
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions-terms .page-promotions-list li p {
  margin: 0;
}

.page-promotions-terms .page-promotions-list li strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-promotions-faq-items {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--text-dark);
  flex-grow: 1;
  text-align: left;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #444;
  text-align: justify;
}

/* Guide Section */
.page-promotions-guide-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  counter-reset: guide-step;
}

.page-promotions-guide-list li {
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  padding: 20px 20px 20px 60px;
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.page-promotions-guide-list li::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  position: absolute;
  left: 15px;
  top: 15px;
  background: var(--primary-color);
  color: var(--text-light);
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9em;
}

.page-promotions-guide-list li p {
  margin: 0;
}

.page-promotions-action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-hero-title {
    font-size: 3em;
  }
  .page-promotions-hero-description {
    font-size: 1.2em;
  }
  .page-promotions-section-title {
    font-size: 2.5em;
  }
  .page-promotions-detail-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-promotions-section {
    padding: 40px 0;
  }
  .page-promotions-section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-promotions-text {
    font-size: 1em;
    text-align: left;
  }
  .page-promotions-hero-content {
    padding: 20px;
    width: 95%;
  }
  .page-promotions-hero-title {
    font-size: 2.2em;
  }
  .page-promotions-hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-promotions-cta-button, .page-promotions-secondary-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions-card-image {
    height: 180px;
  }
  .page-promotions-card-title {
    font-size: 1.4em;
  }
  .page-promotions-detail-block {
    padding: 20px;
  }
  .page-promotions-detail-title {
    font-size: 1.5em;
  }
  .faq-question {
    padding: 12px 15px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px;
  }
  .page-promotions-guide-list li {
    padding: 15px 15px 15px 50px;
  }
  .page-promotions-guide-list li::before {
    left: 10px;
    top: 10px;
    padding: 3px 8px;
    font-size: 0.8em;
  }
  .page-promotions-action-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions-hero-title {
    font-size: 1.8em;
  }
  .page-promotions-hero-description {
    font-size: 0.9em;
  }
  .page-promotions-cta-button, .page-promotions-secondary-cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-promotions-section-title {
    font-size: 1.8em;
  }
  .page-promotions-card-title {
    font-size: 1.2em;
  }
  .page-promotions-card-description {
    font-size: 0.85em;
  }
  .page-promotions-detail-title {
    font-size: 1.3em;
  }
}