/* style/lottery.css */
:root {
    --primary-color: #FFD700; /* Bright Gold */
    --secondary-color: #000080; /* Dark Blue */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #000000;
    --bg-light: #f8f9fa;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

.page-lottery {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherits from body, but explicitly set for clarity */
}

/* Fixed navigation bar spacing for main content */
.page-lottery__main-content-wrapper {
    padding-top: 120px; /* Desktop: Adjust based on actual shared header height */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

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

.page-lottery__section-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Hero Section */
.page-lottery__hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:lottery:123b,lottery_hero,banner]') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.page-lottery__main-title {
    font-size: 52px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.page-lottery__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-lottery__cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.page-lottery__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-lottery__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-lottery__games-section, .page-lottery__guide-section, .page-lottery__why-choose-us-section, .page-lottery__faq-section, .page-lottery__conclusion-section {
    padding: 80px 0;
}

.page-lottery__dark-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

/* Games Grid */
.page-lottery__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-lottery__game-card {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-lottery__game-image {
    width: 100%;
    max-width: 300px; /* Ensure images are not too small but fit card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-lottery__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-lottery__card-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-lottery__btn-tertiary {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-lottery__btn-tertiary:hover {
    background-color: #e6c200;
}

/* Guide Section */
.page-lottery__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-lottery__step-item {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-lottery__step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-lottery__step-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-lottery__step-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.page-lottery__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Why Choose Us Section */
.page-lottery__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-lottery__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-lottery__feature-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-lottery__feature-icon {
    width: 100px; /* Larger icons as per requirement */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-lottery__feature-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ Section */
.page-lottery__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-bg-dark-mode);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.page-lottery__faq-question:hover {
    background-color: #000066;
}

.page-lottery__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-lottery__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change to X */
}

.page-lottery__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background-color: var(--card-bg-dark-mode);
    color: var(--text-light);
    border-radius: 0 0 8px 8px;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-lottery__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Conclusion Section */
.page-lottery__conclusion-section {
    padding-bottom: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__main-title {
        font-size: 44px;
    }
    .page-lottery__section-title {
        font-size: 32px;
    }
    .page-lottery__hero-description, .page-lottery__section-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-lottery__main-content-wrapper {
        padding-top: 100px !important; /* Mobile: Adjust based on actual shared header height */
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-lottery__hero-section {
        padding: 60px 0;
    }

    .page-lottery__main-title {
        font-size: 36px;
    }

    .page-lottery__hero-description {
        font-size: 16px;
    }

    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-lottery__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-lottery__section-title {
        font-size: 28px;
    }

    .page-lottery__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-lottery__games-section, .page-lottery__guide-section, .page-lottery__why-choose-us-section, .page-lottery__faq-section, .page-lottery__conclusion-section {
        padding: 60px 0;
    }

    .page-lottery__game-card, .page-lottery__step-item, .page-lottery__feature-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-lottery__game-image, .page-lottery__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-lottery__card-title, .page-lottery__step-title, .page-lottery__feature-title {
        font-size: 20px;
    }

    .page-lottery__card-text, .page-lottery__step-text, .page-lottery__feature-text {
        font-size: 15px;
    }

    .page-lottery__faq-question {
        padding: 15px 20px;
    }

    .page-lottery__faq-question h3 {
        font-size: 16px;
    }

    .page-lottery__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

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

    .page-lottery__faq-item.active .page-lottery__faq-answer {
        padding: 15px 20px !important;
    }

    .page-lottery__faq-answer p {
        font-size: 15px;
    }

    .page-lottery__btn-tertiary {
        padding: 8px 20px;
        font-size: 14px;
    }

    .page-lottery__cta-center {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .page-lottery__main-title {
        font-size: 30px;
    }
    .page-lottery__section-title {
        font-size: 24px;
    }
    .page-lottery__games-grid, .page-lottery__guide-steps, .page-lottery__features-grid {
        grid-template-columns: 1fr;
    }
    .page-lottery__hero-section {
        padding: 40px 0;
    }
    .page-lottery__games-section, .page-lottery__guide-section, .page-lottery__why-choose-us-section, .page-lottery__faq-section, .page-lottery__conclusion-section {
        padding: 40px 0;
    }
    .page-lottery__cta-buttons {
        gap: 10px;
    }
    .page-lottery__faq-question h3 {
        font-size: 15px;
    }
    .page-lottery__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
}