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

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F; /* Page specific background */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-promotions-rebate-program {
    background-color: var(--background-color-page);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Hero Section */
.page-promotions-rebate-program__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions-rebate-program__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions-rebate-program__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-promotions-rebate-program__hero-content {
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions-rebate-program__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--gold-color);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions-rebate-program__description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-rebate-program__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions-rebate-program__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styles */
.page-promotions-rebate-program__section {
    padding: 60px 20px;
    background-color: var(--background-color-page);
}

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

.page-promotions-rebate-program__container--center {
    text-align: center;
}

.page-promotions-rebate-program__section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions-rebate-program__section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-rebate-program__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-promotions-rebate-program__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-promotions-rebate-program__text-block {
    flex: 1;
    min-width: 300px;
}

.page-promotions-rebate-program__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions-rebate-program__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-promotions-rebate-program__text-block p {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 1.05rem;
}

/* Cards Grid */
.page-promotions-rebate-program__cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions-rebate-program__card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-promotions-rebate-program__card:hover {
    transform: translateY(-5px);
    background-color: var(--deep-green);
}

.page-promotions-rebate-program__card-title {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions-rebate-program__card-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* List Styles */
.page-promotions-rebate-program__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-promotions-rebate-program__list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-main);
    font-size: 1.05rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-rebate-program__list-item::before {
    content: '✓';
    color: var(--gold-color);
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Table Styles */
.page-promotions-rebate-program__table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions-rebate-program__rebate-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table is readable on smaller screens */
}

.page-promotions-rebate-program__rebate-table th,
.page-promotions-rebate-program__rebate-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--divider-color);
}

.page-promotions-rebate-program__rebate-table th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
}

.page-promotions-rebate-program__rebate-table td {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-promotions-rebate-program__rebate-table tbody tr:nth-child(even) td {
    background-color: var(--deep-green);
}

.page-promotions-rebate-program__rebate-table a {
    color: var(--gold-color);
    text-decoration: none;
}

.page-promotions-rebate-program__rebate-table a:hover {
    text-decoration: underline;
}

.page-promotions-rebate-program__note {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Benefits Grid */
.page-promotions-rebate-program__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions-rebate-program__benefit-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-promotions-rebate-program__benefit-icon {
    width: 150px; /* Adjusted from 250px to fit common icon sizes better within a card */
    height: 150px; /* Adjusted */
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--glow-color));
}

.page-promotions-rebate-program__benefit-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions-rebate-program__benefit-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

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

.page-promotions-rebate-program__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
}

.page-promotions-rebate-program__faq-question:hover {
    background-color: var(--primary-color);
}

.page-promotions-rebate-program__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions-rebate-program__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: var(--gold-color);
}

.page-promotions-rebate-program__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-promotions-rebate-program__faq-item[open] .page-promotions-rebate-program__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
    padding-top: 20px;
}

/* Special styles for details tag native toggle */
.page-promotions-rebate-program__faq-item summary {
    list-style: none; /* Remove default marker */
}

/* Bottom CTA Section */
.page-promotions-rebate-program__section--cta-bottom {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--deep-green);
    border-top: 2px solid var(--primary-color);
}

.page-promotions-rebate-program__section--cta-bottom .page-promotions-rebate-program__section-title {
    color: var(--gold-color);
    font-size: 2.8rem;
}

.page-promotions-rebate-program__section--cta-bottom .page-promotions-rebate-program__description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-main);
}

.page-promotions-rebate-program__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions-rebate-program__cta-button--primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-promotions-rebate-program__cta-button--secondary {
    background: none;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-promotions-rebate-program__cta-button--secondary:hover {
    background: var(--gold-color);
    color: var(--deep-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-rebate-program__main-title {
        font-size: clamp(2.2rem, 6vw, 3.5rem);
    }

    .page-promotions-rebate-program__section-title {
        font-size: 2.2rem;
    }

    .page-promotions-rebate-program__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-promotions-rebate-program__content-wrapper--reversed {
        flex-direction: column;
    }

    .page-promotions-rebate-program__image-block {
        order: -1; /* Image appears above text on smaller screens */
    }

    .page-promotions-rebate-program__cards-grid,
    .page-promotions-rebate-program__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-promotions-rebate-program__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-promotions-rebate-program__hero-content {
        margin-top: 20px;
    }

    .page-promotions-rebate-program__main-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 15px;
    }

    .page-promotions-rebate-program__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-promotions-rebate-program__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        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-rebate-program__section {
        padding: 40px 15px;
    }

    .page-promotions-rebate-program__container {
        padding: 0 10px;
    }

    .page-promotions-rebate-program__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-promotions-rebate-program__section-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-promotions-rebate-program__cards-grid,
    .page-promotions-rebate-program__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions-rebate-program__card,
    .page-promotions-rebate-program__benefit-item {
        padding: 25px;
    }

    .page-promotions-rebate-program__card-title {
        font-size: 1.5rem;
    }

    .page-promotions-rebate-program__list-item {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .page-promotions-rebate-program__rebate-table th,
    .page-promotions-rebate-program__rebate-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .page-promotions-rebate-program__faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }

    .page-promotions-rebate-program__faq-toggle {
        font-size: 1.5rem;
    }

    .page-promotions-rebate-program__faq-answer {
        padding: 0 15px 15px 15px;
    }

    .page-promotions-rebate-program__section--cta-bottom {
        padding: 60px 15px;
    }

    .page-promotions-rebate-program__section--cta-bottom .page-promotions-rebate-program__section-title {
        font-size: 2.2rem;
    }

    .page-promotions-rebate-program__section--cta-bottom .page-promotions-rebate-program__description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    /* Mobile image, video, button specific overrides */
    .page-promotions-rebate-program img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions-rebate-program__section,
    .page-promotions-rebate-program__card,
    .page-promotions-rebate-program__container,
    .page-promotions-rebate-program__table-wrapper,
    .page-promotions-rebate-program__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-promotions-rebate-program__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions-rebate-program__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-promotions-rebate-program__section-title {
        font-size: 1.8rem;
    }

    .page-promotions-rebate-program__cta-button {
        font-size: 0.95rem;
    }
}