/* CSS file: style/khuyen-mai.css */

:root {
  --page-khuyen-mai-primary-color: #2F6BFF;
  --page-khuyen-mai-secondary-color: #6FA3FF;
  --page-khuyen-mai-text-main: #1F2D3D;
  --page-khuyen-mai-text-dark: #000000;
  --page-khuyen-mai-card-bg: #FFFFFF;
  --page-khuyen-mai-section-bg: #F4F7FB;
  --page-khuyen-mai-border-color: #D6E2FF;
  --page-khuyen-mai-glow-color: #A5C4FF;
  --page-khuyen-mai-btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-khuyen-mai-text-main); /* Default text color for light background */
  background-color: var(--page-khuyen-mai-section-bg);
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Assuming body has padding-top from shared.css */
  background-color: var(--page-khuyen-mai-primary-color);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px; /* Add some padding at the bottom for content */
}

.page-khuyen-mai__hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-khuyen-mai__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-khuyen-mai__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-khuyen-mai__section:nth-of-type(even) {
  background-color: var(--page-khuyen-mai-card-bg);
}

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

.page-khuyen-mai__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--page-khuyen-mai-primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-khuyen-mai__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-khuyen-mai__highlight {
  font-weight: bold;
  color: var(--page-khuyen-mai-primary-color);
}

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 300px; /* Limit button width on desktop */
}

.page-khuyen-mai__btn-primary {
  background: var(--page-khuyen-mai-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-khuyen-mai__btn-secondary {
  background-color: var(--page-khuyen-mai-card-bg);
  color: var(--page-khuyen-mai-primary-color);
  border: 2px solid var(--page-khuyen-mai-primary-color);
}

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

.page-khuyen-mai__button-group {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-khuyen-mai__card {
  background-color: var(--page-khuyen-mai-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}