/* style/promotions.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */

:root {
  --pho88-primary-color: #26A9E0;
  --pho88-secondary-color: #FFFFFF;
  --pho88-login-color: #EA7C07;
  --pho88-text-dark: #333333;
  --pho88-text-light: #ffffff;
  --pho88-bg-light: #ffffff;
  --pho88-bg-dark: #26A9E0;
  --pho88-border-color: #e0e0e0;
}

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

.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-top: 10px; /* Nhỏ gọn, không dùng var(--header-offset) */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--pho88-bg-light);
}

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

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

.page-promotions__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--pho88-primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--pho88-primary-color);
  color: var(--pho88-text-light);
  border: 2px solid var(--pho88-primary-color);
}

.page-promotions__btn-primary:hover {
  background: darken(var(--pho88-primary-color), 10%);
  border-color: darken(var(--pho88-primary-color), 10%);
}

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

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

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 0;
  background-color: var(--pho88-bg-light);
  color: var(--pho88-text-dark);
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--pho88-primary-color);
}

.page-promotions__text-block {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-promotions__feature-item {
  text-align: center;
  background: var(--pho88-bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-promotions__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--pho88-primary-color);
}

.page-promotions__feature-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--pho88-text-dark);
}

/* Promo Grid Section */
.page-promotions__promo-grid {
  padding: 60px 0;
  background-color: var(--pho88-bg-dark);
  color: var(--pho88-text-light);
}

.page-promotions__text-block--white {
  color: var(--pho88-text-light);
}

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

.page-promotions__card {
  background: var(--pho88-bg-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: var(--pho88-text-dark);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  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.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-promotions__card-title a {
  color: var(--pho88-primary-color);
  text-decoration: none;
}

.page-promotions__card-title a:hover {
  text-decoration: underline;
}

.page-promotions__card-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__card-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 15px;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--pho88-login-color);
  color: var(--pho88-text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background: darken(var(--pho88-login-color), 10%);
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 0;
  background-color: var(--pho88-bg-light);
  color: var(--pho88-text-dark);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-promotions__terms-item {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--pho88-border-color);
}

.page-promotions__terms-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--pho88-primary-color);
}

.page-promotions__terms-description {
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-promotions__link {
  color: var(--pho88-primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-promotions__link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--pho88-bg-light);
  color: var(--pho88-text-dark);
}

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

.page-promotions__faq-item {
  background: #f9f9f9;
  border: 1px solid var(--pho88-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pho88-primary-color);
  cursor: pointer;
  background: var(--pho88-secondary-color);
  border-bottom: 1px solid var(--pho88-border-color);
}

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

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

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

/* Hide default details arrow */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* CTA Bottom Section */
.page-promotions__cta-bottom {
  padding: 60px 0;
  background-color: var(--pho88-bg-dark);
  color: var(--pho88-text-light);
  text-align: center;
}

.page-promotions__section-title--white {
  color: var(--pho88-text-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__description {
    font-size: 1rem;
  }
  .page-promotions__feature-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .page-promotions__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-promotions__terms-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section,
  .page-promotions__overview-section,
  .page-promotions__promo-grid,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-content {
    padding: 0 15px;
  }

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

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .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__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .page-promotions__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions__terms-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions__card-content {
    padding: 20px;
  }

  .page-promotions__card-title {
    font-size: 1.15rem;
  }

  .page-promotions__card-description {
    font-size: 0.9rem;
  }

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

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

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-grid,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom {
    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-section {
    padding-bottom: 30px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-promotions__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .page-promotions__card-image {
    height: 150px;
  }
}