/* style/games-lottery-rules.css */
.page-games-lottery-rules {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

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

.page-games-lottery-rules__container--centered {
    text-align: center;
}

/* Hero Section */
.page-games-lottery-rules__hero {
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-games-lottery-rules__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('[GALLERY:bg:abstract,lottery,pattern,blue_gold]');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.page-games-lottery-rules__hero > .page-games-lottery-rules__container {
    position: relative;
    z-index: 1;
}

.page-games-lottery-rules__title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFCC00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-games-lottery-rules__subtitle {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #e0e0e0;
}

/* Buttons */
.page-games-lottery-rules__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
    margin: 10px;
    white-space: nowrap;
}

.page-games-lottery-rules__button--primary {
    background-color: #FFCC00;
    color: #003366;
    border: 2px solid #FFCC00;
}

.page-games-lottery-rules__button--primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.page-games-lottery-rules__button--secondary {
    background-color: #003366;
    color: #FFCC00;
    border: 2px solid #FFCC00;
}

.page-games-lottery-rules__button--secondary:hover {
    background-color: #004d99;
    transform: translateY(-2px);
}

.page-games-lottery-rules__button--tertiary {
    background-color: #FFCC00;
    color: #003366;
    border: 2px solid #FFCC00;
}

.page-games-lottery-rules__button--tertiary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.page-games-lottery-rules__button--cta {
    background-color: #FFCC00;
    color: #003366;
    border: 2px solid #FFCC00;
    margin: 15px;
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-games-lottery-rules__button--cta:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-games-lottery-rules__buttons-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* General Section Styling */
.page-games-lottery-rules__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.page-games-lottery-rules__section:nth-of-type(even) {
    background-color: #f0f5f9;
}

.page-games-lottery-rules__heading {
    font-size: 2.2em;
    color: #003366;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-games-lottery-rules__heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFCC00;
    border-radius: 2px;
}

.page-games-lottery-rules__description {
    font-size: 1.1em;
    color: #555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* Content Wrapper for text and image side-by-side */
.page-games-lottery-rules__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.page-games-lottery-rules__text-content {
    flex: 2;
    min-width: 300px;
}

.page-games-lottery-rules__image-wrapper {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.page-games-lottery-rules__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-games-lottery-rules__image--centered {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 80%;
}

/* Game Type Specific Styling */
.page-games-lottery-rules__game-type {
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-games-lottery-rules__game-title {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
}

.page-games-lottery-rules__game-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.page-games-lottery-rules__game-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    flex-shrink: 0;
}

.page-games-lottery-rules__game-text {
    flex: 1;
    min-width: 300px;
}

.page-games-lottery-rules__game-text h4 {
    color: #003366;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-games-lottery-rules__game-text ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.page-games-lottery-rules__game-text li {
    margin-bottom: 8px;
    color: #444;
}

.page-games-lottery-rules__cta-wrapper {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #e6f0f7;
    border-radius: 8px;
    border-left: 5px solid #003366;
}

.page-games-lottery-rules__cta-wrapper p {
    font-size: 1.2em;
    color: #003366;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Steps (Guide Section) */
.page-games-lottery-rules__steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-games-lottery-rules__steps li {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    padding-left: 70px;
}

.page-games-lottery-rules__steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: #003366;
    color: #FFCC00;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-games-lottery-rules__step-title {
    font-size: 1.6em;
    color: #003366;
    margin-top: 0;
    margin-bottom: 10px;
    flex-basis: calc(100% - 70px);
}

.page-games-lottery-rules__steps li p {
    flex-basis: calc(100% - 70px);
    margin-top: 0;
}

.page-games-lottery-rules__step-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    flex-shrink: 0;
    order: 1;
}

@media (min-width: 768px) {
    .page-games-lottery-rules__steps li {
        padding-left: 0;
        align-items: center;
    }
    .page-games-lottery-rules__steps li::before {
        position: static;
        margin-right: 20px;
        flex-shrink: 0;
    }
    .page-games-lottery-rules__step-title,
    .page-games-lottery-rules__steps li p {
        flex-basis: auto;
    }
    .page-games-lottery-rules__step-image {
        order: 0;
        margin-top: 0;
    }
    .page-games-lottery-rules__steps li:nth-child(even) .page-games-lottery-rules__step-image {
        order: 2;
    }
}


.page-games-lottery-rules__tip {
    background-color: #fff3e0;
    border-left: 5px solid #FFCC00;
    padding: 20px;
    margin-top: 40px;
    border-radius: 5px;
    font-style: italic;
    color: #666;
}

/* Payout Section */
.page-games-lottery-rules__section--payout {
    background-color: #003366;
    color: #ffffff;
}

.page-games-lottery-rules__section--payout .page-games-lottery-rules__heading {
    color: #FFCC00;
}

.page-games-lottery-rules__section--payout .page-games-lottery-rules__description {
    color: #e0e0e0;
}

.page-games-lottery-rules__section--payout h3 {
    color: #FFCC00;
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-games-lottery-rules__section--payout p {
    color: #ffffff;
    margin-bottom: 15px;
}

/* Tips Section */
.page-games-lottery-rules__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-games-lottery-rules__list li {
    background-color: #f0f7ff;
    border-left: 4px solid #003366;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-games-lottery-rules__list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-games-lottery-rules__list li strong {
    color: #003366;
}

/* CTA Section */
.page-games-lottery-rules__section--cta {
    background-color: #f8f8f8;
    text-align: center;
}

.page-games-lottery-rules__section--cta .page-games-lottery-rules__heading {
    color: #003366;
}

.page-games-lottery-rules__section--cta .page-games-lottery-rules__description {
    color: #555;
    margin-bottom: 40px;
}

.page-games-lottery-rules__note {
    font-style: italic;
    color: #777;
    margin-top: 30px;
    font-size: 0.95em;
}

/* FAQ Section */
.page-games-lottery-rules__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.page-games-lottery-rules__faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-games-lottery-rules__faq-question {
    font-size: 1.4em;
    color: #003366;
    margin-top: 0;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-games-lottery-rules__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #FFCC00;
}

.page-games-lottery-rules__faq-question.active::after {
    content: '-';
}

.page-games-lottery-rules__faq-answer {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 0;
    display: none;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.page-games-lottery-rules__faq-answer.active {
    display: block;
}

/* Copyright */
.page-games-lottery-rules__copyright {
    background-color: #002244;
    color: #a0a0a0;
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    font-size: 0.9em;
}

.page-games-lottery-rules__copyright p {
    margin: 0;
}

/* Links within content */
.page-games-lottery-rules a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

.page-games-lottery-rules a:hover {
    color: #FFCC00;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-games-lottery-rules__title {
        font-size: 2.2em;
    }
    .page-games-lottery-rules__heading {
        font-size: 1.8em;
    }
    .page-games-lottery-rules__game-title {
        font-size: 1.5em;
    }
    .page-games-lottery-rules__content-wrapper,
    .page-games-lottery-rules__game-content {
        flex-direction: column;
        text-align: center;
    }
    .page-games-lottery-rules__text-content,
    .page-games-lottery-rules__image-wrapper,
    .page-games-lottery-rules__game-image {
        width: 100%;
        max-width: 100%;
    }
    .page-games-lottery-rules__game-image {
        margin-bottom: 20px;
    }
    .page-games-lottery-rules__steps li {
        padding-left: 0;
        flex-direction: column;
        align-items: center;
    }
    .page-games-lottery-rules__steps li::before {
        position: static;
        margin-bottom: 20px;
    }
    .page-games-lottery-rules__step-title,
    .page-games-lottery-rules__steps li p {
        text-align: center;
    }
    .page-games-lottery-rules__step-image {
        margin-top: 20px;
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-games-lottery-rules__hero {
        padding: 70px 0;
    }
    .page-games-lottery-rules__title {
        font-size: 1.8em;
    }
    .page-games-lottery-rules__subtitle {
        font-size: 1.1em;
    }
    .page-games-lottery-rules__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-games-lottery-rules__section {
        padding: 40px 0;
    }
    .page-games-lottery-rules__heading {
        font-size: 1.6em;
    }
    .page-games-lottery-rules__game-title {
        font-size: 1.3em;
    }
    .page-games-lottery-rules__faq-question {
        font-size: 1.2em;
    }
    .page-games-lottery-rules__faq-answer {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-games-lottery-rules__title {
        font-size: 1.5em;
    }
    .page-games-lottery-rules__subtitle {
        font-size: 0.95em;
    }
    .page-games-lottery-rules__heading {
        font-size: 1.4em;
    }
    .page-games-lottery-rules__button--cta {
        padding: 15px 25px;
        font-size: 1em;
    }
    .page-games-lottery-rules__steps li::before {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
    .page-games-lottery-rules__step-title {
        font-size: 1.4em;
    }
}