/* style/lottery.css */
.page-lottery {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: var(--dark-bg-1); /* Sử dụng biến từ shared.css, giả định là nền tối */
}

.page-lottery__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-lottery__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-lottery__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header che */
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

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

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

.page-lottery__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-lottery__cta-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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-lottery__btn-primary {
    background-color: #EA7C07; /* Màu cam cho nút đăng ký/chính */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-lottery__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7eab;
    border-color: #1a7eab;
}

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

.page-lottery__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-lottery__section {
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
}

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

.page-lottery__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0;
    font-weight: bold;
}

.page-lottery__intro-section .page-lottery__section-title {
  color: #ffffff;
}

.page-lottery__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: inherit;
    opacity: 0.8;
}

.page-lottery__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

.page-lottery__intro-section .page-lottery__text-block {
  color: #ffffff;
}

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

.page-lottery__grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
    align-items: center;
}

.page-lottery__grid-2-col-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
    align-items: center;
    flex-direction: row-reverse; /* Đảo ngược thứ tự cho mobile */
}

.page-lottery__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: #333333;
}

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

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

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

.page-lottery__numbered-list,
.page-lottery__unordered-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-lottery__numbered-list li,
.page-lottery__unordered-list li {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    text-align: left;
    color: inherit;
}

.page-lottery__numbered-list li:last-child,
.page-lottery__unordered-list li:last-child {
    margin-bottom: 0;
}

.page-lottery__numbered-list li::before {
    content: counter(list-item) ". ";
    counter-increment: list-item;
    font-weight: bold;
    color: #EA7C07;
    font-size: 1.2em;
    margin-right: 10px;
    min-width: 30px;
    display: inline-block;
    text-align: right;
}

.page-lottery__numbered-list li h3,
.page-lottery__unordered-list li h3 {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 5px;
    font-weight: bold;
}

.page-lottery__numbered-list li p,
.page-lottery__unordered-list li p {
    font-size: 1em;
    color: inherit;
    margin-left: 40px; /* Căn chỉnh với số thứ tự */
}

.page-lottery__registration-guide-section .page-lottery__content-block {
    padding-right: 20px;
}

.page-lottery__image-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-lottery__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-lottery__btn-block {
    width: 100%;
    margin-top: 30px;
}

.page-lottery__feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

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

.page-lottery__feature-text {
    font-size: 0.95em;
    color: #555555;
}

.page-lottery__cta-center {
    margin-top: 50px;
}

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

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

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0;
    background-color: #eaf7fc;
    border-bottom: 1px solid #d0eaf7;
}

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

.page-lottery__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    background-color: #ffffff;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
    max-height: 1000px !important; /* Đủ lớn để chứa mọi nội dung */
    padding: 20px 25px;
}

.page-lottery__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #555555;
}

.page-lottery__cta-final-section {
    padding: 80px 20px;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-lottery__cta-content {
    max-width: 800px;
}

.page-lottery__cta-final-section .page-lottery__section-title {
    color: #ffffff;
    font-size: 2.8em;
}

.page-lottery__cta-final-section .page-lottery__section-description {
    color: #ffffff;
    opacity: 0.9;
    font-size: 1.2em;
    margin-bottom: 50px;
}

.page-lottery__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-lottery__hero-title {
        font-size: 2.8em;
    }
    .page-lottery__section-title {
        font-size: 2em;
    }
    .page-lottery__grid-2-col,
    .page-lottery__grid-2-col-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-lottery__grid-2-col-reverse .page-lottery__image-block {
        order: -1; /* Đẩy ảnh lên trên cho mobile */
    }
    .page-lottery__registration-guide-section .page-lottery__content-block {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .page-lottery {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-lottery__hero-section {
        min-height: 400px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Đảm bảo header không che */
    }
    .page-lottery__hero-title {
        font-size: 2.2em;
    }
    .page-lottery__hero-description {
        font-size: 1em;
    }
    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-lottery__btn-primary,
    .page-lottery__btn-secondary,
    .page-lottery a[class*="button"],
    .page-lottery a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-lottery__section {
        padding: 40px 15px;
    }
    .page-lottery__section-title {
        font-size: 1.8em;
    }
    .page-lottery__section-description {
        font-size: 0.95em;
    }
    .page-lottery__text-block {
        font-size: 0.95em;
    }
    .page-lottery__grid-3-col {
        grid-template-columns: 1fr;
    }
    .page-lottery__card {
        padding: 25px;
    }
    .page-lottery__card-title {
        font-size: 1.3em;
    }
    .page-lottery__numbered-list li h3,
    .page-lottery__unordered-list li h3 {
        font-size: 1.1em;
    }
    .page-lottery__numbered-list li p,
    .page-lottery__unordered-list li p {
        margin-left: 30px;
    }
    .page-lottery__image-responsive,
    .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__hero-section,
    .page-lottery__cta-buttons,
    .page-lottery__image-block,
    .page-lottery__video-section,
    .page-lottery__video-container,
    .page-lottery__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-lottery__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column !important;
    }
    .page-lottery__cta-final-section .page-lottery__section-title {
        font-size: 2em;
    }
    .page-lottery__cta-final-section .page-lottery__section-description {
        font-size: 1em;
    }
    .page-lottery__btn-large {
        padding: 15px 30px;
        font-size: 1em;
    }
    .page-lottery__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-lottery__faq-item.active .page-lottery__faq-answer {
        padding: 15px 20px;
    }
}