/* style/lottery.css */
.page-lottery {
    font-family: 'Arial', sans-serif;
    color: #F0F0F0; /* Light gray for general text */
    background-color: #1A1A2E; /* Dark blue/near black background */
    line-height: 1.6;
}

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

.page-lottery__section {
    padding: 60px 0;
    text-align: center;
}

.page-lottery__section:nth-of-type(even) {
    background-color: #2A2A4A; /* Slightly lighter dark background for contrast */
}

.page-lottery__hero-section {
    background: linear-gradient(135deg, #FFD700, #DC143C);
    color: #1A1A2E;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.page-lottery__hero-title {
    font-size: 3.5em;
    color: #1A1A2E;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
}

.page-lottery__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #333;
}

.page-lottery__hero-image {
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 600px;
    max-width: 50%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.page-lottery__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
}

.page-lottery__button--primary {
    background-color: #FFD700; /* Gold */
    color: #1A1A2E; /* Dark text on gold */
    margin-right: 15px;
}

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

.page-lottery__button--secondary {
    background-color: #DC143C; /* Dark red */
    color: #FFFFFF; /* White text on red */
    border: 2px solid #DC143C;
}

.page-lottery__button--secondary:hover {
    background-color: #c01135;
    transform: translateY(-2px);
}

.page-lottery__button--link {
    background-color: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-lottery__button--link:hover {
    background-color: #FFD700;
    color: #1A1A2E;
}

.page-lottery__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-lottery__text-content {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: #F0F0F0;
    text-align: justify;
}

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

.page-lottery__game-item, .page-lottery__feature-item {
    background-color: #2A2A4A;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-lottery__game-item:hover, .page-lottery__feature-item:hover {
    transform: translateY(-5px);
}

.page-lottery__game-image, .page-lottery__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-lottery__game-title, .page-lottery__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-lottery__game-description, .page-lottery__feature-description {
    font-size: 1em;
    color: #CCC;
}

.page-lottery__step-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-lottery__step-item {
    background-color: #2A2A4A;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 70px;
}

.page-lottery__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 25px;
    top: 25px;
    background-color: #DC143C;
    color: #FFFFFF;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

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

.page-lottery__step-description {
    color: #CCC;
    font-size: 1em;
}

.page-lottery__guide-image {
    max-width: 80%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-lottery__button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.page-lottery__detail-item {
    background-color: #2A2A4A;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-lottery__detail-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-lottery__detail-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-lottery__detail-title a:hover {
    text-decoration: underline;
    color: #e6c200;
}

.page-lottery__detail-description {
    font-size: 1em;
    color: #CCC;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__hero-title {
        font-size: 3em;
    }
    .page-lottery__hero-image {
        width: 500px;
        max-width: 40%;
        right: -5%;
    }
    .page-lottery__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-lottery__hero-section {
        padding: 80px 0;
    }
    .page-lottery__hero-title {
        font-size: 2.5em;
    }
    .page-lottery__hero-description {
        font-size: 1em;
    }
    .page-lottery__hero-image {
        display: none; /* Hide image on smaller screens */
    }
    .page-lottery__section {
        padding: 40px 0;
    }
    .page-lottery__section-title {
        font-size: 1.8em;
    }
    .page-lottery__game-grid, .page-lottery__feature-grid, .page-lottery__detail-list {
        grid-template-columns: 1fr;
    }
    .page-lottery__button-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-lottery__button {
        width: 100%;
        box-sizing: border-box;
    }
    .page-lottery__step-item {
        padding-left: 55px;
    }
    .page-lottery__step-item::before {
        left: 15px;
        top: 20px;
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    .page-lottery__step-title {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .page-lottery__hero-title {
        font-size: 2em;
    }
    .page-lottery__section-title {
        font-size: 1.5em;
    }
    .page-lottery__text-content, .page-lottery__game-description, .page-lottery__feature-description, .page-lottery__step-description, .page-lottery__detail-description {
        font-size: 0.95em;
    }
    .page-lottery__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-lottery__game-image, .page-lottery__feature-icon {
        width: 80px;
        height: 80px;
    }
}