:root {
    --lot88-primary: #FF8C1A;
    --lot88-secondary: #FFA53A;
    --lot88-card-bg: #17191F;
    --lot88-background: #0D0E12;
    --lot88-text-main: #FFF3E6;
    --lot88-border: #A84F0C;
    --lot88-glow: #FFB04D;
    --lot88-deep-orange: #D96800;
}

.page-promotions {
    background-color: var(--lot88-background); /* Dark background for the page content */
    color: var(--lot88-text-main); /* Light text on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

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

/* Headings */
.page-promotions__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--lot88-secondary); /* Using secondary for titles for contrast */
    text-align: center;
    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: 4px;
    background: var(--lot88-primary);
    border-radius: 2px;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font-size clamp */
    font-weight: 800;
    color: var(--lot88-text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__subtitle {
    font-size: 1.2rem;
    color: var(--lot88-text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Text blocks */
.page-promotions__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--lot88-text-main);
    text-align: justify;
}

.page-promotions__highlight {
    color: var(--lot88-glow);
    font-weight: 600;
}

.page-promotions__link {
    color: var(--lot88-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-promotions__link:hover {
    color: var(--lot88-primary);
    text-decoration: underline;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--lot88-secondary) 0%, var(--lot88-deep-orange) 100%);
    color: #ffffff; /* White text for primary button */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, var(--lot88-primary) 0%, var(--lot88-deep-orange) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--lot88-secondary);
    border: 2px solid var(--lot88-secondary);
}

.page-promotions__btn-secondary:hover {
    background: var(--lot88-secondary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.page-promotions__btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: var(--lot88-background);
    display: flex; /* For image-above-text layout */
    flex-direction: column; /* For image-above-text layout */
    align-items: center;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Space between image and content */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover for desktop */
    aspect-ratio: 16/9; /* Maintain aspect ratio */
    border-radius: 10px;
    max-width: 1200px; /* Max width for the image */
}

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 15px;
    text-align: center;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* For responsiveness */
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    overflow: hidden; /* For responsiveness */
}

.page-promotions__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 60px 0;
    background-color: var(--lot88-card-bg); /* Darker background for sections */
}

/* Featured Promotions Section */
.page-promotions__featured-promos-section {
    padding: 60px 0;
    background-color: var(--lot88-background);
}

.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    background-color: var(--lot88-card-bg);
    border: 1px solid var(--lot88-border);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-promotions__promo-card-title {
    font-size: 1.4rem;
    color: var(--lot88-secondary);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-promotions__promo-card-description {
    font-size: 0.95rem;
    color: var(--lot88-text-main);
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* How To Claim Section */
.page-promotions__how-to-claim-section {
    padding: 60px 0;
    background-color: var(--lot88-card-bg);
}

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

.page-promotions__step-card {
    background-color: var(--lot88-background);
    border: 1px solid var(--lot88-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--lot88-primary);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
    font-size: 1.3rem;
    color: var(--lot88-secondary);
    margin-bottom: 15px;
}

.page-promotions__step-description {
    font-size: 1rem;
    color: var(--lot88-text-main);
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--lot88-background);
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    color: var(--lot88-text-main);
    font-size: 1rem;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 60px 0;
    background-color: var(--lot88-card-bg);
}

.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.page-promotions__benefits-list li {
    background-color: var(--lot88-background);
    border: 1px solid var(--lot88-border);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    color: var(--lot88-text-main);
}

.page-promotions__benefits-list li strong {
    color: var(--lot88-primary);
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

/* FAQ Section */
details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--lot88-border);
  overflow: hidden;
  background: var(--lot88-card-bg);
}
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(--lot88-secondary); /* FAQ question text 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(var(--lot88-primary), 0.1); /* Slightly lighter hover */
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--lot88-secondary); /* Explicitly set color for text */
}
.page-promotions__faq-toggle {
  font-size: 28px; /* Larger toggle for visibility */
  font-weight: bold;
  color: var(--lot88-primary);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: var(--lot88-background); /* Darker background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--lot88-text-main); /* Light text for answer */
}
details.page-promotions__faq-item .page-promotions__faq-answer p {
    margin: 0;
    padding-top: 10px;
    color: var(--lot88-text-main);
}


/* Conclusion Section */
.page-promotions__conclusion-section {
    padding: 60px 0;
    background-color: var(--lot88-card-bg);
    text-align: center;
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-promotions__hero-image {
        max-width: 1000px;
    }

    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-promotions__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .page-promotions__benefits-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

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

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

    /* 1. HERO Chủ đề chính */
    .page-promotions__hero-section {
        padding-top: 10px; /* Small top padding, not var(--header-offset) */
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-promotions__hero-image {
        object-fit: contain !important; /* Must be contain for mobile */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
        height: auto !important; /* Ensure height adjusts */
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0;
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-promotions__subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        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: 1rem;
    }

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

    /* 2. Khu vực hiển thị sản phẩm (Promo Grid) */
    .page-promotions__promo-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-promotions__promo-card {
        padding-bottom: 15px;
    }
    .page-promotions__promo-card-image {
        height: 150px; /* Adjust height for mobile cards */
        margin-bottom: 15px;
    }
    .page-promotions__promo-card-title {
        font-size: 1.2rem;
    }
    .page-promotions__promo-card-description {
        font-size: 0.9rem;
    }
    .page-promotions__btn-small {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* How To Claim Section */
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column for steps */
        gap: 20px;
    }
    .page-promotions__step-card {
        padding: 20px;
    }
    .page-promotions__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .page-promotions__step-title {
        font-size: 1.1rem;
    }
}