/* style/promotions.css */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text for dark body background #0a0a0a */
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #1a1a1a; /* Dark background for hero */
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly dim image for text readability */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Primary color */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-promotions__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-card,
.page-promotions__btn-center {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
    background-color: #FFD700; /* Primary color */
    color: #8B0000; /* Auxiliary color for text */
    border: 2px solid #FFD700;
}

.page-promotions__btn-primary:hover {
    background-color: #e6c200;
    color: #6a0000;
    border-color: #e6c200;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Primary color */
    border: 2px solid #FFD700;
}

.page-promotions__btn-secondary:hover {
    background-color: #FFD700;
    color: #1a1a1a;
    border-color: #FFD700;
}

/* General Section Styling */
.page-promotions__introduction-section,
.page-promotions__categories-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__video-section,
.page-promotions__faq-section,
.page-promotions__why-choose-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #f0f0f0; /* Light text */
}

.page-promotions__introduction-section,
.page-promotions__how-to-claim-section,
.page-promotions__why-choose-section {
    background-color: #121212; /* Slightly lighter dark background for contrast */
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Primary color */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0;
}

.page-promotions__text-block a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

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

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

.page-promotions__card {
    background-color: #1a1a1a; /* Darker background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
    color: #f0f0f0;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-bottom: 1px solid #8B0000; /* Auxiliary color border */
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: #FFD700; /* Primary color */
    margin: 20px 20px 10px 20px;
    line-height: 1.3;
}

.page-promotions__card-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-text {
    font-size: 1em;
    color: #cccccc;
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-promotions__btn-card {
    background-color: #8B0000; /* Auxiliary color */
    color: #ffffff;
    border: 2px solid #8B0000;
    margin: 0 20px 20px 20px; /* Margin for button within card */
    padding: 10px 20px;
    align-self: flex-start; /* Align button to start */
}

.page-promotions__btn-card:hover {
    background-color: #6a0000;
    border-color: #6a0000;
}

.page-promotions__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    width: fit-content; /* Adjust width to content */
}

/* List Styling */
.page-promotions__step-list,
.page-promotions__terms-list,
.page-promotions__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__list-item {
    background-color: #1a1a1a; /* Darker background for list items */
    border-left: 5px solid #FFD700; /* Primary color accent */
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #f0f0f0;
    font-size: 1.05em;
}

.page-promotions__list-item strong {
    color: #FFD700;
    font-size: 1.1em;
}

.page-promotions__list-item a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

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

/* Video Section */
.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.page-promotions__video-link {
    display: block; /* Make the anchor tag fill the wrapper */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: #1a1a1a; /* Darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700; /* Primary color */
    cursor: pointer;
    background-color: #8B0000; /* Auxiliary color for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #6a0000;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #121212; /* Slightly lighter dark background for answer */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 20px 25px;
}

.page-promotions__faq-answer p {
    margin: 0;
    padding: 0;
}

/* CTA Bottom */
.page-promotions__cta-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        min-height: 500px;
        padding: 40px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-promotions__hero-title {
        font-size: 2.5em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-card,
    .page-promotions__btn-center {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }
    
    .page-promotions__btn-center {
        margin: 30px auto 0 auto;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__card-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__card {
        margin-bottom: 20px;
    }

    .page-promotions__list-item,
    .page-promotions__faq-item {
        padding: 15px 20px;
    }

    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px 15px 20px;
    }

    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-promotions__cta-bottom {
        flex-direction: column;
    }
}