/* style/lottery.css */

/* Biến CSS cho màu sắc thương hiệu */
:root {
    --primary-color: #003366; /* Deep Ocean Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --background-dark: #0a0a0a;
    --background-light: #f5f5f5;
    --border-color: #e0e0e0;
}

/* -------------------------------------------------------------------------- */
/*                              Tổng quan trang                               */
/* -------------------------------------------------------------------------- */
.page-lottery {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Body background is dark, so text is light */
    background-color: var(--background-dark);
    padding-top: 10px; /* Adjust for fixed header */
}

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

.page-lottery__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-lottery__section-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: var(--text-on-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__sub-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Màu nền thông minh */
.page-lottery__dark-section {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    padding: 60px 0;
}

.page-lottery__light-bg {
    background-color: var(--background-light);
    color: var(--text-on-light);
    padding: 60px 0;
}

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

.page-lottery__light-bg .page-lottery__section-description {
    color: var(--text-on-light);
}

/* Hình ảnh chung */
.page-lottery img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* -------------------------------------------------------------------------- */
/*                                 Video Section                              */
/* -------------------------------------------------------------------------- */
.page-lottery__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
  box-sizing: border-box;
}

.page-lottery__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-lottery__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-lottery__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-lottery__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-lottery__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-lottery__video-link:hover .page-lottery__video-overlay {
  opacity: 1;
}

.page-lottery__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.page-lottery__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

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

.page-lottery__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-lottery__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* -------------------------------------------------------------------------- */
/*                                Title Section                               */
/* -------------------------------------------------------------------------- */
.page-lottery__title-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    padding-top: 10px; /* Adjust for fixed header if no video section */
}

.page-lottery__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-lottery__title-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

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

.page-lottery__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-lottery__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* -------------------------------------------------------------------------- */
/*                             General Intro Section                          */
/* -------------------------------------------------------------------------- */
.page-lottery__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-lottery__content-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/*                             Lottery Types Section                          */
/* -------------------------------------------------------------------------- */
.page-lottery__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-lottery__card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.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;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-lottery__card-text {
    font-size: 1em;
    line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/*                             How To Play Section                            */
/* -------------------------------------------------------------------------- */
.page-lottery__step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-lottery__step-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-on-light);
    border-left: 5px solid var(--primary-color);
}

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

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

.page-lottery__step-item p {
    font-size: 1em;
    line-height: 1.7;
}

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

.page-lottery__feature-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-lottery__feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Slightly brighten default icon, not changing hue */
    box-shadow: none;
}

.page-lottery__feature-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-lottery__feature-item p {
    font-size: 0.95em;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                             Strategy Section                               */
/* -------------------------------------------------------------------------- */
.page-lottery__strategy-section .page-lottery__content-grid {
    grid-template-columns: 1fr 0.8fr;
}

.page-lottery__text-block h3 {
    color: var(--primary-color);
}

.page-lottery__text-block p {
    margin-bottom: 20px;
}

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

.page-lottery__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid 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-on-dark);
}

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

.page-lottery__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

.page-lottery__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    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 {
    color: var(--text-on-dark);
    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;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-on-dark);
}

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

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

/* -------------------------------------------------------------------------- */
/*                              Brand Section                                 */
/* -------------------------------------------------------------------------- */
.page-lottery__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-lottery__brand-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-on-light);
}

.page-lottery__brand-item h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-lottery__brand-item p {
    font-size: 1em;
    line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/*                                Blog Section                                */
/* -------------------------------------------------------------------------- */
.page-lottery__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-lottery__blog-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

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

.page-lottery__blog-link {
    text-decoration: none;
    color: var(--text-on-dark);
    display: block;
}

.page-lottery__blog-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 15px;
    box-shadow: none;
}

.page-lottery__blog-item-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin: 0 15px 10px 15px;
    font-weight: bold;
}

.page-lottery__blog-item-excerpt {
    font-size: 0.95em;
    margin: 0 15px 15px 15px;
    line-height: 1.6;
}

.page-lottery__blog-item-date {
    display: block;
    font-size: 0.85em;
    color: #aaaaaa;
    margin: 0 15px 15px 15px;
}

/* -------------------------------------------------------------------------- */
/*                                  Responsive                                */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .page-lottery__main-title {
        font-size: 3em;
    }
    .page-lottery__section-title {
        font-size: 2em;
    }
    .page-lottery__title-description, .page-lottery__section-description {
        font-size: 1.1em;
    }
    .page-lottery__content-grid {
        grid-template-columns: 1fr;
    }
    .page-lottery__strategy-section .page-lottery__content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-lottery {
        padding-top: 10px !important; /* Mobile: Adjust for fixed header */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-lottery__container {
        padding: 30px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-lottery__main-title {
        font-size: 2.2em;
    }

    .page-lottery__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-lottery__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-lottery__sub-title {
        font-size: 1.5em;
    }

    /* Video Section Mobile */
    .page-lottery__video-section {
        padding-top: 10px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-lottery__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    
    .page-lottery__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-lottery__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 4px;
        overflow: hidden !important;
    }
    
    .page-lottery__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
        object-fit: contain;
    }
    
    .page-lottery__video-cta {
        margin-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-lottery__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 30px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* CTA Buttons Mobile */
    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .page-lottery__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        border-radius: 30px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Image Responsive */
    .page-lottery img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Card Grid Mobile */
    .page-lottery__card-grid {
        gap: 20px;
    }
    .page-lottery__card {
        padding: 20px;
    }

    /* Step List Mobile */
    .page-lottery__step-list {
        gap: 20px;
    }
    .page-lottery__step-item {
        padding: 20px;
    }

    /* Feature Grid Mobile */
    .page-lottery__feature-grid {
        gap: 20px;
    }
    .page-lottery__feature-item {
        padding: 20px;
    }
    .page-lottery__feature-icon {
        width: 48px;
        height: 48px;
    }

    /* FAQ Mobile */
    .page-lottery__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-lottery__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-lottery__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-lottery__faq-answer {
        padding: 0 15px;
    }
    
    .page-lottery__faq-item.active .page-lottery__faq-answer {
        padding: 15px !important;
    }

    /* Blog List Mobile */
    .page-lottery__blog-image {
        height: 150px;
    }
    .page-lottery__blog-item-title {
        font-size: 1.1em;
    }
    .page-lottery__blog-item-excerpt {
        font-size: 0.9em;
    }
}