/* style/promotions.css */
/* body đã padding-top: var(--header-offset)；tránh trùng lặp */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg-color: #11271B;
    --background-dark: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
    background-color: var(--background-dark);
    color: var(--text-main-color); /* Toàn bộ trang dùng màu chữ chính */
    font-family: Arial, sans-serif;
}

.page-promotions__section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--background-dark);
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-promotions__hero-content {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-promotions__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button--inverted {
    background: var(--text-main-color);
    color: var(--primary-color);
}

.page-promotions__cta-button--inverted:hover {
    color: var(--secondary-color);
}

.page-promotions__center-button {
    margin: 30px auto 0;
    display: block;
    width: fit-content;
}

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

.page-promotions__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-promotions__section-title--light {
    color: var(--text-main-color);
}

.page-promotions__text-block {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__text-block--light {
    color: var(--text-main-color);
}

.page-promotions__text-block a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__text-block a:hover {
    text-decoration: underline;
}

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

.page-promotions__card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__card-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-promotions__card-text {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-button {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding: 12px 20px;
    font-size: 1rem;
}

.page-promotions__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 50px;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__image-spacing {
    margin-bottom: 30px;
}

.page-promotions__sub-title {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.page-promotions__ordered-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin: 0 0 30px 0;
}

.page-promotions__list-item {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-promotions__list-item:last-child {
    margin-bottom: 0;
}

.page-promotions__list-item::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-promotions__ordered-list .page-promotions__list-item::before {
    content: counter(list-item) '.';
    color: var(--secondary-color);
    left: 0;
    font-weight: bold;
    position: absolute;
}

.page-promotions__list-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__list-item a:hover {
    text-decoration: underline;
}

.page-promotions__faq {
    background-color: var(--card-bg-color);
    padding: 60px 20px;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__faq-item {
    background-color: var(--background-dark);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--divider-color);
}

.page-promotions__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--secondary-color);
    margin-left: 20px;
    transition: transform 0.3s ease;
}

details[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 0 30px 20px 30px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary-color);
    text-align: justify;
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}

.page-promotions__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-promotions__call-to-action {
    background-color: var(--deep-green-color);
    text-align: center;
    padding: 80px 20px;
}

.page-promotions__dark-bg {
    background-color: var(--deep-green-color);
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: 20px;
    }
    .page-promotions__section-title {
        font-size: 2rem;
    }
    .page-promotions__sub-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-promotions__hero-image-wrapper {
        max-height: 400px;
    }
    .page-promotions__hero-image {
        min-height: 200px !important;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.3;
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }
    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__center-button {
        margin: 20px auto 0;
    }
    .page-promotions__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 0.95rem;
    }
    .page-promotions__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card {
        padding: 25px;
        min-height: auto;
    }
    .page-promotions__card-title {
        font-size: 1.2rem;
    }
    .page-promotions__card-text {
        font-size: 0.9rem;
    }
    .page-promotions__image-full-width {
        margin-top: 30px;
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__image-spacing {
        margin-bottom: 20px;
    }
    .page-promotions__sub-title {
        font-size: 1.4rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-promotions__list-item,
    .page-promotions__ordered-list .page-promotions__list-item {
        font-size: 0.95rem;
        padding-left: 25px;
    }
    .page-promotions__faq-list {
        margin-top: 30px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9rem;
    }
    .page-promotions__call-to-action {
        padding: 60px 15px;
    }
    .page-promotions__dark-bg {
        padding: 30px;
    }

    /* Ensure all images are responsive */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* All containers that might hold images/buttons/videos */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__hero-image-wrapper,
    .page-promotions__hero-content,
    .page-promotions__faq-list,
    .page-promotions__call-to-action,
    .page-promotions__dark-bg {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-promotions__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Multiple buttons in a group */
    .page-promotions__button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-promotions__section-title {
        font-size: 1.5rem;
    }
    .page-promotions__sub-title {
        font-size: 1.2rem;
    }
    .page-promotions__cta-button {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
    .page-promotions__faq-question {
        font-size: 0.9rem;
    }
    .page-promotions__faq-answer {
        font-size: 0.85rem;
    }
    .page-promotions__dark-bg {
        padding: 20px;
    }
}