:root {
  --main-color: #E53935;
  --aux-color: #FF5A4F;
  --card-bg: #FFFFFF;
  --background: #F5F7FA;
  --text-main: #333333;
  --border-color: #E0E0E0;
}

.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* #333333 */
  background-color: var(--background); /* #F5F7FA */
  line-height: 1.6;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  background-color: var(--main-color); /* #E53935 */
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

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

.page-khuyen-mai__hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: #ffffff;
}

.page-khuyen-mai__hero-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Use clamp for H1 */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-khuyen-mai__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-khuyen-mai__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, var(--aux-color) 0%, var(--main-color) 100%); /* #FF5A4F to #E53935 */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-khuyen-mai__section {
  padding: 60px 0;
  background-color: var(--background);
}

.page-khuyen-mai__section:nth-of-type(even) {
  background-color: #f0f2f5; /* Slightly different background for alternating sections */
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main); /* #333333 */
  text-align: center;
  margin-bottom: 20px;
}

.page-khuyen-mai__section-intro,
.page-khuyen-mai__section-text {
  font-size: 1.05em;
  color: var(--text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-khuyen-mai__card {
  background-color: var(--card-bg); /* #FFFFFF */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-khuyen-mai__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-khuyen-mai__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--main-color); /* #E53935 */
  margin-bottom: 15px;
}

.page-khuyen-mai__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, var(--aux-color) 0%, var(--main-color) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__card-button:hover {
  opacity: 0.9;
}

/* Product Specific Promotions */
.page-khuyen-mai__subsection-title {
  font-size: 2em;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin: 60px 0 30px 0;
}

.page-khuyen-mai__product-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-khuyen-mai__product-promo-card {
  background-color: var(--card-bg);
  border-left: 5px solid var(--main-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

.page-khuyen-mai__product-promo-heading {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 10px;
}

.page-khuyen-mai__product-promo-text {
  font-size: 0.95em;
  line-height: 1.5;
  text-align: left; /* Override center alignment */
}

/* Terms and Conditions */
.page-khuyen-mai__terms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuyen-mai__terms-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

.page-khuyen-mai__terms-heading {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 15px;
}

.page-khuyen-mai__terms-text {
  font-size: 1em;
  line-height: 1.6;
  text-align: left; /* Override center alignment */
}

.page-khuyen-mai__btn-secondary {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  padding: 12px 25px;
  background-color: transparent;
  color: var(--main-color); /* #E53935 */
  border: 2px solid var(--main-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: var(--main-color);
  color: #ffffff;
}

/* How to Claim Section */
.page-khuyen-mai__claim-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuyen-mai__claim-step-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-main);
}

.page-khuyen-mai__claim-step-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-khuyen-mai__claim-step-heading {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-khuyen-mai__claim-step-text {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-khuyen-mai__claim-step-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, var(--aux-color) 0%, var(--main-color) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 auto;
  transition: background 0.3s ease;
  max-width: calc(100% - 30px); /* Account for padding */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__claim-step-button:hover {
  opacity: 0.9;
}

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

.page-khuyen-mai__tip-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  color: var(--text-main);
}

.page-khuyen-mai__tip-heading {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 15px;
}

.page-khuyen-mai__tip-text {
  font-size: 1em;
  line-height: 1.6;
}

/* Conclusion Section */
.page-khuyen-mai__section--conclusion {
  background-color: var(--main-color); /* #E53935 */
  color: #ffffff;
  padding: 80px 0;
}

.page-khuyen-mai__section--conclusion .page-khuyen-mai__section-title {
  color: #ffffff;
}

.page-khuyen-mai__section--conclusion .page-khuyen-mai__section-text {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-khuyen-mai__conclusion-cta-wrapper {
  text-align: center;
}

.page-khuyen-mai__conclusion-cta-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #ffffff;
  color: var(--main-color); /* #E53935 */
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__conclusion-cta-button:hover {
  background-color: var(--aux-color); /* #FF5A4F */
  color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-khuyen-mai__promotion-grid,
  .page-khuyen-mai__terms-list,
  .page-khuyen-mai__claim-steps-grid,
  .page-khuyen-mai__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-khuyen-mai__product-promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
}

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