/* style/promotions.css */

/* Base Styles */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a2e; /* Inherited from body, ensuring contrast */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

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

.page-promotions__dark-section {
    background-color: #1a1a2e; /* Consistent with body background */
    color: #ffffff;
}

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

.page-promotions__light-bg .page-promotions__section-title {
    color: #333333;
}

.page-promotions__light-bg .page-promotions__text-block {
    color: #555555;
}

.page-promotions__light-bg a {
    color: #017439;
    text-decoration: underline;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border-color: #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #ffffff;
}

.page-promotions__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}

.page-promotions__btn-secondary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

/* Hero Section */
.page-promotions__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    gap: 40px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.page-promotions__hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    text-align: left;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

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

.page-promotions__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    z-index: 0;
}

.page-promotions__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 80px 0;
    background-color: #1a1a2e;
}

/* Promo Categories */
.page-promotions__promo-categories {
    padding: 80px 0;
    background-color: #1a1a2e;
}

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

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

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

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

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-promotions__card-description {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 80px 0;
}

.page-promotions__terms-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 30px;
    color: #555555;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-promotions__terms-list li p {
    display: inline;
}

/* How To Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: #1a1a2e;
}

.page-promotions__steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin-bottom: 40px;
}

.page-promotions__steps-list li {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-promotions__steps-list li::before {
    content: counter(step-counter);
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 15px;
    flex-shrink: 0;
}

.page-promotions__steps-list li a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-promotions__cta-button {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Video Section */
.page-promotions__video-section {
    padding: 80px 0;
}

.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: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}

.page-promotions__video-caption {
    text-align: center;
    font-style: italic;
    color: #ccc;
    margin-top: 20px;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
}

.page-promotions__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-promotions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
}

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

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f0f0f0;
    color: #555555;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

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

/* CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure proper spacing on mobile */
    }
    .page-promotions__hero-content {
        max-width: 100%;
        text-align: center;
    }
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-image-wrapper {
        justify-content: center;
        margin-top: 40px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card {
        padding: 25px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-image-wrapper,
    .page-promotions__promo-grid,
    .page-promotions__card,
    .page-promotions__video-wrapper,
    .page-promotions__faq-list,
    .page-promotions__cta-section,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for video section on mobile */
    }
    /* Mobile video responsiveness */
    .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;
    }
    /* Mobile button responsiveness */
    .page-promotions__cta-button,
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        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__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-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__text-block {
        font-size: 0.95em;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px;
    }
}