:root {
  --color-primary: #113B7A;
  --color-secondary: #1D5FD1;
  --color-button-gradient-start: #2B73F6;
  --color-button-gradient-end: #1144A6;
  --color-card-bg: #10233F;
  --color-text-main: #F3F8FF;
  --color-text-secondary: #AFC4E8;
  --color-border: #244D84;
  --color-glow: #4FA8FF;
  --color-gold: #F2C14E;
  --color-divider: #1B3357;
  --color-deep-navy: #08162B;
}

.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: var(--color-text-main); /* Default text color for the page, suitable for dark body background */
  background-color: var(--color-deep-navy); /* Assuming body background is dark from shared.css */
}

.page-khuyen-mai__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

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

.page-khuyen-mai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  padding-bottom: 60px;
  background-color: var(--color-deep-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-khuyen-mai__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default to cover for desktop */
  display: block;
}

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

.page-khuyen-mai__hero-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
  text-align: center;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-khuyen-mai__btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.page-khuyen-mai__btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__text-block {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
  text-align: justify;
}

.page-khuyen-mai__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-khuyen-mai__promotion-card {
  background: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-khuyen-mai__card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-khuyen-mai__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-khuyen-mai__card-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-khuyen-mai__card-button {
  margin-top: auto;
}