/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
    font-family: 'Arial', sans-serif;
    color: #F3F8FF; /* Text Main */
    background-color: #08162B; /* Deep Navy from body */
}

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

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

.page-khuyen-mai__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: #F2C14E; /* Gold */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-khuyen-mai__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #1D5FD1; /* Auxiliary color */
    border-radius: 2px;
}

.page-khuyen-mai__article-body p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #AFC4E8; /* Text Secondary */
    text-align: justify;
}

.page-khuyen-mai__article-body strong {
    color: #F3F8FF;
}

.page-khuyen-mai__article-body a {
    color: #1D5FD1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyen-mai__article-body a:hover {
    color: #F2C14E;
    text-decoration: underline;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: linear-gradient(180deg, #113B7A 0%, #08162B 100%);
}

.page-khuyen-mai__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
}

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

.page-khuyen-mai__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content slightly over the image for visual flow */
    background: rgba(16, 35, 63, 0.85); /* Card B G with transparency */
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #244D84;
}

.page-khuyen-mai__main-title {
    font-size: clamp(28px, 4vw, 48px);
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.page-khuyen-mai__hero-description {
    font-size: 18px;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: #F3F8FF; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-khuyen-mai__btn-secondary {
    background: transparent;
    color: #F3F8FF; /* Text Main */
    border: 2px solid #2B73F6; /* Primary color for border */
}

.page-khuyen-mai__btn-secondary:hover {
    background: #2B73F6;
    color: #F3F8FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Promotion Types Section */
.page-khuyen-mai__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-khuyen-mai__promo-card {
    background: #10233F; /* Card B G */
    border: 1px solid #244D84; /* Border */
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-khuyen-mai__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-khuyen-mai__card-title {
    font-size: 22px;
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-khuyen-mai__card-description {
    font-size: 15px;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    padding: 0 15px;
}

.page-khuyen-mai__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: #F3F8FF; /* Text Main */
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    margin: 0 15px;
    max-width: calc(100% - 30px);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuyen-mai__card-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-khuyen-mai__step-card {
    background: #10233F; /* Card B G */
    border: 1px solid #244D84; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: #F3F8FF; /* Text Main */
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__step-title {
    font-size: 22px;
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-khuyen-mai__step-description {
    font-size: 16px;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.7;
}

.page-khuyen-mai__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-khuyen-mai__large-btn {
    padding: 18px 40px;
    font-size: 20px;
    border-radius: 10px;
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
    margin-top: 30px;
}

details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card B G */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question:hover {
  background: rgba(43, 115, 246, 0.1);
}
.page-khuyen-mai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}
.page-khuyen-mai__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 20px;
  width: 32px;
  text-align: center;
}
details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  padding: 0 25px 25px;
  background: #08162B; /* Deep Navy */
  border-radius: 0 0 12px 12px;
}
.page-khuyen-mai__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #AFC4E8; /* Text Secondary */
}

/* Image responsiveness for all images */
.page-khuyen-mai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-khuyen-mai__hero-content {
        margin-top: -50px;
        padding: 30px 20px;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(26px, 4.5vw, 42px);
    }
    .page-khuyen-mai__hero-description {
        font-size: 17px;
    }
    .page-khuyen-mai__section-title {
        font-size: 32px;
    }
    .page-khuyen-mai__promo-image {
        height: 200px;
    }
    .page-khuyen-mai__card-title {
        font-size: 20px;
    }
    .page-khuyen-mai__card-description {
        font-size: 14px;
    }
    .page-khuyen-mai__step-title {
        font-size: 20px;
    }
    .page-khuyen-mai__step-description {
        font-size: 15px;
    }
    .page-khuyen-mai__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-khuyen-mai {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-khuyen-mai__hero-section {
        min-height: 400px;
        padding-top: 10px;
    }
    .page-khuyen-mai__hero-image-wrapper {
        max-height: 400px;
    }
    .page-khuyen-mai__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-khuyen-mai__hero-content {
        margin-top: 0;
        padding: 25px 15px;
        border-radius: 0;
        box-shadow: none;
        border: none;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }
    .page-khuyen-mai__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-khuyen-mai__section {
        padding: 30px 0;
    }
    .page-khuyen-mai__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-khuyen-mai__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
    .page-khuyen-mai__article-body p {
        font-size: 15px;
    }
    .page-khuyen-mai__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuyen-mai__promo-card {
        padding-bottom: 20px;
    }
    .page-khuyen-mai__promo-image {
        height: 180px;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .page-khuyen-mai__card-title {
        font-size: 18px;
    }
    .page-khuyen-mai__card-description {
        font-size: 14px;
    }
    .page-khuyen-mai__card-button {
        max-width: calc(100% - 30px) !important;
        width: calc(100% - 30px) !important;
        padding: 10px 15px;
        font-size: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-khuyen-mai__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuyen-mai__step-card {
        padding: 25px;
    }
    .page-khuyen-mai__step-number {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    .page-khuyen-mai__step-title {
        font-size: 18px;
    }
    .page-khuyen-mai__step-description {
        font-size: 15px;
    }
    .page-khuyen-mai__large-btn {
        padding: 15px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
        padding: 15px;
    }
    .page-khuyen-mai__faq-qtext {
        font-size: 16px;
    }
    .page-khuyen-mai__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
        width: 28px;
    }
    details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
        padding: 0 15px 15px;
    }
    .page-khuyen-mai__faq-answer p {
        font-size: 15px;
    }
}