/* style/promo.css */

/* Variables for consistency */
:root {
    --jili777-primary-color: #F2C14E; /* Main: Black Gold */
    --jili777-secondary-color: #FFD36B; /* Auxiliary: Black Gold */
    --jili777-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
    --jili777-card-bg: #111111; /* Card BG */
    --jili777-background: #0A0A0A; /* Background */
    --jili777-text-main: #FFF6D6; /* Text Main */
    --jili777-border-color: #3A2A12; /* Border */
    --jili777-glow-color: #FFD36B; /* Glow */

    /* For contrast with dark background */
    --text-on-dark: #FFF6D6; /* Text Main */
    --text-on-light: #333333; /* Standard dark text */
}

.page-promo {
    background-color: var(--jili777-background);
    color: var(--jili777-text-main); /* Ensure text is visible on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

/* Hero Section */
.page-promo__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--jili777-background);
    overflow: hidden; /* Ensure no overflow from image */
}

.page-promo__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for large screens */
    margin-bottom: 30px; /* Space between image and content */
}

.page-promo__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-promo__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-promo__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--jili777-secondary-color); /* Use a bright color for the main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-promo__hero-description {
    font-size: 1.15rem;
    color: var(--jili777-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-promo__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promo__btn-primary,
.page-promo__btn-secondary,
.page-promo__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    text-align: center;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-promo__btn-primary {
    background: var(--jili777-button-gradient);
    color: #ffffff; /* White text for contrast on gradient button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

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

.page-promo__btn-secondary:hover {
    background: var(--jili777-secondary-color);
    color: var(--jili777-background); /* Dark text on bright hover */
    transform: translateY(-3px);
}

/* General Section Styling */
.page-promo__section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    background-color: var(--jili777-background);
}

.page-promo__section-title {
    font-size: 2.5rem;
    color: var(--jili777-primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.page-promo__section-description {
    font-size: 1.1rem;
    color: var(--jili777-text-main);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promo__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-promo__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-promo__text-content {
    flex: 1;
}

.page-promo__text-content p {
    margin-bottom: 20px;
    color: var(--jili777-text-main);
}

.page-promo__text-content strong {
    color: var(--jili777-secondary-color);
}

.page-promo__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promo__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-promo__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-promo__list li {
    background: var(--jili777-card-bg); /* Dark background for list items */
    color: var(--jili777-text-main); /* Light text on dark background */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--jili777-border-color);
}

.page-promo__list li::before {
    content: '&#10004;'; /* Checkmark icon */
    font-size: 1.2em;
    color: var(--jili777-primary-color);
}

.page-promo__steps-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
    text-align: left;
    color: var(--jili777-text-main);
}

.page-promo__steps-list li {
    margin-bottom: 10px;
    padding: 5px 0;
}

/* Promo Cards Section */
.page-promo__promo-cards,
.page-promo__vip-tiers,
.page-promo__features-grid,
.page-promo__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promo__card {
    background-color: var(--jili777-card-bg);
    border: 1px solid var(--jili777-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

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

.page-promo__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block; /* Ensure image behaves as a block element */
    margin-left: auto;
    margin-right: auto;
}

.page-promo__card-title {
    font-size: 1.5rem;
    color: var(--jili777-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promo__card-text {
    color: var(--jili777-text-main);
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-promo__card-button {
    background: var(--jili777-button-gradient);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: auto; /* Push button to the bottom */
}

.page-promo__card-button:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    transform: translateY(-2px);
}

/* Game Categories */
.page-promo__game-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-promo__game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--jili777-card-bg);
    border: 1px solid var(--jili777-border-color);
    border-radius: 12px;
    padding: 20px;
    width: 120px; /* Fixed width for category items */
    height: 120px; /* Fixed height for category items */
    text-decoration: none;
    color: var(--jili777-text-main);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.page-promo__game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.3);
    color: var(--jili777-primary-color);
}

.page-promo__game-icon {
    width: 30px; /* Allowed small size for category icons */
    height: 30px; /* Allowed small size for category icons */
    object-fit: contain;
    margin-bottom: 10px;
}

.page-promo__game-name {
    font-weight: 600;
}

/* Security Features */
.page-promo__feature-item {
    background-color: var(--jili777-card-bg);
    border: 1px solid var(--jili777-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promo__feature-icon {
    width: 100px; /* Ensure icons are not too small, but larger than 30x30 */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-promo__feature-title {
    font-size: 1.4rem;
    color: var(--jili777-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promo__feature-text {
    color: var(--jili777-text-main);
    font-size: 0.95rem;
}

/* FAQ Section */
.page-promo__faq {
    text-align: left;
}

.page-promo__faq-list {
    margin-top: 40px;
}

.page-promo__faq-item {
    background-color: var(--jili777-card-bg);
    border: 1px solid var(--jili777-border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promo__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: var(--jili777-card-bg);
    color: var(--jili777-primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

.page-promo__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--jili777-secondary-color);
}

.page-promo__faq-item.active .page-promo__faq-toggle {
    transform: rotate(45deg); /* For '-' effect */
}

.page-promo__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    color: var(--jili777-text-main);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-promo__faq-item.active .page-promo__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 30px 30px 30px;
}

.page-promo__faq-answer p {
    margin-bottom: 15px;
    color: var(--jili777-text-main);
}

/* Why Choose Section */
.page-promo__advantage-item {
    background-color: var(--jili777-card-bg);
    border: 1px solid var(--jili777-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promo__advantage-title {
    font-size: 1.4rem;
    color: var(--jili777-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promo__advantage-text {
    color: var(--jili777-text-main);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promo__main-title {
        font-size: clamp(2.5rem, 5vw, 3rem);
    }

    .page-promo__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-promo__content-wrapper--reverse {
        flex-direction: column; /* Stack normally on smaller screens */
    }

    .page-promo__image-content,
    .page-promo__text-content {
        width: 100%;
    }
}

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

    .page-promo__hero-section {
        padding-bottom: 40px;
    }

    .page-promo__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-promo__hero-description {
        font-size: 1rem;
    }

    .page-promo__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-promo__btn-primary,
    .page-promo__btn-secondary,
    .page-promo a[class*="button"],
    .page-promo a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    .page-promo__section,
    .page-promo__card,
    .page-promo__container,
    .page-promo__cta-buttons,
    .page-promo__button-group,
    .page-promo__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-promo__section-title {
        font-size: 2rem;
    }

    .page-promo__section-description {
        font-size: 1rem;
    }

    /* All images responsive */
    .page-promo img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promo__promo-cards,
    .page-promo__vip-tiers,
    .page-promo__features-grid,
    .page-promo__advantages-grid {
        grid-template-columns: 1fr; /* Single column layout for cards on mobile */
        gap: 20px;
    }

    .page-promo__card {
        padding: 20px;
    }

    .page-promo__card-title {
        font-size: 1.3rem;
    }

    .page-promo__game-grid {
        gap: 10px;
        justify-content: space-around;
    }

    .page-promo__game-item {
        width: 100px;
        height: 100px;
        padding: 10px;
    }

    .page-promo__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-promo__faq-answer {
        padding: 0 20px;
    }

    .page-promo__faq-item.active .page-promo__faq-answer {
        padding: 15px 20px 20px 20px;
    }

    /* Override for specific small icons that are allowed */
    .page-promo__game-icon {
        width: 30px;
        height: 30px;
    }

    /* Ensure .page-promo__feature-icon is not too small on mobile */
    .page-promo__feature-icon {
        width: 80px;
        height: 80px;
    }
}