/* style/lottery.css */

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

.page-lottery {
    font-family: 'Arial', sans-serif;
    color: var(--lottery-text-main); /* Default text color for the page, assuming dark body bg */
    background-color: var(--lottery-background); /* Ensure consistency with body background if applicable */
}

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

.page-lottery__section-title {
    font-size: clamp(28px, 3.5vw, 48px); /* Responsive font size */
    font-weight: 700;
    color: var(--lottery-gold-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-lottery__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: var(--lottery-text-secondary);
}

/* Hero Section */
.page-lottery__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    background-color: var(--lottery-deep-green);
    overflow: hidden;
}

.page-lottery__hero-image-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-lottery__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-lottery__hero-content {
    position: relative; /* Ensure content is above image if z-index issues, but mostly for normal flow */
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 10;
    margin-top: -100px; /* Overlap slightly for visual flow */
    background: rgba(8, 22, 15, 0.85); /* Slightly transparent dark background */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-lottery__main-title {
    font-size: clamp(32px, 4.5vw, 60px);
    font-weight: 800;
    color: var(--lottery-gold-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-lottery__tagline {
    font-size: 1.25rem;
    color: var(--lottery-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-lottery__btn-primary {
    background: var(--lottery-btn-gradient);
    color: var(--lottery-text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-lottery__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

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

.page-lottery__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
}

/* About Section */
.page-lottery__about-section {
    padding: 80px 0;
    background-color: var(--lottery-background);
}

.page-lottery__dark-section {
    background-color: var(--lottery-background);
    color: var(--lottery-text-main);
}

/* Games Section */
.page-lottery__games-section {
    padding: 80px 0;
    background-color: var(--lottery-card-bg);
}

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

.page-lottery__card {
    background-color: var(--lottery-card-bg);
    border: 1px solid var(--lottery-border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px 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;
    height: 100%;
    box-sizing: border-box;
}

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

.page-lottery__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__card-title {
    font-size: 1.5rem;
    color: var(--lottery-text-main);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

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

.page-lottery__card-button {
    margin-top: auto;
}

/* Benefits Section */
.page-lottery__benefits-section {
    padding: 80px 0;
    background-color: var(--lottery-background);
}

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

.page-lottery__benefit-item {
    background-color: var(--lottery-card-bg);
    border: 1px solid var(--lottery-border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-lottery__benefit-title {
    font-size: 1.4rem;
    color: var(--lottery-gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-lottery__benefit-description {
    font-size: 1rem;
    color: var(--lottery-text-secondary);
    line-height: 1.6;
}

/* How To Play Section */
.page-lottery__how-to-play-section {
    padding: 80px 0;
    background-color: var(--lottery-card-bg);
}

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

.page-lottery__step-card .page-lottery__card-title {
    color: var(--lottery-text-main);
}

/* Strategy Section */
.page-lottery__strategy-section {
    padding: 80px 0;
    background-color: var(--lottery-background);
}

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

.page-lottery__strategy-card {
    background-color: var(--lottery-card-bg);
    border: 1px solid var(--lottery-border-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

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

/* Promotions Section */
.page-lottery__promotions-section {
    padding: 80px 0;
    background-color: var(--lottery-card-bg);
}

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

/* FAQ Section */
.page-lottery__faq-section {
    padding: 80px 0;
    background-color: var(--lottery-background);
}

.page-lottery__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

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

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--lottery-text-main);
    cursor: pointer;
    background-color: var(--lottery-deep-green);
    border-bottom: 1px solid var(--lottery-divider-color);
    transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
    background-color: var(--lottery-primary-color);
}

.page-lottery__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lottery-gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-lottery__faq-answer {
    padding: 0 25px;
    font-size: 1rem;
    color: var(--lottery-text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-lottery__faq-item[open] .page-lottery__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    padding: 20px 25px 25px 25px;
}

.page-lottery__faq-answer p {
    margin: 0;
}

/* CTA Bottom Section */
.page-lottery__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--lottery-deep-green);
}

.page-lottery__cta-bottom-section .page-lottery__section-title {
    color: var(--lottery-gold-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__hero-content {
        margin-top: -50px;
        padding: 30px;
    }
    .page-lottery__main-title {
        font-size: clamp(28px, 4vw, 48px);
    }
    .page-lottery__tagline {
        font-size: 1.1rem;
    }
    .page-lottery__section-title {
        font-size: clamp(24px, 3vw, 40px);
    }
    .page-lottery__game-grid, .page-lottery__benefit-list, .page-lottery__steps-grid, .page-lottery__strategy-grid, .page-lottery__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-lottery {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-lottery__hero-section {
        padding-bottom: 40px;
    }
    .page-lottery__hero-image {
        max-height: 50vh;
    }
    .page-lottery__hero-content {
        margin-top: -30px;
        padding: 25px 15px;
        border-radius: 10px;
    }
    .page-lottery__main-title {
        font-size: clamp(24px, 7vw, 40px);
        margin-bottom: 15px;
    }
    .page-lottery__tagline {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-lottery__btn-primary,
    .page-lottery__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-lottery__container {
        padding: 0 15px;
    }
    .page-lottery__section-title {
        font-size: clamp(22px, 6vw, 36px);
        margin-bottom: 30px;
    }
    .page-lottery__text-block {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .page-lottery__game-grid, .page-lottery__benefit-list, .page-lottery__steps-grid, .page-lottery__strategy-grid, .page-lottery__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-lottery__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-lottery__card, .page-lottery__benefit-item, .page-lottery__step-card, .page-lottery__strategy-card, .page-lottery__promo-card {
        padding: 20px;
    }
    .page-lottery__card-title {
        font-size: 1.3rem;
    }
    .page-lottery__card-description {
        font-size: 0.9rem;
    }
    .page-lottery__faq-list {
        margin-top: 30px;
    }
    .page-lottery__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-lottery__faq-answer {
        padding: 0 20px;
    }
    .page-lottery__faq-item[open] .page-lottery__faq-answer {
        padding: 15px 20px 20px 20px;
    }

    /* Ensure all images and video are responsive */
    .page-lottery img,
    .page-lottery video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-lottery__section,
    .page-lottery__card,
    .page-lottery__container,
    .page-lottery__video-section,
    .page-lottery__video-container,
    .page-lottery__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-lottery__hero-section,
    .page-lottery__about-section,
    .page-lottery__games-section,
    .page-lottery__benefits-section,
    .page-lottery__how-to-play-section,
    .page-lottery__strategy-section,
    .page-lottery__promotions-section,
    .page-lottery__faq-section,
    .page-lottery__cta-bottom-section {
        padding: 40px 0 !important;
    }
    .page-lottery__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-lottery__main-title {
        font-size: clamp(20px, 8vw, 36px);
    }
    .page-lottery__tagline {
        font-size: 0.9rem;
    }
    .page-lottery__section-title {
        font-size: clamp(20px, 7vw, 32px);
    }
    .page-lottery__btn-primary,
    .page-lottery__btn-secondary {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
    .page-lottery__faq-question {
        font-size: 1rem;
    }
}