/* style/promotions-daily-rebate.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-font: #FFFF00;
    --body-bg: var(--background-color, #FFFFFF);
}

.page-promotions-daily-rebate {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--body-bg);
}

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

/* Hero Section */
.page-promotions-daily-rebate__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-promotions-daily-rebate__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.page-promotions-daily-rebate__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-promotions-daily-rebate__hero-section .page-promotions-daily-rebate__container {
    position: relative;
    z-index: 2;
    color: var(--text-color-light);
}

.page-promotions-daily-rebate__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions-daily-rebate__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-daily-rebate__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-promotions-daily-rebate__btn-primary,
.page-promotions-daily-rebate__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions-daily-rebate__btn-primary {
    background-color: var(--register-btn-bg); /* Custom Register color */
    color: var(--register-login-font); /* Custom Register font color */
    border: 2px solid var(--register-btn-bg);
}

.page-promotions-daily-rebate__btn-primary:hover {
    background-color: #e00;
    border-color: #e00;
    color: var(--text-color-light);
}

.page-promotions-daily-rebate__btn-secondary {
    background-color: var(--login-btn-bg); /* Custom Login color */
    color: var(--register-login-font); /* Custom Login font color */
    border: 2px solid var(--login-btn-bg);
}

.page-promotions-daily-rebate__btn-secondary:hover {
    background-color: #e00;
    border-color: #e00;
    color: var(--text-color-light);
}

/* General Section Styling */
.page-promotions-daily-rebate__intro-section,
.page-promotions-daily-rebate__benefits-section,
.page-promotions-daily-rebate__guide-section,
.page-promotions-daily-rebate__terms-section,
.page-promotions-daily-rebate__why-choose-section,
.page-promotions-daily-rebate__faq-section,
.page-promotions-daily-rebate__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions-daily-rebate__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-promotions-daily-rebate__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-promotions-daily-rebate__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: inherit; /* Inherit color from section background */
}

.page-promotions-daily-rebate__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-daily-rebate__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.page-promotions-daily-rebate__benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions-daily-rebate__benefits-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-color-light);
}

.page-promotions-daily-rebate__benefits-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

/* Guide Section */
.page-promotions-daily-rebate__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-step;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-promotions-daily-rebate__guide-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.page-promotions-daily-rebate__guide-item::before {
    counter-increment: guide-step;
    content: counter(guide-step);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
}

.page-promotions-daily-rebate__guide-step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Terms Section */
.page-promotions-daily-rebate__terms-list {
    list-style: disc;
    padding-left: 20px;
    max-width: 900px;
    margin: 30px auto;
    text-align: left;
    color: var(--text-color-light);
}

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

/* FAQ Section */
.page-promotions-daily-rebate__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-promotions-daily-rebate__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-color-light);
}

.page-promotions-daily-rebate__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-color-light);
    background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions-daily-rebate__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions-daily-rebate__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions-daily-rebate__faq-item[open] .page-promotions-daily-rebate__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions-daily-rebate__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-color-light);
}

/* Details element specific styling */
.page-promotions-daily-rebate__faq-item summary {
    list-style: none; /* Remove default marker */
}

.page-promotions-daily-rebate__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

/* CTA Section */
.page-promotions-daily-rebate__cta-section .page-promotions-daily-rebate__section-title,
.page-promotions-daily-rebate__cta-section .page-promotions-daily-rebate__text-block {
    color: var(--text-color-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-daily-rebate__main-title {
        font-size: 2.5em;
    }
    .page-promotions-daily-rebate__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions-daily-rebate__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    .page-promotions-daily-rebate__main-title {
        font-size: 2em;
    }
    .page-promotions-daily-rebate__intro-description {
        font-size: 1em;
    }
    .page-promotions-daily-rebate__section-title {
        font-size: 1.8em;
    }
    .page-promotions-daily-rebate__text-block,
    .page-promotions-daily-rebate__benefits-item p,
    .page-promotions-daily-rebate__guide-item p,
    .page-promotions-daily-rebate__terms-list li,
    .page-promotions-daily-rebate__faq-answer p {
        font-size: 0.95em;
    }
    .page-promotions-daily-rebate__benefits-list {
        grid-template-columns: 1fr;
    }
    .page-promotions-daily-rebate__guide-item {
        padding-left: 50px;
    }
    .page-promotions-daily-rebate__guide-item::before {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }

    /* Mobile specific overrides for images, videos, buttons, and containers */
    .page-promotions-daily-rebate img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions-daily-rebate video,
    .page-promotions-daily-rebate__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions-daily-rebate__section,
    .page-promotions-daily-rebate__card,
    .page-promotions-daily-rebate__container,
    .page-promotions-daily-rebate__video-section,
    .page-promotions-daily-rebate__video-container,
    .page-promotions-daily-rebate__video-wrapper,
    .page-promotions-daily-rebate__cta-buttons,
    .page-promotions-daily-rebate__button-group,
    .page-promotions-daily-rebate__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-promotions-daily-rebate__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-promotions-daily-rebate__btn-primary,
    .page-promotions-daily-rebate__btn-secondary,
    .page-promotions-daily-rebate a[class*="button"],
    .page-promotions-daily-rebate 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 !important;
        padding-right: 15px !important;
    }
    .page-promotions-daily-rebate__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-promotions-daily-rebate__main-title {
        font-size: 1.8em;
    }
    .page-promotions-daily-rebate__section-title {
        font-size: 1.5em;
    }
    .page-promotions-daily-rebate__hero-section {
        min-height: 350px;
    }
}