/* promotions.css */

:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --bg-color: #140C0C; /* Background */
    --card-bg-color: #2A1212; /* Card B G */
    --text-main-color: #FFF1E8; /* Text Main */
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
    --btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--bg-color);
}

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

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

.page-promotions__dark-section {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
}

.page-promotions__light-bg {
    background-color: #1a1010; /* Slightly lighter than card-bg for contrast */
    color: var(--text-main-color);
}

.page-promotions__section-title {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--gold-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    overflow: hidden;
    padding: 10px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-image {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Ensure minimum height */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold-color);
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-promotions__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-main-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__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__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

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

.page-promotions__btn-secondary {
    background: var(--card-bg-color);
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(106, 30, 30, 0.4);
}

.page-promotions__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--card-bg-color);
    border-color: var(--gold-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 30, 30, 0.6);
}

/* Promo Grid Section */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__promo-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--gold-color);
    margin: 0 20px 15px;
    line-height: 1.4;
}

.page-promotions__card-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main-color);
    margin: 0 20px 25px;
}

.page-promotions__card-button {
    display: inline-block;
    background: var(--btn-gradient);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: calc(100% - 40px); /* Account for padding */
}

.page-promotions__card-button:hover {
    background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
}

/* Terms Section */
.page-promotions__terms-button {
    margin-top: 30px;
}

/* How-to-Claim Section */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__step-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 15px;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border: 3px solid var(--gold-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--deep-red-color);
}

.page-promotions__step-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--text-main-color);
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-main-color);
}

.page-promotions__action-button {
    margin-top: 50px;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-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;
}
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(106, 30, 30, 0.5);
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  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(--gold-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(0, 0, 0, 0.2); /* Slightly transparent dark background */
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}
.page-promotions__faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* Conclusion Section */
.page-promotions__final-cta {
    margin-top: 40px;
}

/* General Image Styling */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__container {
        padding: 20px 30px;
    }

    .page-promotions__section-title {
        font-size: 2.5em;
    }

    .page-promotions__main-title {
        font-size: clamp(2.2em, 4.5vw, 3.5em);
    }

    .page-promotions__description {
        font-size: 1.1em;
    }

    .page-promotions__promo-grid {
        gap: 25px;
    }

    .page-promotions__card-image {
        height: 200px;
    }

    .page-promotions__card-title {
        font-size: 1.4em;
    }

    .page-promotions__faq-qtext {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-promotions__hero-section {
        padding-top: 10px; /* Small top padding, not --header-offset */
        padding-bottom: 40px;
    }

    .page-promotions__hero-image {
        margin-bottom: 20px;
    }

    .page-promotions__hero-image img {
        object-fit: contain !important; /* Ensure image is fully visible */
        aspect-ratio: unset !important;
        min-height: 200px; /* Adjust min-height for mobile */
    }

    .page-promotions__hero-content {
        padding: 0 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-promotions__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .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;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Product Grid / Promo Grid */
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        overflow-x: hidden;
    }

    .page-promotions__promo-card {
        padding-bottom: 20px;
    }

    .page-promotions__card-image {
        height: 180px;
        margin-bottom: 15px;
    }

    .page-promotions__card-title {
        font-size: 1.2em;
        margin: 0 15px 10px;
    }

    .page-promotions__card-description {
        font-size: 0.9em;
        margin: 0 15px 20px;
    }

    .page-promotions__card-button {
        padding: 8px 20px;
        font-size: 0.9em;
        max-width: calc(100% - 30px); /* Account for padding */
    }

    /* Decorative Title + Long SEO text area (e.g., intro-section, terms-section) */
    .page-promotions__text-block {
        font-size: 0.95em;
        line-height: 1.7;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* General Images and Containers */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section, .page-promotions__card, .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* How-to-Claim Section */
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-promotions__step-item {
        padding: 25px 15px;
    }

    .page-promotions__step-icon {
        font-size: 2em;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }

    .page-promotions__step-title {
        font-size: 1.2em;
    }

    .page-promotions__action-button {
        margin-top: 30px;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* FAQ Section */
    details.page-promotions__faq-item summary.page-promotions__faq-question {
        padding: 15px;
    }
    .page-promotions__faq-qtext {
        font-size: 1em;
    }
    .page-promotions__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-promotions__faq-item .page-promotions__faq-answer {
        padding: 0 15px 15px;
    }
    .page-promotions__faq-answer p {
        font-size: 0.95em;
    }

    .page-promotions__final-cta {
        margin-top: 30px;
        padding: 12px 20px;
        font-size: 1em;
    }
}