:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --background-color-body: #121212; /* Dark background from shared.css */
    --card-background-dark-bg: rgba(255, 255, 255, 0.1);
    --border-color-dark-bg: rgba(255, 255, 255, 0.2);
}

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

.page-lottery__hero-section {
    position: relative;
    width: 100%;
    padding: 140px 20px 80px; /* Adjusted padding-top for fixed header */
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
    color: var(--text-color-dark-bg);
    overflow: hidden;
}

.page-lottery__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-lottery__main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color); /* Gold title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-color-dark-bg);
}

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

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

.page-lottery__btn-primary {
    background: var(--primary-color);
    color: #000000; /* Black text for gold button */
}

.page-lottery__btn-primary:hover {
    background: darken(var(--primary-color), 10%); /* Darken gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__btn-secondary:hover {
    background: var(--primary-color);
    color: #000000; /* Black text on gold hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__btn-primary--center {
    display: block;
    margin: 40px auto 20px;
    max-width: 300px;
}

.page-lottery__section {
    padding: 60px 20px;
    background-color: var(--background-color-body);
}

.page-lottery__dark-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-dark-bg);
}

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

.page-lottery__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-lottery__dark-bg .page-lottery__section-title {
    color: var(--primary-color);
}

.page-lottery__content-block {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

.page-lottery__content-block p {
    margin-bottom: 15px;
}

.page-lottery__content-block-text {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    margin-top: 30px;
    color: var(--text-color-dark-bg);
}

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

.page-lottery__image--full-width {
    width: 100%;
}

.page-lottery__grid {
    display: grid;
    gap: 30px;
}

.page-lottery__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-lottery__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-lottery__card {
    background: var(--card-background-dark-bg);
    border: 1px solid var(--border-color-dark-bg);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-lottery__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.page-lottery__card-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-lottery__card-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-lottery__card-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
}

.page-lottery__benefit-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-background-dark-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.page-lottery__benefit-item:hover {
    transform: translateY(-5px);
}

.page-lottery__benefit-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.page-lottery__benefit-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.page-lottery__benefit-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color-dark-bg);
    margin: 0;
}

.page-lottery__unordered-list,
.page-lottery__ordered-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

.page-lottery__ordered-list {
    list-style-type: decimal;
}

.page-lottery__unordered-list li,
.page-lottery__ordered-list li {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.6;
}

.page-lottery__text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-lottery__text-link:hover {
    color: darken(var(--primary-color), 10%);
    text-decoration: underline;
}

.page-lottery__content-block--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.page-lottery__image-content {
    flex: 1;
    text-align: center;
}

.page-lottery__image--responsive {
    max-width: 100%;
    height: auto;
}

/* FAQ Section Styles */
.page-lottery__faq-list {
    margin-top: 40px;
}

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

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

.page-lottery__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

.page-lottery__faq-toggle {
    font-size: 24px;
    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: 28px;
    height: 28px;
}

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

.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 20px;
    opacity: 0;
    color: var(--text-color-dark-bg);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 5px 5px;
}

.page-lottery__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.page-lottery__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-lottery__conclusion-text {
    font-size: 20px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--text-color-dark-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__main-title {
        font-size: 40px;
    }
    .page-lottery__hero-description {
        font-size: 18px;
    }
    .page-lottery__section-title {
        font-size: 32px;
    }
    .page-lottery__content-block {
        font-size: 16px;
    }
    .page-lottery__unordered-list li,
    .page-lottery__ordered-list li {
        font-size: 16px;
    }
    .page-lottery__benefit-title {
        font-size: 20px;
    }
    .page-lottery__benefit-description {
        font-size: 15px;
    }
    .page-lottery__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-lottery__hero-section {
        padding-top: 100px !important; /* Mobile fixed header padding */
        padding-bottom: 50px;
    }
    .page-lottery__main-title {
        font-size: 32px;
    }
    .page-lottery__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-lottery__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-lottery__section {
        padding: 40px 15px;
    }
    .page-lottery__container {
        padding: 0;
    }
    .page-lottery__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-lottery__content-block--flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-lottery__text-content, .page-lottery__image-content {
        width: 100%;
    }
    .page-lottery__image {
        margin: 20px auto;
    }
    .page-lottery__card-image {
        height: 200px;
    }
    .page-lottery__benefit-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .page-lottery__benefit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    .page-lottery__benefit-title {
        font-size: 18px;
    }
    .page-lottery__faq-question {
        padding: 15px;
    }
    .page-lottery__faq-question h3 {
        font-size: 16px;
    }
    .page-lottery__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-lottery__faq-answer {
        padding: 0 15px;
    }
    .page-lottery__faq-item.active .page-lottery__faq-answer {
        padding: 15px !important;
    }
    .page-lottery__conclusion-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-lottery img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-lottery__section,
    .page-lottery__card,
    .page-lottery__container,
    .page-lottery__content-block,
    .page-lottery__grid,
    .page-lottery__benefit-item,
    .page-lottery__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-lottery__hero-section .page-lottery__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-lottery__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-lottery__card-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-lottery__btn-primary--center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-lottery__main-title {
        font-size: 28px;
    }
    .page-lottery__section-title {
        font-size: 24px;
    }
    .page-lottery__content-block,
    .page-lottery__hero-description,
    .page-lottery__conclusion-text {
        font-size: 15px;
    }
    .page-lottery__cta-button {
        font-size: 15px !important;
        padding: 10px 15px !important;
    }
    .page-lottery__card-title {
        font-size: 20px;
    }
    .page-lottery__card-description {
        font-size: 14px;
    }
    .page-lottery__unordered-list li,
    .page-lottery__ordered-list li {
        font-size: 14px;
    }
    .page-lottery__faq-question h3 {
        font-size: 15px;
    }
    .page-lottery__faq-answer p {
        font-size: 14px;
    }
}