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

:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --background-color-dark: #121212; /* From body background */
}

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

.page-promotions-daily-deposit-rebate__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    text-align: center;
    overflow: hidden;
    background-color: var(--background-color-dark);
}

.page-promotions-daily-deposit-rebate__hero-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-promotions-daily-deposit-rebate__main-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-promotions-daily-deposit-rebate__hero-description {
    font-size: 20px;
    color: var(--text-color-dark-bg);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions-daily-deposit-rebate__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions-daily-deposit-rebate__cta-button--primary {
    background-color: var(--primary-color);
    color: var(--text-color-light-bg); /* Gold background with dark text for contrast */
}

.page-promotions-daily-deposit-rebate__cta-button--primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions-daily-deposit-rebate__cta-button--secondary:hover {
    background-color: #7a0000; /* Slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions-daily-deposit-rebate__section-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions-daily-deposit-rebate__section-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 30px auto 0;
    color: var(--text-color-dark-bg);
}

.page-promotions-daily-deposit-rebate__details-section {
    padding: 80px 20px;
    background-color: var(--background-color-dark);
    color: var(--text-color-dark-bg);
}

.page-promotions-daily-deposit-rebate__details-container,
.page-promotions-daily-deposit-rebate__benefits-container,
.page-promotions-daily-deposit-rebate__faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-promotions-daily-deposit-rebate__details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.page-promotions-daily-deposit-rebate__detail-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly visible on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions-daily-deposit-rebate__detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions-daily-deposit-rebate__detail-card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-daily-deposit-rebate__detail-card-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions-daily-deposit-rebate__detail-card-text {
    font-size: 16px;
    color: var(--text-color-dark-bg);
}

.page-promotions-daily-deposit-rebate__benefits-section {
    padding: 80px 20px;
    background-color: #0d0d0d; /* Slightly different dark background */
    color: var(--text-color-dark-bg);
}

.page-promotions-daily-deposit-rebate__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.page-promotions-daily-deposit-rebate__benefit-item {
    background: rgba(139, 0, 0, 0.2); /* Dark red background with transparency */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.4);
}

.page-promotions-daily-deposit-rebate__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions-daily-deposit-rebate__benefit-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-daily-deposit-rebate__benefit-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-promotions-daily-deposit-rebate__benefit-text {
    font-size: 16px;
    color: var(--text-color-dark-bg);
}

.page-promotions-daily-deposit-rebate__cta-section {
    padding: 80px 20px;
    background-color: var(--secondary-color); /* Use secondary color as background */
    color: var(--text-color-dark-bg);
    text-align: center;
}

.page-promotions-daily-deposit-rebate__cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions-daily-deposit-rebate__cta-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-promotions-daily-deposit-rebate__cta-description {
    font-size: 20px;
    color: var(--text-color-dark-bg);
    margin-bottom: 40px;
}

.page-promotions-daily-deposit-rebate__faq-section {
    padding: 80px 20px;
    background-color: var(--background-color-dark);
    color: var(--text-color-dark-bg);
}

.page-promotions-daily-deposit-rebate__faq-list {
    margin-top: 40px;
}

.page-promotions-daily-deposit-rebate__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-promotions-daily-deposit-rebate__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05); /* Lighter on dark background */
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-promotions-daily-deposit-rebate__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color); /* Gold text for questions */
    pointer-events: none;
}

.page-promotions-daily-deposit-rebate__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-promotions-daily-deposit-rebate__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: rgba(139, 0, 0, 0.1); /* Dark red background for answers */
    color: var(--text-color-dark-bg);
}

.page-promotions-daily-deposit-rebate__faq-item.active .page-promotions-daily-deposit-rebate__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-promotions-daily-deposit-rebate__faq-item.active .page-promotions-daily-deposit-rebate__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change to X when active */
}

/* General image styling for content area */
.page-promotions-daily-deposit-rebate img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions-daily-deposit-rebate__main-title {
        font-size: 40px;
    }
    .page-promotions-daily-deposit-rebate__hero-description {
        font-size: 18px;
    }
    .page-promotions-daily-deposit-rebate__section-title {
        font-size: 32px;
    }
    .page-promotions-daily-deposit-rebate__cta-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .page-promotions-daily-deposit-rebate__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions-daily-deposit-rebate__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-promotions-daily-deposit-rebate__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-promotions-daily-deposit-rebate__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-promotions-daily-deposit-rebate__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-promotions-daily-deposit-rebate__details-section,
    .page-promotions-daily-deposit-rebate__benefits-section,
    .page-promotions-daily-deposit-rebate__cta-section,
    .page-promotions-daily-deposit-rebate__faq-section {
        padding: 60px 15px;
    }

    .page-promotions-daily-deposit-rebate__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-promotions-daily-deposit-rebate__section-text {
        font-size: 16px;
    }

    .page-promotions-daily-deposit-rebate__detail-card,
    .page-promotions-daily-deposit-rebate__benefit-item {
        padding: 25px;
    }

    .page-promotions-daily-deposit-rebate__detail-card-title {
        font-size: 20px;
    }

    .page-promotions-daily-deposit-rebate__benefit-title {
        font-size: 18px;
    }

    .page-promotions-daily-deposit-rebate__cta-title {
        font-size: 30px;
    }

    .page-promotions-daily-deposit-rebate__cta-description {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .page-promotions-daily-deposit-rebate__faq-question {
        padding: 15px;
    }

    .page-promotions-daily-deposit-rebate__faq-question h3 {
        font-size: 16px;
    }

    .page-promotions-daily-deposit-rebate__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-promotions-daily-deposit-rebate__faq-answer {
      padding: 0 15px;
    }
    .page-promotions-daily-deposit-rebate__faq-item.active .page-promotions-daily-deposit-rebate__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images are responsive and don't overflow */
    .page-promotions-daily-deposit-rebate img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-promotions-daily-deposit-rebate__hero-section,
    .page-promotions-daily-deposit-rebate__details-container,
    .page-promotions-daily-deposit-rebate__benefits-container,
    .page-promotions-daily-deposit-rebate__cta-container,
    .page-promotions-daily-deposit-rebate__faq-container,
    .page-promotions-daily-deposit-rebate__details-grid,
    .page-promotions-daily-deposit-rebate__benefits-grid,
    .page-promotions-daily-deposit-rebate__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-promotions-daily-deposit-rebate__hero-container {
        padding-left: 0;
        padding-right: 0;
    }
}