/* style/lottery.css */

:root {
    --primary-color: #1A237E; /* Deep Indigo */
    --secondary-color: #FFD700; /* Bright Gold */    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --bg-dark-1: #0d0d0d; /* Assuming this is the body background from shared.css */
}

/* Base styles for the page content wrapper */
.page-lottery {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-lottery__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.page-lottery__section-subtitle {
    font-size: 18px;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Backgrounds */
.page-lottery__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-lottery__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-lottery__light-bg .page-lottery__section-subtitle {
    color: var(--text-dark);
}

.page-lottery__light-bg p {
    color: var(--text-dark);
}

.page-lottery__light-bg h3 {
    color: var(--primary-color);
}

/* Hero Section */
.page-lottery__hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001f52 100%);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-lottery__hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-lottery__hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

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

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

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

/* About Section */
.page-lottery__about-section {
    padding: 60px 0;
}

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

.page-lottery__image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery__image {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-lottery__text-content p {
    margin-bottom: 15px;
}

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

.page-lottery__btn-text:hover {
    color: var(--secondary-color);
}

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

.page-lottery__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-lottery__card {
    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.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-lottery__card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-lottery__card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-lottery__card-description {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-lottery__card-button:hover {
    background-color: #e6c200;
}

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

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

.page-lottery__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-lottery__step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-lottery__icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

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

.page-lottery__step-description {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-lottery__btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-lottery__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Advantages Section */
.page-lottery__advantages-section {
    padding: 60px 0;
}

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

.page-lottery__advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    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: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-lottery__advantage-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__advantage-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-lottery__advantage-description {
    font-size: 16px;
    color: #e0e0e0;
}

/* 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;
}

.page-lottery__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
}

.page-lottery__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-lottery__promo-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-lottery__promo-description {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-lottery__promo-button:hover {
    background-color: #001f52;
}

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

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

.page-lottery__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.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;
    pointer-events: none;
    color: var(--secondary-color);
}

.page-lottery__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-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 {
    transform: rotate(45deg);
    color: var(--text-light);
}

.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;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

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

/* Responsibility Section */
.page-lottery__responsibility-section {
    padding: 60px 0;
}

.page-lottery__responsibility-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-lottery__responsibility-content p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Contact Section */
.page-lottery__contact-section {
    padding: 60px 0;
}

.page-lottery__contact-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-lottery__contact-info p {
    margin-bottom: 20px;
    color: #e0e0e0;
}

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

.page-lottery__contact-info li {
    margin-bottom: 10px;
    font-size: 18px;
    color: #e0e0e0;
}

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

.page-lottery__contact-link:hover {
    color: #e6c200;
}

/* General Image styles */
.page-lottery img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__hero-title {
        font-size: 42px;
    }
    .page-lottery__section-title {
        font-size: 32px;
    }
    .page-lottery__section-subtitle {
        font-size: 16px;
    }
    .page-lottery__content-grid {
        flex-direction: column;
    }
    .page-lottery__image-wrapper {
        max-width: 600px;
        margin: 0 auto 30px auto;
    }
}

@media (max-width: 768px) {
    .page-lottery {
        padding-top: 100px !important; /* Mobile fixed header adjustment */
    }
    .page-lottery__container {
        padding: 30px 15px;
    }
    .page-lottery__hero-section {
        padding: 60px 15px;
    }
    .page-lottery__hero-title {
        font-size: 32px;
    }
    .page-lottery__hero-description {
        font-size: 16px;
    }
    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-lottery__cta-button,
    .page-lottery__btn-primary,
    .page-lottery__promo-button,
    .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;
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-lottery__section-title {
        font-size: 28px;
    }
    .page-lottery__section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-lottery__card-grid,
    .page-lottery__step-list,
    .page-lottery__advantages-grid,
    .page-lottery__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-lottery__card-image,
    .page-lottery__promo-image {
        height: 160px;
    }
    .page-lottery__step-icon {
        width: 70px;
        height: 70px;
    }
    .page-lottery__icon {
        width: 45px;
        height: 45px;
    }
    .page-lottery__step-title,
    .page-lottery__advantage-title,
    .page-lottery__promo-title,
    .page-lottery__card-title {
        font-size: 20px;
    }
    .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-item.active .page-lottery__faq-answer {
        padding: 15px !important;
    }
    .page-lottery__responsibility-content p,
    .page-lottery__contact-info p,
    .page-lottery__contact-info li {
        font-size: 15px;
    }
    .page-lottery img {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-lottery__image-wrapper, .page-lottery__card, .page-lottery__promo-card, .page-lottery__step-item, .page-lottery__advantage-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}