/* style/khuyen-mai.css */
:root {
    --primary-color: #336699; /* new8 Blue */
    --secondary-color: #FFCC00; /* Wealth Gold */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #2a2a2a;
    --border-color: #e0e0e0;
}

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

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

.page-khuyen-mai-title {
    font-size: 3.2em;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-khuyen-mai-heading {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-khuyen-mai-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-khuyen-mai-sub-heading {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

.page-khuyen-mai-text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-khuyen-mai-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-khuyen-mai-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-khuyen-mai-button,
.page-khuyen-mai-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.page-khuyen-mai-cta-button.large-button {
    padding: 18px 40px;
    font-size: 1.3em;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai-button:hover,
.page-khuyen-mai-cta-button:hover {
    background-color: #e6b800; /* Slightly darker gold */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-khuyen-mai .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%); /* Darker blue gradient */
    overflow: hidden;
}

.page-khuyen-mai .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-khuyen-mai .hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-height: 450px; /* Limit image height */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai .hero-image img {
    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;
    width: 100%;
    padding: 20px;
}

/* Section Intro */
.page-khuyen-mai .section-intro {
    background-color: var(--bg-light);
    padding: 60px 0;
}

/* Section Promo Types */
.page-khuyen-mai .section-promo-types {
    background-color: #e8f0f7; /* Light blue background */
    padding: 60px 0;
}

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

.page-khuyen-mai-promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-khuyen-mai-promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai-promo-card img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-khuyen-mai-card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    min-height: 60px; /* Ensure consistent title height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-khuyen-mai-card-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Section Terms & Conditions */
.page-khuyen-mai .section-terms-conditions {
    background-color: var(--bg-light);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.page-khuyen-mai-content-block {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.page-khuyen-mai-list {
    list-style: disc inside;
    padding-left: 20px;
    margin-top: 15px;
    color: var(--text-dark);
}

.page-khuyen-mai-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-khuyen-mai-list li strong {
    color: var(--primary-color);
}

/* Section Benefits */
.page-khuyen-mai .section-benefits {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: var(--text-light);
}

.page-khuyen-mai .section-benefits .page-khuyen-mai-heading {
    color: var(--text-light);
}

.page-khuyen-mai .section-benefits .page-khuyen-mai-heading::after {
    background-color: var(--secondary-color);
}

.page-khuyen-mai-list-benefits {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-khuyen-mai-list-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-khuyen-mai-list-benefits li:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-khuyen-mai-list-benefits img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-right: 30px;
    border-radius: 8px;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai-list-benefits h3 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-khuyen-mai-list-benefits p {
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-khuyen-mai-list-benefits .page-khuyen-mai-link {
    color: var(--secondary-color);
}

.page-khuyen-mai-list-benefits .page-khuyen-mai-link:hover {
    color: #ffd700;
}

/* Section Registration Guide */
.page-khuyen-mai .section-registration-guide {
    background-color: var(--bg-light);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.page-khuyen-mai-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    margin-top: 40px;
}

.page-khuyen-mai-steps li {
    position: relative;
    margin-bottom: 30px;
    padding-left: 70px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 20px 20px 20px 70px;
}

.page-khuyen-mai-steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai-steps li h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-khuyen-mai-steps li p {
    font-size: 1em;
    color: var(--text-dark);
}

/* Section FAQ */
.page-khuyen-mai .section-faq {
    background-color: #f0f5f9; /* Lighter blue for FAQ */
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.page-khuyen-mai-faq-list {
    margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to accommodate content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin: 0;
  font-size: 1.05em;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuyen-mai-title {
        font-size: 2.8em;
    }
    .page-khuyen-mai-description {
        font-size: 1.2em;
    }
    .page-khuyen-mai-heading {
        font-size: 2em;
    }
    .page-khuyen-mai-sub-heading {
        font-size: 1.6em;
    }
    .page-khuyen-mai-promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-khuyen-mai-list-benefits img {
        width: 120px;
        height: 120px;
        margin-right: 20px;
    }
    .page-khuyen-mai-list-benefits h3 {
        font-size: 1.6em;
    }
    .page-khuyen-mai-steps li {
        padding-left: 60px;
    }
    .page-khuyen-mai-steps li::before {
        width: 45px;
        height: 45px;
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-khuyen-mai .hero-section {
        padding: 60px 15px;
    }
    .page-khuyen-mai-title {
        font-size: 2.2em;
    }
    .page-khuyen-mai-description {
        font-size: 1em;
    }
    .page-khuyen-mai-heading {
        font-size: 1.8em;
    }
    .page-khuyen-mai-sub-heading {
        font-size: 1.4em;
    }
    .page-khuyen-mai-button,
    .page-khuyen-mai-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-khuyen-mai-cta-button.large-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-khuyen-mai-promo-grid {
        grid-template-columns: 1fr;
    }
    .page-khuyen-mai-list-benefits li {
        flex-direction: column;
        text-align: center;
    }
    .page-khuyen-mai-list-benefits img {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .page-khuyen-mai-steps li {
        padding-left: 20px;
        padding-top: 70px;
        min-height: auto;
    }
    .page-khuyen-mai-steps li::before {
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-khuyen-mai-title {
        font-size: 1.8em;
    }
    .page-khuyen-mai-heading {
        font-size: 1.5em;
    }
    .page-khuyen-mai-sub-heading {
        font-size: 1.2em;
    }
    .page-khuyen-mai-text {
        font-size: 0.95em;
    }
    .page-khuyen-mai-list li {
        font-size: 0.95em;
    }
    .page-khuyen-mai-list-benefits img {
        width: 100px;
        height: 100px;
    }
    .page-khuyen-mai-list-benefits h3 {
        font-size: 1.4em;
    }
}