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

/* Base styles for the page content, ensuring text color contrast with the body background */
.page-promotions-daily-cashback {
    background-color: #08160F; /* Background color from custom palette */
    color: #F2FFF6; /* Text Main for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some space at the bottom */
}

/* Hero Section */
.page-promotions-daily-cashback__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first, will adjust for desktop */
    align-items: center;
    text-align: center;
    padding: 10px 20px 40px; /* Small top padding, larger bottom padding */
    background-color: #0A4B2C; /* Deep Green for hero section background */
    position: relative;
    overflow: hidden;
}

.page-promotions-daily-cashback__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px; /* Space between image and content */
}

.page-promotions-daily-cashback__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-promotions-daily-cashback__hero-content {
    max-width: 900px;
    width: 100%; /* Ensure content block takes full width up to max-width */
    z-index: 1;
}

.page-promotions-daily-cashback__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: #F2C14E; /* Gold for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions-daily-cashback__description {
    font-size: clamp(1em, 2vw, 1.2em);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-daily-cashback__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons on mobile */
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.page-promotions-daily-cashback__btn-primary,
.page-promotions-daily-cashback__btn-secondary {
    display: block;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions-daily-cashback__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-daily-cashback__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-promotions-daily-cashback__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow color */
    border: 2px solid #2E7A4E; /* Border color */
}

.page-promotions-daily-cashback__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1); /* Slight background on hover */
    transform: translateY(-2px);
}

.page-promotions-daily-cashback__btn-large {
    padding: 18px 30px;
    font-size: 1.3em;
}

/* General Section Styling */
.page-promotions-daily-cashback__section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-promotions-daily-cashback__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: #F2C14E; /* Gold for section titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.page-promotions-daily-cashback__sub-title {
    font-size: clamp(1.3em, 2.5vw, 1.8em);
    color: #57E38D; /* Glow color for sub titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions-daily-cashback__content-area {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    color: #F2FFF6; /* Text Main */
}

.page-promotions-daily-cashback__content-area p {
    margin-bottom: 15px;
}

.page-promotions-daily-cashback__content-area a {
    color: #57E38D; /* Glow color for links */
    text-decoration: underline;
}

.page-promotions-daily-cashback__content-area a:hover {
    color: #F2C14E; /* Gold on hover */
}

.page-promotions-daily-cashback__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
}

.page-promotions-daily-cashback__list li {
    margin-bottom: 10px;
}

.page-promotions-daily-cashback__image-wrapper {
    text-align: center;
    margin: 30px 0;
}

.page-promotions-daily-cashback__image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Example max-width for content images */
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* FAQ Section */
.page-promotions-daily-cashback__faq-section {
    background-color: #11271B; /* Card BG */
    padding: 60px 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.page-promotions-daily-cashback__faq-item {
    background-color: #0A4B2C; /* Deep Green for FAQ item background */
    border-bottom: 1px solid #2E7A4E; /* Border color */
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.page-promotions-daily-cashback__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.page-promotions-daily-cashback__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #0A4B2C; /* Deep Green */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions-daily-cashback__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-promotions-daily-cashback__faq-question:hover {
    background-color: #1E3A2A; /* Divider color for hover */
}

.page-promotions-daily-cashback__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color */
}

.page-promotions-daily-cashback__faq-answer {
    padding: 0 25px 15px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Styles for <details> tag */
.page-promotions-daily-cashback__faq-item[open] .page-promotions-daily-cashback__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    padding-top: 10px;
}

/* Why Choose Section */
.page-promotions-daily-cashback__why-choose {
    padding-top: 60px;
    text-align: center;
}

.page-promotions-daily-cashback__why-choose .page-promotions-daily-cashback__list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: left;
}

.page-promotions-daily-cashback__why-choose .page-promotions-daily-cashback__list li {
    background-color: #11271B; /* Card BG */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    color: #F2FFF6; /* Text Main */
    border-left: 5px solid #F2C14E; /* Gold accent */
}

.page-promotions-daily-cashback__why-choose .page-promotions-daily-cashback__list li strong {
    color: #57E38D; /* Glow color */
}

.page-promotions-daily-cashback__cta-wrapper {
    margin-top: 40px;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-promotions-daily-cashback__hero-section {
        flex-direction: row; /* Desktop: image and content side-by-side */
        text-align: left;
        padding: 80px 40px;
        justify-content: center;
        gap: 40px;
    }

    .page-promotions-daily-cashback__hero-image-wrapper {
        flex: 1;
        max-width: 50%;
        margin-bottom: 0;
    }

    .page-promotions-daily-cashback__hero-content {
        flex: 1;
        max-width: 50%;
        text-align: left;
    }

    .page-promotions-daily-cashback__main-title {
        margin-left: 0;
        margin-right: 0;
    }

    .page-promotions-daily-cashback__description {
        margin-left: 0;
        margin-right: 0;
    }

    .page-promotions-daily-cashback__cta-buttons {
        flex-direction: row; /* Buttons side-by-side on desktop */
        max-width: none;
        margin: 0;
    }

    .page-promotions-daily-cashback__why-choose .page-promotions-daily-cashback__list {
        grid-template-columns: repeat(2, 1fr); /* Two columns for desktop */
    }
}

/* Mobile-specific adaptations */
@media (max-width: 768px) {
    .page-promotions-daily-cashback {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions-daily-cashback__hero-section {
        padding: 10px 15px 30px;
    }

    .page-promotions-daily-cashback__main-title {
        font-size: 2em; /* Smaller H1 on mobile */
    }

    .page-promotions-daily-cashback__description {
        font-size: 1em;
    }

    .page-promotions-daily-cashback__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .page-promotions-daily-cashback__btn-primary,
    .page-promotions-daily-cashback__btn-secondary,
    .page-promotions-daily-cashback a[class*="button"],
    .page-promotions-daily-cashback 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; /* Add padding to buttons themselves */
    }

    .page-promotions-daily-cashback__section,
    .page-promotions-daily-cashback__faq-section {
        padding: 30px 15px;
    }

    .page-promotions-daily-cashback__section-title {
        font-size: 1.8em;
    }

    .page-promotions-daily-cashback__sub-title {
        font-size: 1.2em;
    }

    .page-promotions-daily-cashback__content-area {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-promotions-daily-cashback img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
      min-width: 200px !important; /* Ensure minimum size */
      min-height: 200px !important; /* Ensure minimum size */
    }
    
    .page-promotions-daily-cashback__hero-image-wrapper,
    .page-promotions-daily-cashback__image-wrapper,
    .page-promotions-daily-cashback__cta-wrapper,
    .page-promotions-daily-cashback__section,
    .page-promotions-daily-cashback__card,
    .page-promotions-daily-cashback__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* FAQ item padding for mobile */
    .page-promotions-daily-cashback__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }

    .page-promotions-daily-cashback__faq-answer {
        padding: 0 20px 10px;
    }
}