/* style/promotions.css */

/* Custom Colors */
:root {
    --u888-green-main: #11A84E;
    --u888-green-secondary: #22C768;
    --u888-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --u888-card-bg: #11271B;
    --u888-page-bg: #08160F;
    --u888-text-main: #F2FFF6;
    --u888-text-secondary: #A7D9B8;
    --u888-border: #2E7A4E;
    --u888-glow: #57E38D;
    --u888-gold: #F2C14E;
    --u888-divider: #1E3A2A;
    --u888-deep-green: #0A4B2C;
}

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--u888-text-main); /* Default text color for the page */
    background-color: var(--u888-page-bg); /* Page background */
}

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

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

.page-promotions__light-bg {
    background-color: #0d1a13; /* Slightly lighter dark background for contrast */
    color: var(--u888-text-main);
}

.page-promotions__section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--u888-gold);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__section-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--u888-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: var(--u888-button-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--u888-gold);
    color: var(--u888-page-bg);
    transform: translateY(-2px);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    min-height: 600px;
    overflow: hidden;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly transparent to allow text to stand out */
}

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

.page-promotions__main-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    color: var(--u888-text-main);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 20px;
    line-height: 1.7;
    color: var(--u888-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__hero-content .page-promotions__btn-primary {
    margin-top: 20px;
}

/* Why Choose Section */
.page-promotions__why-choose {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.page-promotions__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__feature-item {
    background-color: var(--u888-card-bg);
    border: 1px solid var(--u888-border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--u888-text-main);
}

.page-promotions__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(42, 209, 111, 0.3);
}

.page-promotions__feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--u888-gold);
    margin-bottom: 15px;
}

.page-promotions__feature-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--u888-text-secondary);
}

/* Promotion Types Section */
.page-promotions__promotion-types {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-promotions__promotion-card {
    background-color: var(--u888-card-bg);
    border: 1px solid var(--u888-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: var(--u888-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(42, 209, 111, 0.3);
}

.page-promotions__promotion-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__promotion-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--u888-gold);
    margin-bottom: 15px;
}

.page-promotions__promotion-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--u888-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__game-offers {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.page-promotions__game-offers li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--u888-text-secondary);
    margin-bottom: 5px;
}

.page-promotions__game-offers li a {
    color: var(--u888-green-secondary);
    text-decoration: none;
}

.page-promotions__game-offers li a:hover {
    text-decoration: underline;
}

/* How to Join Section */
.page-promotions__how-to-join {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-promotions__step-item {
    background-color: var(--u888-card-bg);
    border: 1px solid var(--u888-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding-left: 70px;
    min-height: 150px;
    color: var(--u888-text-main);
}

.page-promotions__step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(42, 209, 111, 0.3);
}

.page-promotions__step-number {
    position: absolute;
    left: 20px;
    top: 30px;
    width: 40px;
    height: 40px;
    background: var(--u888-button-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.5);
}

.page-promotions__step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--u888-gold);
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--u888-text-secondary);
}

.page-promotions__how-to-join .page-promotions__btn-primary {
    margin-top: 50px;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-promotions__terms-item {
    background-color: var(--u888-card-bg);
    border: 1px solid var(--u888-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    color: var(--u888-text-main);
}

.page-promotions__terms-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--u888-gold);
    margin-bottom: 10px;
}

.page-promotions__terms-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--u888-text-secondary);
}

.page-promotions__terms-conditions .page-promotions__btn-secondary {
    margin-top: 30px;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-item {
    background-color: var(--u888-card-bg);
    border: 1px solid var(--u888-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--u888-text-main);
}

.page-promotions__faq-item summary {
    list-style: none;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 700;
    color: var(--u888-gold);
    cursor: pointer;
    background-color: var(--u888-deep-green);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: var(--u888-green-main);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    color: var(--u888-gold);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--u888-text-secondary);
    background-color: var(--u888-card-bg);
}

.page-promotions__faq-section .page-promotions__btn-primary {
    margin-top: 40px;
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.page-promotions__cta-final .page-promotions__btn-primary {
    margin-top: 50px;
}

/* General image styling for responsiveness and minimum size */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(32px, 4.5vw, 50px);
    }

    .page-promotions__hero-description {
        font-size: 18px;
    }
}

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

    .page-promotions__container {
        padding: 30px 15px;
    }

    .page-promotions__section-title {
        font-size: clamp(24px, 4vw, 36px);
        margin-bottom: 15px;
    }

    .page-promotions__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-promotions__hero-section {
        min-height: 450px;
        padding: 10px 15px 40px;
    }

    .page-promotions__main-title {
        font-size: clamp(28px, 6vw, 40px);
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 16px;
        padding: 12px 25px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 15px;
    }

    .page-promotions__hero-content .page-promotions__btn-primary {
        margin-top: 15px;
    }

    .page-promotions__why-choose,
    .page-promotions__promotion-types,
    .page-promotions__how-to-join,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section,
    .page-promotions__cta-final {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-promotions__feature-list,
    .page-promotions__promotion-grid,
    .page-promotions__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-promotions__promotion-image {
        height: 180px;
    }

    .page-promotions__step-item {
        padding-left: 60px;
        min-height: auto;
    }

    .page-promotions__step-number {
        left: 15px;
        top: 25px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
        font-size: 15px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__promotion-card,
    .page-promotions__step-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-promotions__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-promotions__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Video responsiveness (if any, though not explicitly used here) */
    .page-promotions video,
    .page-promotions__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    .page-promotions__video-section {
        padding-top: 10px !important;
    }

    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(24px, 7vw, 36px);
    }

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

    .page-promotions__section-title {
        font-size: clamp(22px, 5vw, 30px);
    }

    .page-promotions__promotion-image {
        height: 160px;
    }

    .page-promotions__step-item {
        padding-left: 50px;
    }

    .page-promotions__step-number {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}