/* 须含：1023px试玩重置、1024px三栏300px、overlay z-index、promo、hot-games、768px */
@media (max-width:1023px){.page-promotions__home-hero{display:block!important;grid-template-columns:none!important;height:auto!important;max-height:none!important;overflow-x:hidden;box-sizing:border-box;}.page-promotions__hero-brand,.page-promotions__hero-jackpot{display:none!important;}.page-promotions__game-trial{width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow:hidden!important;padding:0 0 12px!important;box-sizing:border-box;}.page-promotions__game-trial-shell{height:auto!important;max-height:none!important;width:100%;max-width:100%;overflow:hidden;box-sizing:border-box;}.page-promotions__game-trial-topbar,.page-promotions__game-trial-bottombar{display:none!important;}.page-promotions__game-trial-viewport{position:relative;aspect-ratio:1024/768;min-height:240px;max-height:none!important;flex:none!important;overflow:hidden;box-sizing:border-box;width:100%;}.page-promotions__game-trial-frame{position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;max-width:100%;border:none;z-index:1;overflow:hidden;}.page-promotions__game-trial-overlay{z-index:5!important;pointer-events:auto!important;}.page-promotions__game-trial-start{z-index:6!important;pointer-events:auto!important;touch-action:manipulation;}}
@media (min-width:1024px){.page-promotions__home-hero{display:grid;grid-template-columns:26% 48% 26%;align-items:stretch;max-width:1280px;margin:0 auto;padding-bottom:24px;}.page-promotions__hero-brand,.page-promotions__hero-jackpot,.page-promotions__game-trial{height:300px;max-height:300px;}.page-promotions__game-trial{overflow:hidden;}.page-promotions__game-trial-shell{display:flex;flex-direction:column;height:100%;}.page-promotions__game-trial-viewport{flex:1;min-height:0;}.page-promotions__game-trial-frame{height:100%;min-height:0;}.page-promotions__hero-jackpot-claim{background:#c62828!important;}.page-promotions__promo-strip{margin-top:16px;}}
@media (max-width:768px){.page-promotions__promo-strip-track{grid-template-columns:repeat(4,1fr);overflow-x:hidden;}.page-promotions__hot-games-grid{grid-template-columns:repeat(2,1fr);}}
.page-promotions__game-trial-overlay{z-index:5;pointer-events:auto;}.page-promotions__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-promotions__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-promotions__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-promotions__reward-modal{position:fixed;inset:0;z-index:10000;}

/* Page-specific styles for promotions.css */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

.page-promotions__section-title {
    font-size: 36px;
    color: #2F6BFF; /* Main Color */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Adjust as needed for aspect ratio */
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

.page-promotions__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 40px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
}

.page-promotions__main-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-promotions__description {
    font-size: clamp(16px, 1.8vw, 20px);
    margin-bottom: 25px;
    line-height: 1.5;
}

.page-promotions__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

/* Intro Section */
.page-promotions__intro-section p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

/* Offer Types Section */
.page-promotions__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__card {
    background: #FFFFFF;
    border: 1px solid #D6E2FF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 24px;
    color: #2F6BFF;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-promotions__card-content p {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-button {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
}

/* How To Claim Section */
.page-promotions__step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__step-list li {
    background: #FFFFFF;
    border: 1px solid #D6E2FF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2F6BFF;
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-promotions__step-list li h3 {
    font-size: 22px;
    color: #2F6BFF;
    margin-top: 15px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-promotions__step-list li p {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__step-button {
    display: inline-block;
    background: #6FA3FF;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__step-button:hover {
    background: #2F6BFF;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__button-secondary {
    display: inline-block;
    background: #FFFFFF;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__button-secondary:hover {
    background: #2F6BFF;
    color: #FFFFFF;
}

/* Why Choose Section */
.page-promotions__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-promotions__feature-item {
    background: #FFFFFF;
    border: 1px solid #D6E2FF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__feature-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__feature-title {
    font-size: 24px;
    color: #2F6BFF;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-promotions__feature-item p {
    font-size: 16px;
}

/* FAQ Section */
details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  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: #F4F7FB;
  border-radius: 0 0 5px 5px;
}
.page-promotions__faq-answer p {
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
    .page-promotions__hero-section {
        margin-bottom: 20px;
    }
    .page-promotions__hero-content {
        padding: 20px 30px;
    }
    .page-promotions__main-title {
        font-size: clamp(24px, 5vw, 40px);
    }
    .page-promotions__description {
        font-size: clamp(15px, 2vw, 18px);
    }
    .page-promotions__section-title {
        font-size: 30px;
    }
    .page-promotions__card-grid,
    .page-promotions__step-list,
    .page-promotions__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .page-promotions__card-image {
        height: 180px;
    }
}

@media (min-width: 1024px) {
    /* No specific 3-column game trial layout for promotions page */
}

@media (max-width: 768px) {
    .page-promotions {
        padding-top: 5px;
    }
    .page-promotions__container {
        padding: 0 10px;
    }
    .page-promotions__section {
        padding: 30px 0;
    }
    .page-promotions__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    /* Hero Section */
    .page-promotions__hero-content {
        padding: 15px 20px;
        width: 95%;
    }
    .page-promotions__main-title {
        font-size: clamp(22px, 6vw, 36px);
    }
    .page-promotions__description {
        font-size: clamp(14px, 2.5vw, 16px);
        margin-bottom: 15px;
    }
    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__card-image {
        height: 160px;
    }
    .page-promotions__feature-image {
        max-width: 250px;
        min-width: 180px;
        min-height: 180px;
    }

    /* Card and Grid layout */
    .page-promotions__card-grid,
    .page-promotions__step-list,
    .page-promotions__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card {
        padding-bottom: 0;
    }
    .page-promotions__card-content {
        padding: 20px;
    }
    .page-promotions__card-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .page-promotions__card-content p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .page-promotions__card-button,
    .page-promotions__step-button,
    .page-promotions__button-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__step-list li {
        padding: 25px;
    }
    .page-promotions__step-list li h3 {
        font-size: 20px;
    }
    .page-promotions__step-list li p {
        font-size: 15px;
    }

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

    /* Containers for mobile overflow prevention */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}