/* style/lottery.css */
/* Base styles for the lottery page */
.page-lottery {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: 0; /* Handled by shared.css body padding, or first section */
}

/* Fixed header offset for the first content section */
.page-lottery__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-lottery__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-lottery__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff; /* Light text for dark backgrounds */
}

/* Hero Section */
.page-lottery__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(135deg, #1a1a2e, #26A9E0); /* Dark background with brand color gradient */
    overflow: hidden;
    padding-bottom: 60px; /* Adjust as needed */
}

.page-lottery__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    color: #ffffff;
}

.page-lottery__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    font-weight: bold;
}

.page-lottery__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-lottery__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-lottery__btn-primary:hover {
    background-color: #1e87b8;
    border-color: #1e87b8;
}

.page-lottery__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-lottery__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-lottery__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-lottery__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    filter: none; /* Ensure no filter changes image color */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Section Backgrounds for Contrast */
.page-lottery__dark-bg {
    background-color: #1a1a2e; /* Dark background matching body */
    color: #ffffff;
}

.page-lottery__light-bg {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-lottery__light-bg .page-lottery__section-title {
    color: #26A9E0; /* Brand color for titles on light background */
}

.page-lottery__light-bg .page-lottery__text-block {
    color: #333333; /* Dark text for light background */
}

.page-lottery__light-bg a {
    color: #26A9E0; /* Brand color for links on light background */
}

.page-lottery__light-bg a:hover {
    color: #1e87b8;
}

/* Introduction Section */
.page-lottery__introduction-section {
    padding: 60px 0;
}

/* Types Section */
.page-lottery__types-section {
    padding: 60px 0;
}

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

.page-lottery__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text */
    min-height: 450px; /* Ensure cards have consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-lottery__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter changes image color */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-lottery__card-title {
    font-size: 1.5em;
    color: #26A9E0; /* Primary brand color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-lottery__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-lottery__card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #EA7C07; /* Login/action color */
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-lottery__card-link:hover {
    background-color: #d16b06;
}

/* Guide Section */
.page-lottery__guide-section {
    padding: 60px 0;
}

.page-lottery__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-lottery__guide-list li {
    background-color: #f8f8f8;
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #333333; /* Dark text for light background */
}

.page-lottery__guide-list li strong {
    color: #26A9E0;
    font-size: 1.2em;
}

/* Tips Section */
.page-lottery__tips-section {
    padding: 60px 0;
}

.page-lottery__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-lottery__tips-list li {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #EA7C07; /* Action color for tips */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-lottery__tips-list li strong {
    color: #EA7C07;
    font-size: 1.2em;
}

/* Promotions Section */
.page-lottery__promotions-section {
    padding: 60px 0;
}

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

.page-lottery__promo-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light background */
    min-height: 450px; /* Consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-lottery__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-lottery__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter changes image color */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-lottery__promo-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-lottery__promo-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Choose Section */
.page-lottery__why-choose-section {
    padding: 60px 0;
}

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

.page-lottery__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    min-height: 480px; /* Consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-lottery__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter changes image color */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-lottery__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-lottery__feature-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-lottery__faq-section {
    padding: 60px 0;
}

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

.page-lottery__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    color: #333333;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-lottery__faq-question h3 {
    margin: 0;
    color: #26A9E0; /* Brand color for FAQ questions */
}

.page-lottery__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

.page-lottery__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8f8f8;
    color: #333333;
    font-size: 1em;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px;
}

.page-lottery__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* CTA Section */
.page-lottery__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #26A9E0, #1a1a2e); /* Gradient for CTA */
}

.page-lottery__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

/* General image styling for content area */
.page-lottery img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Crucial: No CSS filter changing image color */
    min-width: 200px; /* Global min size for content images */
    min-height: 200px; /* Global min size for content images */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-lottery__hero-title {
        font-size: 3em;
    }
    .page-lottery__hero-description {
        font-size: 1.1em;
    }
    .page-lottery__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-lottery__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: 500px;
        padding-bottom: 40px;
    }

    .page-lottery__hero-content {
        order: 2; /* Content below image on mobile */
        max-width: 100%;
        padding: 20px 15px; /* Add padding for mobile */
    }

    .page-lottery__hero-image-wrapper {
        position: relative;
        order: 1; /* Image above content on mobile */
        height: 300px;
        width: 100%;
    }
    
    .page-lottery__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .page-lottery__hero-title {
        font-size: 2.2em;
    }

    .page-lottery__hero-description {
        font-size: 1em;
    }

    .page-lottery__hero-buttons,
    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding for mobile */
    }

    .page-lottery__btn-primary,
    .page-lottery__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-lottery__container {
        padding: 20px 15px; /* Adjust container padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scrolling */
    }

    .page-lottery__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-lottery__text-block {
        font-size: 0.95em;
    }

    .page-lottery__grid-cards,
    .page-lottery__promo-grid,
    .page-lottery__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-lottery__card,
    .page-lottery__promo-card,
    .page-lottery__feature-item {
        min-height: auto; /* Allow height to adjust */
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-lottery__card-image,
    .page-lottery__promo-image,
    .page-lottery__feature-image {
        height: auto; /* Allow height to adjust naturally */
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important; /* Enforce min size */
        filter: none !important; /* Ensure no filter changes image color */
    }

    .page-lottery__guide-list li,
    .page-lottery__tips-list li {
        padding: 15px;
        font-size: 0.95em;
    }

    .page-lottery__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    
    .page-lottery__faq-question h3 {
        font-size: 1em;
    }

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

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

    /* Global image responsive rules for mobile */
    .page-lottery img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
      min-width: 200px !important; /* Enforce min size */
      min-height: 200px !important; /* Enforce min size */
      filter: none !important; /* Ensure no filter changes image color */
    }
    
    /* Overriding specific smaller height on cards to make them larger */
    .page-lottery__card-image,
    .page-lottery__promo-image,
    .page-lottery__feature-image {
        height: auto; /* Let max-width 100% handle it */
        min-height: 200px !important;
    }
}