/* style/promotions.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
/* 
  Màu sắc tùy chỉnh:
  - Nút: linear-gradient(180deg, #2AD16F 0%, #13994A 100%)
  - Nền Card: #11271B
  - Nền chính: #08160F
  - Văn bản chính: #F2FFF6
  - Văn bản phụ: #A7D9B8
  - Viền: #2E7A4E
  - Phát sáng: #57E38D
  - Vàng: #F2C14E
  - Chia tách: #1E3A2A
  - Xanh đậm: #0A4B2C
*/

.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Sử dụng màu văn bản chính */
  background-color: var(--bg-main, #08160F); /* Sử dụng màu nền chính */
  line-height: 1.6;
}

.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;
}

.page-promotions__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* 上图下文 */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body đã có padding-top, đây chỉ cần 10px */
  background-color: var(--bg-main, #08160F); /* Fallback to main background */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #FFFFFF;
  border: none;
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-main, #F2FFF6);
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--gold, #F2C14E);
  border-radius: 2px;
}

.page-promotions__text-block {
  font-size: 1.05rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  text-align: left;
}

.page-promotions__highlight {
  color: var(--gold, #F2C14E);
  font-weight: bold;
}

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

.page-promotions__card {
  background-color: var(--card-bg, #11271B); /* Sử dụng màu nền Card */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E); /* Sử dụng màu viền */
}

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

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

.page-promotions__card-title {
  font-size: 1.5rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-description {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 25px;
  flex-grow: 1; /* Allows description to take available space */
  text-align: left;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--gold, #F2C14E);
  color: var(--bg-main, #08160F);
  transform: translateY(-2px);
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  margin-top: 20px;
}

.page-promotions__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__list-item::before {
  content: '✓'; /* Checkmark icon */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold, #F2C14E);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

.page-promotions__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-promotions__text-content {
  text-align: left;
}

.page-promotions__image-wrapper {
  text-align: center;
}

.page-promotions__image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  display: block;
  margin: 0 auto;
}

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

.page-promotions__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-promotions__faq-item[open] {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Slightly darker for question header */
  border-bottom: 1px solid var(--divider, #1E3A2A);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C);
  filter: brightness(1.2);
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

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

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
  padding-top: 0; /* Adjust padding for smooth transition */
}

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

.page-promotions__cta-section {
  background-color: var(--deep-green, #0A4B2C);
  padding: 80px 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-promotions__content-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__hero-content {
    padding: 20px 15px;
  }
  .page-promotions__main-title {
    font-size: 2.2rem;
  }
  .page-promotions__hero-description {
    font-size: 1rem;
  }
  .page-promotions__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-promotions__promotion-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__card {
    padding: 20px;
  }
  .page-promotions__card-title {
    font-size: 1.3rem;
  }
  .page-promotions__card-description,
  .page-promotions__text-block,
  .page-promotions__list-item,
  .page-promotions__faq-answer {
    font-size: 0.95rem;
  }
  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-promotions__cta-button,
  .page-promotions__card-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }
  /* Force responsive images and containers */
  .page-promotions img {
    max-width: 100% !important;
    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__promotion-card,
  .page-promotions__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column; /* 移动端垂直排列 */
  }
}