/* style/khuyen-mai.css */

:root {
    --primary-color: #0A2239;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f4f7f6;
    --bg-dark: #071a2b;
    --border-color: #e0e0e0;
}

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

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

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

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

.page-khuyen-mai-section {
    padding: 60px 0;
}

.page-khuyen-mai-section:nth-child(even) {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-khuyen-mai-section:nth-child(even) h2, 
.page-khuyen-mai-section:nth-child(even) h3 {
    color: var(--secondary-color);
}

.page-khuyen-mai-section:nth-child(even) a {
    color: var(--secondary-color);
}

.page-khuyen-mai-section:nth-child(even) a:hover {
    color: var(--text-light);
}

.page-khuyen-mai h1, .page-khuyen-mai h2, .page-khuyen-mai h3 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-khuyen-mai h1 {
    font-size: 3.2em;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai h2 {
    font-size: 2.5em;
}

.page-khuyen-mai h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-khuyen-mai p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-khuyen-mai ul, .page-khuyen-mai ol {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-khuyen-mai ul li, .page-khuyen-mai ol li {
    margin-bottom: 10px;
    font-size: 1.1em;
    text-align: justify;
}

.page-khuyen-mai-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    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%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

.page-khuyen-mai-hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    text-align: center;
    width: 100%;
}

.page-khuyen-mai-hero-content h1 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 3.5em;
}

.page-khuyen-mai-hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai-cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

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

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

.page-khuyen-mai-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-khuyen-mai-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-khuyen-mai-card-content h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
    color: var(--primary-color);
}

.page-khuyen-mai-card-content p {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

.page-khuyen-mai-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Push button to bottom */
    border: none;
}

.page-khuyen-mai-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.page-khuyen-mai-guide ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.page-khuyen-mai-guide ol li {
    counter-increment: step-counter;
    margin-bottom: 30px;
    padding-left: 60px;
    position: relative;
}

.page-khuyen-mai-guide ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai-guide ol li h3 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.6em;
}

.page-khuyen-mai-closing-text {
    text-align: center;
    font-style: italic;
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 1.2em;
}

.page-khuyen-mai-faq .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-khuyen-mai-faq .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
}

.page-khuyen-mai-faq .faq-question:hover {
  background: var(--bg-light);
}

.page-khuyen-mai-faq .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  flex-grow: 1;
  text-align: left;
  color: var(--primary-color);
}

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

.page-khuyen-mai-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-khuyen-mai-faq .faq-answer p {
  margin: 0;
  padding-bottom: 15px;
  text-align: justify;
}

.page-khuyen-mai-faq .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px 25px;
  border-top: 1px solid var(--border-color);
}

.page-khuyen-mai-faq .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.page-khuyen-mai-why-choose .page-khuyen-mai-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    text-align: center;
}

.page-khuyen-mai-feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure equal height */
}

.page-khuyen-mai-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-khuyen-mai-feature-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%; /* Example for rounded icons */
    background-color: var(--bg-light);
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai-feature-item h3 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}

.page-khuyen-mai-feature-item p {
    font-size: 1em;
    text-align: center;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-khuyen-mai-hero-content h1 {
        font-size: 2.8em;
    }
    .page-khuyen-mai h2 {
        font-size: 2em;
    }
    .page-khuyen-mai h3 {
        font-size: 1.5em;
    }
    .page-khuyen-mai-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-khuyen-mai-section {
        padding: 40px 0;
    }
    .page-khuyen-mai-hero {
        padding: 60px 15px;
    }
    .page-khuyen-mai-hero-content h1 {
        font-size: 2.2em;
    }
    .page-khuyen-mai-hero-content p {
        font-size: 1.1em;
    }
    .page-khuyen-mai-cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page-khuyen-mai h2 {
        font-size: 1.8em;
    }
    .page-khuyen-mai h3 {
        font-size: 1.3em;
    }
    .page-khuyen-mai p, .page-khuyen-mai ul li, .page-khuyen-mai ol li {
        font-size: 1em;
    }
    .page-khuyen-mai-grid {
        grid-template-columns: 1fr;
    }
    .page-khuyen-mai-card-image {
        height: 180px;
    }
    .page-khuyen-mai-card-content {
        padding: 20px;
    }
    .page-khuyen-mai-guide ol li {
        padding-left: 50px;
    }
    .page-khuyen-mai-guide ol li::before {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }
    .page-khuyen-mai-faq .faq-question {
        padding: 15px 20px;
    }
    .page-khuyen-mai-faq .faq-question h3 {
        font-size: 1.1em;
    }
    .page-khuyen-mai-faq .faq-answer {
        padding: 0 20px;
    }
    .page-khuyen-mai-faq .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-khuyen-mai-feature-item img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .page-khuyen-mai-hero-content h1 {
        font-size: 1.8em;
    }
    .page-khuyen-mai-hero-content p {
        font-size: 0.95em;
    }
    .page-khuyen-mai-cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-khuyen-mai h2 {
        font-size: 1.5em;
    }
    .page-khuyen-mai h3 {
        font-size: 1.2em;
    }
    .page-khuyen-mai p, .page-khuyen-mai ul li, .page-khuyen-mai ol li {
        font-size: 0.9em;
    }
    .page-khuyen-mai-guide ol li::before {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }
}