.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default text color for dark body background */
}

.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff;
    overflow: hidden; /* For image positioning */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: left;
    margin-right: 40px;
}

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

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

.page-promotions__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

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

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-promotions__section {
    padding: 60px 20px;
}

.page-promotions__dark-bg {
    background-color: var(--dark-bg-1, #0d0d0d); /* Assuming shared dark background */
    color: #ffffff;
}

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

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

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section background */
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: inherit; /* Inherit color from section background */
}

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

.page-promotions__promo-card,
.page-promotions__step-card,
.page-promotions__tip-item {
    background-color: #ffffff; /* Card background for light text section */
    color: #333333; /* Text color for light card background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-promotions__promo-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* Ensure no extra space below image */
}

.page-promotions__promo-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439; /* Brand color for titles */
}

.page-promotions__promo-card-title a {
    color: #017439; /* Brand color for linked titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__promo-card-title a:hover {
    color: #C30808; /* Hover color for linked titles */
}

.page-promotions__promo-card-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow text to grow */
}

.page-promotions__btn-text {
    display: inline-flex;
    align-items: center;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions__btn-text:hover {
    color: #C30808;
}

.page-promotions__icon-arrow {
    margin-left: 8px;
    font-size: 1.2em;
    line-height: 1;
}

.page-promotions__step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #017439;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-promotions__step-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #017439;
}

.page-promotions__step-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.page-promotions__terms-item {
    background-color: #f8f8f8;
    color: #333333;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__terms-subtitle {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

.page-promotions__read-more-terms {
    text-align: center;
    margin-top: 30px;
}

.page-promotions__tip-item {
    background-color: #017439; /* Brand primary color for tips card */
    color: #ffffff; /* Light text for dark background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-promotions__tip-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-promotions__tip-text {
    font-size: 1em;
    flex-grow: 1;
}

.page-promotions__faq-list {
    margin-top: 30px;
}

.page-promotions__faq-item {
    background-color: #f8f8f8;
    color: #333333;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

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

.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: #333333;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Use !important as required */
    padding: 15px 25px 25px 25px;
}

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

.page-promotions__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439; /* Brand primary color for CTA */
    color: #ffffff;
}

.page-promotions__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-promotions__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-bottom: 400px; /* Make space for image below */
    }

    .page-promotions__hero-content {
        margin-right: 0;
        margin-bottom: 40px;
        max-width: 100%;
    }

    .page-promotions__hero-image-wrapper {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 350px; /* Fixed height for mobile/tablet image */
    }

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

    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
        min-height: auto;
        padding-bottom: 300px; /* Adjust for smaller image */
    }

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

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-promotions__hero-image-wrapper {
        height: 280px; /* Smaller height for mobile */
    }

    .page-promotions__section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevents overflow from inner elements */
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__tip-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        padding: 20px;
    }

    .page-promotions__promo-card-image {
        height: 180px;
    }

    .page-promotions__promo-card-title,
    .page-promotions__step-title,
    .page-promotions__tip-title,
    .page-promotions__terms-subtitle {
        font-size: 1.3em;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
    }

    .page-promotions__faq-question h3 {
        font-size: 1.1em;
    }

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

    .page-promotions__cta-title {
        font-size: 2em;
    }

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

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness (if any video is added) */
    .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__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }
}