:root {
    --primary-color: #FF8C1A; /* Main color */
    --secondary-color: #FFA53A; /* Accent color */
    --card-bg-color: #17191F; /* Card Background */
    --page-bg-color: #0D0E12; /* Page Background */
    --text-main-color: #FFF3E6; /* Main text color */
    --border-color: #A84F0C; /* Border color */
    --glow-color: #FFB04D; /* Glow effect color */
    --deep-orange-color: #D96800; /* Deep Orange */

    /* Derived colors for better contrast on light backgrounds */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #1a1a1a; /* A generic dark background for contrast */
}

/* Base styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for the page, assuming dark background */
    background-color: var(--page-bg-color); /* Default page background */
}

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

.page-promotions__section {
    padding: 60px 0;
    position: relative;
}

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-promotions__text-block {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main-color);
}

/* HERO Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-bg-color);
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* For flex layout */
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions__main-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__hero-description {
    font-size: 18px;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-promotions__cta-button:hover {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--deep-orange-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Feature Cards (Overview Section) */
.page-promotions__feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: var(--card-bg-color); /* Card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

.page-promotions__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-promotions__card-description {
    font-size: 15px;
    color: var(--text-main-color);
}

/* Promo Grid (Welcome Bonus & Cashback) */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-card img {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-promotions__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-promotions__promo-content .page-promotions__card-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: left;
}

.page-promotions__promo-content p {
    margin-bottom: 20px;
    font-size: 16px;
    flex-grow: 1;
    color: var(--text-main-color);
}

.page-promotions__promo-content .page-promotions__cta-button {
    margin-top: 15px;
    align-self: center; /* Center button in promo card */
}

.page-promotions__note-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 40px;
    font-style: italic;
}

/* Promo Cards Row (Deposit Bonus) */
.page-promotions__promo-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-cards-row .page-promotions__card {
    padding: 25px;
    text-align: left;
}
.page-promotions__promo-cards-row .page-promotions__card .page-promotions__card-title {
    text-align: left;
}
.page-promotions__promo-cards-row .page-promotions__card .page-promotions__cta-button {
    margin-top: 20px;
    align-self: flex-start;
}

/* Special Events */
.page-promotions__event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.page-promotions__event-cards .page-promotions__card {
    padding: 25px;
}

/* Terms and Conditions */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
    color: var(--text-main-color);
}

.page-promotions__terms-list li {
    background-color: var(--card-bg-color);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    font-size: 16px;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__terms-highlight {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--page-bg-color);
}

details.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main-color);
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
    background: rgba(255, 255, 255, 0.05); /* Lighter hover for dark background */
}
.page-promotions__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}
.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 20px 20px;
    background: rgba(255, 255, 255, 0.03); /* Slightly different background for answer */
    border-radius: 0 0 5px 5px;
    color: var(--text-main-color);
}
details.page-promotions__faq-item .page-promotions__faq-answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

/* Why Choose Section */
.page-promotions__why-choose {
    background-color: var(--page-bg-color);
}

.page-promotions__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__advantage-item {
    background-color: var(--card-bg-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

.page-promotions__advantage-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-promotions__advantage-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-main-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 40px;
    }
    .page-promotions__hero-description {
        font-size: 16px;
    }
    .page-promotions__section-title {
        font-size: 32px;
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

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

    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 15px;
    }

    .page-promotions__feature-cards,
    .page-promotions__promo-grid,
    .page-promotions__promo-cards-row,
    .page-promotions__event-cards,
    .page-promotions__advantages-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 20px;
    }

    .page-promotions__card,
    .page-promotions__promo-card,
    .page-promotions__advantage-item {
        padding: 20px;
    }

    .page-promotions__card img,
    .page-promotions__promo-card img {
        min-width: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__promo-content .page-promotions__card-title {
        font-size: 24px;
    }

    .page-promotions__terms-list li {
        padding: 15px;
        font-size: 15px;
    }

    details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
    .page-promotions__faq-qtext { font-size: 15px; }
    details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }
    details.page-promotions__faq-item .page-promotions__faq-answer p { font-size: 14px; }

    /* Ensure all images and their containers are responsive */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-grid,
    .page-promotions__promo-card,
    .page-promotions__promo-cards-row,
    .page-promotions__event-cards,
    .page-promotions__advantages-grid,
    .page-promotions__btn-container,
    .page-promotions__button-group {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-promotions__cta-button,
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions 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; /* Ensure padding is consistent */
      padding-right: 15px; /* Ensure padding is consistent */
    }

    /* Flex containers with multiple buttons */
    .page-promotions__button-group {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
}

/* Ensure contrast for specific elements if needed, e.g., on light-bg cards */
.page-promotions__light-bg {
  background-color: var(--bg-light); /* Or a slightly off-white */
  color: var(--text-dark); /* Dark text for light background */
  border-color: #e0e0e0;
}
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg p {
  color: var(--text-dark);
}
.page-promotions__light-bg img {
  border: 1px solid #f0f0f0; /* Light border for images on light cards */
}

/* Specific button styles based on color scheme */
.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: var(--text-light);
}
.page-promotions__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.page-promotions__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}