/* General styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #FFF6D6); /* Default light text for dark background */
    background-color: var(--bg-color, #0A0A0A); /* Overall dark background */
}

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

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section-title {
    font-size: 36px;
    color: var(--text-main-color, #FFF6D6);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--main-color, #F2C14E), transparent);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 80px;
    background: var(--bg-color, #0A0A0A);
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background effect */
    display: block;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 0;
    text-align: center;
    color: var(--text-main-color, #FFF6D6);
}

.page-promotions__main-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main-color, #FFF6D6);
}

.page-promotions__description {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-main-color, #FFF6D6);
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #1a1a1a; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--text-main-color, #FFF6D6);
    border: 2px solid var(--border-color, #3A2A12);
}

.page-promotions__btn-secondary:hover {
    background: var(--border-color, #3A2A12);
    color: var(--main-color, #F2C14E);
}

.page-promotions__btn-tertiary {
    background: var(--main-color, #F2C14E);
    color: #1a1a1a; /* Dark text for bright button */
    border: none;
    font-size: 16px;
    padding: 12px 25px;
}

.page-promotions__btn-tertiary:hover {
    background: var(--aux-color, #FFD36B);
    transform: translateY(-2px);
}

/* Featured Promotions */
.page-promotions__featured-promos {
    background-color: var(--bg-color, #0A0A0A);
}

.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-promotions__promo-card {
    background: var(--card-bg-color, #111111);
    border: 1px solid var(--border-color, #3A2A12);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

.page-promotions__promo-card-title {
    font-size: 22px;
    color: var(--text-main-color, #FFF6D6);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-promotions__promo-card-text {
    font-size: 15px;
    color: var(--text-main-color, #FFF6D6);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    background-color: var(--bg-color, #0A0A0A);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-promotions__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background: var(--card-bg-color, #111111);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color, #3A2A12);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--main-color, #F2C14E);
    color: #1a1a1a;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 20px;
}

.page-promotions__step-content {
    text-align: left;
}

.page-promotions__step-title {
    font-size: 20px;
    color: var(--text-main-color, #FFF6D6);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-promotions__step-content p {
    font-size: 16px;
    color: var(--text-main-color, #FFF6D6);
}

/* FAQ Section */
.page-promotions__faq {
    background-color: var(--bg-color, #0A0A0A);
    padding-bottom: 80px;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #3A2A12);
  overflow: hidden;
  background: var(--card-bg-color, #111111);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  color: var(--text-main-color, #FFF6D6);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: var(--border-color, #3A2A12);
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color, #FFF6D6);
}
.page-promotions__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  color: var(--main-color, #F2C14E); /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Slightly larger toggle area */
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 25px;
  background: rgba(17, 17, 17, 0.8); /* Slightly transparent for depth */
  border-radius: 0 0 12px 12px;
  text-align: left;
}
.page-promotions__faq-answer p {
    color: var(--text-main-color, #FFF6D6);
    font-size: 16px;
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--main-color, #F2C14E) 0%, var(--aux-color, #FFD36B) 100%);
    color: #1a1a1a; /* Dark text for bright background */
}

.page-promotions__cta-final .page-promotions__section-title,
.page-promotions__cta-final .page-promotions__description {
    color: #1a1a1a;
}

.page-promotions__cta-final .page-promotions__section-title::after {
    background: linear-gradient(90deg, transparent, #1a1a1a, transparent);
}

.page-promotions__cta-final .page-promotions__cta-buttons .page-promotions__btn-primary {
    background: #1a1a1a;
    color: var(--main-color, #F2C14E);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-final .page-promotions__cta-buttons .page-promotions__btn-primary:hover {
    background: #333333;
    color: var(--aux-color, #FFD36B);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 60px 20px 0;
    }
    .page-promotions__main-title {
        font-size: 42px;
    }
    .page-promotions__section-title {
        font-size: 32px;
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .page-promotions__promo-card-image {
        height: 180px;
    }
    .page-promotions__promo-card-title {
        font-size: 20px;
    }
    .page-promotions__promo-card-text {
        font-size: 15px;
    }
    .page-promotions__step-item {
        padding: 20px;
    }
    .page-promotions__step-number {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    .page-promotions__step-title {
        font-size: 18px;
    }
    .page-promotions__faq-qtext {
        font-size: 17px;
    }
    .page-promotions__faq-toggle {
        font-size: 26px;
        width: 28px;
    }
}

@media (max-width: 768px) {
    /* General content area padding */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 60px;
    }
    .page-promotions__hero-content {
        padding: 40px 15px 0;
    }
    .page-promotions__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-promotions__description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Buttons */
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-tertiary,
    .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: 12px 20px;
        font-size: 16px;
    }

    /* Images */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-promotions__promo-card-image {
        height: 160px; /* Adjust height for mobile */
    }

    /* Featured Promotions Grid */
    .page-promotions__promo-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        padding: 0 15px;
    }
    .page-promotions__promo-card {
        padding: 20px;
    }
    .page-promotions__promo-card-title {
        font-size: 18px;
    }
    .page-promotions__promo-card-text {
        font-size: 14px;
    }

    /* How to Claim Section */
    .page-promotions__step-item {
        flex-direction: column; /* Stack number and content */
        align-items: center;
        padding: 20px 15px;
    }
    .page-promotions__step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .page-promotions__step-content {
        text-align: center;
    }
    .page-promotions__step-title {
        font-size: 18px;
    }
    .page-promotions__step-content p {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-promotions__faq-item summary.page-promotions__faq-question {
        padding: 15px;
    }
    .page-promotions__faq-qtext {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-promotions__faq-item .page-promotions__faq-answer {
        padding: 0 15px 15px;
    }
    .page-promotions__faq-answer p {
        font-size: 15px;
    }

    /* Final CTA Section */
    .page-promotions__cta-final {
        padding: 60px 15px;
    }
    .page-promotions__cta-final .page-promotions__description {
        font-size: 15px;
    }
}