/* style/promotions.css */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-dark: #0D0E12;
    --bg-card: #17191F;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--bg-dark); /* Default background color */
}

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-promotions__section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Color Contrast Handling */
.page-promotions__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__card-text,
.page-promotions__light-bg .page-promotions__featured-title,
.page-promotions__light-bg .page-promotions__featured-text,
.page-promotions__light-bg .page-promotions__featured-date,
.page-promotions__light-bg .page-promotions__step-title,
.page-promotions__light-bg .page-promotions__step-text,
.page-promotions__light-bg .page-promotions__terms-item,
.page-promotions__light-bg .page-promotions__faq-qtext,
.page-promotions__light-bg .page-promotions__faq-answer p,
.page-promotions__light-bg .page-promotions__advantages-title,
.page-promotions__light-bg .page-promotions__advantages-text {
    color: #333333;
}

.page-promotions__light-bg .page-promotions__card,
.page-promotions__light-bg .page-promotions__featured-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.page-promotions__light-bg .page-promotions__faq-item {
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.page-promotions__light-bg .page-promotions__faq-item summary.page-promotions__faq-question:hover {
    background-color: #f0f0f0;
}

.page-promotions__light-bg .page-promotions__faq-answer {
    background-color: #f9f9f9;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

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

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions__hero-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-promotions__hero-content p {
    font-size: clamp(16px, 2vw, 22px);
    color: #ccc;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
    border: none;
}

.page-promotions__cta-button:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

/* Intro Section */
.page-promotions__intro-section {
    background-color: #ffffff;
    color: #333333;
}

/* Button Group */
.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.3);
}

.page-promotions__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.3);
}

/* Types Section */
.page-promotions__types-section {
    background-color: var(--bg-dark);
}

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

.page-promotions__card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-promotions__card-button:hover {
    background: var(--secondary-color);
}

/* Featured Section */
.page-promotions__featured-section {
    background-color: #ffffff;
}

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

.page-promotions__featured-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.page-promotions__featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.page-promotions__featured-content {
    padding: 25px;
}

.page-promotions__featured-title {
    font-size: 24px;
    color: #333333;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__featured-text {
    font-size: 16px;
    color: #666666;
    margin-bottom: 15px;
}

.page-promotions__featured-date {
    display: block;
    font-size: 14px;
    color: #999999;
    margin-bottom: 20px;
}

.page-promotions__featured-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-promotions__featured-button:hover {
    background: var(--secondary-color);
}

/* Guide Section */
.page-promotions__guide-section {
    background-color: var(--bg-dark);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-promotions__step-item {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-promotions__step-content {
    flex-grow: 1;
}

.page-promotions__step-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__step-text {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-promotions__step-button {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.page-promotions__step-button:hover {
    background: var(--secondary-color);
}

/* Terms Section */
.page-promotions__terms-section {
    background-color: #ffffff;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-item {
    background-color: #f0f0f0;
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 16px;
    color: #333333;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--bg-dark);
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
    background: rgba(255, 140, 26, 0.1);
}

.page-promotions__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-promotions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 20px 20px;
    background: rgba(255, 165, 58, 0.05);
    border-radius: 0 0 8px 8px;
    color: #cccccc;
    text-align: left;
    font-size: 15px;
}

/* Why HM88 Section */
.page-promotions__why-hm88-section {
    background-color: #ffffff;
}

.page-promotions__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.page-promotions__advantages-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__advantages-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__advantages-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-promotions__advantages-title {
    font-size: 20px;
    color: #333333;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__advantages-text {
    font-size: 15px;
    color: #666666;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content h1 {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-promotions__hero-content p {
        font-size: clamp(15px, 1.8vw, 20px);
    }
    .page-promotions__section-title {
        font-size: clamp(24px, 3.5vw, 38px);
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-content h1 {
        font-size: clamp(26px, 6vw, 36px);
    }
    .page-promotions__hero-content p {
        font-size: clamp(14px, 3.5vw, 18px);
        margin-bottom: 20px;
    }
    .page-promotions__cta-button {
        padding: 12px 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;
    }
    .page-promotions__button-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__featured-image {
        height: 200px;
    }
    .page-promotions__featured-content {
        padding: 20px;
    }
    .page-promotions__featured-title {
        font-size: 20px;
    }
    .page-promotions__featured-text {
        font-size: 14px;
    }
    .page-promotions__steps-list {
        grid-template-columns: 1fr;
    }
    .page-promotions__step-item {
        padding: 25px;
    }
    .page-promotions__faq-item summary.page-promotions__faq-question {
        padding: 15px;
    }
    .page-promotions__faq-qtext {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px 15px;
    }
    .page-promotions__advantages-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    .page-promotions__advantages-icon {
        width: 60px;
        height: 60px;
    }
    .page-promotions__advantages-title {
        font-size: 18px;
    }
    .page-promotions__advantages-text {
        font-size: 14px;
    }

    /* Ensure all images are responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-promotions__hero-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content h1 {
        font-size: clamp(24px, 7vw, 32px);
    }
    .page-promotions__hero-content p {
        font-size: clamp(13px, 4vw, 16px);
    }
    .page-promotions__section-title {
        font-size: clamp(22px, 5vw, 30px);
    }
    .page-promotions__section-description {
        font-size: 14px;
    }
    .page-promotions__card-title {
        font-size: 18px;
    }
    .page-promotions__featured-title {
        font-size: 18px;
    }
    .page-promotions__step-title {
        font-size: 18px;
    }
    .page-promotions__faq-qtext {
        font-size: 15px;
    }
}