/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Màu cho nút login, có thể dùng làm điểm nhấn */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-color-light: #f9f9f9;
  --bg-color-white: #ffffff;
  --border-color: #e0e0e0;
}

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

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

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.2;
}

.page-promotions__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width within max-width */
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__main-title {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-color-light);
  margin-bottom: 15px;
  /* Use clamp for responsive font size without fixed large values */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-promotions__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
}

.page-promotions__cta-button:hover {
  background: #c76506; /* Darker secondary color */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__promo-card {
  background: var(--bg-color-white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-promotions__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

.page-promotions__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  align-self: flex-start; /* Align button to start */
}

.page-promotions__btn-primary:hover {
  background: #1e87b6; /* Darker primary color */
}

/* Terms and Conditions */
.page-promotions__terms-conditions {
  background-color: var(--bg-color-light);
  text-align: left;
}

.page-promotions__terms-list {
  list-style: disc;
  margin-left: 25px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-color-dark);
}

.page-promotions__link-text {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__link-text:hover {
  color: #1e87b6;
}

/* How to Claim */
.page-promotions__how-to-claim {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__text-block {
  color: var(--text-color-light);
}

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

.page-promotions__step-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.page-promotions__step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-promotions__step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color-light);
  margin-bottom: 15px;
}

.page-promotions__step-card p {
  font-size: 16px;
  color: var(--text-color-light);
}

.page-promotions__cta-wrapper {
  margin-top: 50px;
}

.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--bg-color-white);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-promotions__btn-secondary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--bg-color-white);
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-color-white);
  color: var(--text-color-dark);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: var(--bg-color-light);
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: var(--bg-color-light);
  border-radius: 0 0 5px 5px;
  text-align: left;
}

.page-promotions__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}

/* Conclusion */
.page-promotions__conclusion {
  background-color: var(--bg-color-light);
}

.page-promotions__conclusion .page-promotions__section-title {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__hero-description {
    font-size: 18px;
  }
  .page-promotions__promo-grid {
    gap: 20px;
  }
  .page-promotions__promo-card {
    padding: 20px;
    min-height: 420px;
  }
  .page-promotions__card-title {
    font-size: 20px;
  }
  .page-promotions__card-description {
    font-size: 15px;
  }
  .page-promotions__steps-grid {
    gap: 20px;
  }
  .page-promotions__step-number {
    font-size: 40px;
  }
  .page-promotions__step-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__container {
    padding: 0;
  }
  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-promotions__text-block {
    font-size: 16px;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-promotions__hero-description {
    font-size: 16px;
  }
  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-promotions__promo-card {
    padding: 20px;
    min-height: auto;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__terms-list {
    margin-left: 0;
    padding-left: 15px;
  }

  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-promotions__step-card {
    min-height: auto;
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px;
  }
  .page-promotions__faq-qtext {
    font-size: 15px;
  }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }
  .page-promotions__faq-answer p {
    font-size: 15px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: 24px;
  }
  .page-promotions__hero-description {
    font-size: 15px;
  }
  .page-promotions__cta-button {
    font-size: 15px;
  }
  .page-promotions__card-title {
    font-size: 18px;
  }
  .page-promotions__btn-primary {
    font-size: 15px;
  }
  .page-promotions__step-title {
    font-size: 20px;
  }
  .page-promotions__btn-secondary {
    font-size: 16px;
  }
}