.page-khuyen-mai {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    background: #F5F7FA; /* Body background color from custom palette */
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 50px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-khuyen-mai__hero-image {
    width: 100%;
    max-height: 500px; /* Adjust as needed */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-khuyen-mai__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
}

.page-khuyen-mai__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: 30px; /* Space between image and text */
    padding: 0 20px;
}

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

.page-khuyen-mai__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box; /* Include padding/border in width */
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Include padding/border in width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-khuyen-mai__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-khuyen-mai__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* General Section Styling */
.page-khuyen-mai__section {
    padding: 60px 0;
    background: #F5F7FA;
}

.page-khuyen-mai__section:nth-of-type(even) {
    background: #ffffff;
}

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

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

.page-khuyen-mai__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

.page-khuyen-mai__highlight {
    color: #E53935;
    font-weight: 700;
}

/* Promo Types Section */
.page-khuyen-mai__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-khuyen-mai__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-khuyen-mai__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure responsiveness */
}

.page-khuyen-mai__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #E53935;
    margin: 20px 20px 10px;
    line-height: 1.4;
}

.page-khuyen-mai__card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    padding: 0 20px 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-khuyen-mai__card-button {
    display: inline-block;
    background: #FF5A4F;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 20px 20px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: calc(100% - 40px); /* Adjust for padding */
    white-space: normal;
    word-wrap: break-word;
}

.page-khuyen-mai__card-button:hover {
    background: #E53935;
}

.page-khuyen-mai__cta-section {
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}

.page-khuyen-mai__dark-bg {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
}