/* style/khuyen-mai.css */

/* General styles for the page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color on light backgrounds */
  background-color: #FFFFFF; /* Default page background */
}

/* Container for content sections */
.page-khuyen-mai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #017439; /* Brand primary color */
}

.page-khuyen-mai__section-title--white {
  color: #FFFFFF; /* White text for dark backgrounds */
}

/* Text blocks */
.page-khuyen-mai__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-khuyen-mai__text-block--white {
  color: #FFFFFF;
}

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-khuyen-mai__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-khuyen-mai__btn-primary:hover {
  background-color: #E01010;
  border-color: #E01010;
}

.page-khuyen-mai__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-khuyen-mai__btn-secondary--white {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-khuyen-mai__btn-secondary--white:hover {
  background-color: #FFFFFF;
  color: #017439;
}

/* Image base styles */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Adhering to body padding-top assumption */
  background-color: #017439; /* Background for hero section */
}

.page-khuyen-mai__hero-image-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

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

.page-khuyen-mai__hero-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  text-align: center;
  color: #FFFFFF;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Intro Section */
.page-khuyen-mai__intro-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-khuyen-mai__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
}

.page-khuyen-mai__feature-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-size: 1.1em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.page-khuyen-mai__feature-item:hover {
  transform: translateY(-5px);
}

/* Promotion Categories Section */
.page-khuyen-mai__promotion-categories {
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
}