/* style/lottery.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1A1A1A; /* Dark Black */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #000000;
    --bg-light: #f8f8f8;
    --border-color: #333333;
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --card-bg-light: #ffffff;
}

.page-lottery {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default to light text for dark body background */
    background-color: var(--bg-dark); /* Ensure body background is dark */
}

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

.page-lottery__dark-bg {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

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

.page-lottery__hero-section {
    padding: 120px 0 80px; /* Adjusted padding-top for fixed header */
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(26, 26, 26, 0.8) 50%, var(--secondary-color) 100%), url('[GALLERY:hero:lottery_hero,98win club,xổ số,may mắn]') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-color);
}

.page-lottery__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-lottery__hero-section .page-lottery__container {
    position: relative;
    z-index: 2;
}

.page-lottery__main-title {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-weight: bold;
    line-height: 1.2;
}

.page-lottery__hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px;
}

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

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

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

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

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

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

.page-lottery__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit;
}

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

.page-lottery__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: inherit;
}

.page-lottery__introduction-section, .page-lottery__benefits-section, .page-lottery__brand-section, .page-lottery__blog-section {
    padding: 80px 0;
}

.page-lottery__guide-section, .page-lottery__strategy-section, .page-lottery__faq-section {
    padding: 80px 0;
}

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

.page-lottery__content-wrapper p {
    flex: 1;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-lottery__image-content {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    display: block;
}

.page-lottery__image-left {
    order: -1; /* For brand section to put image on left */
}

.page-lottery__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-lottery__list-item {
    background: var(--card-bg-light);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-size: 1.05em;
    border-left: 5px solid var(--primary-color);
}

.page-lottery__list-item strong {
    color: var(--secondary-color);
}

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

.page-lottery__guide-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--primary-color);
    transition: transform 0.3s ease;
    color: var(--text-light);
}

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

.page-lottery__guide-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-lottery__guide-item p {
    font-size: 1em;
    margin-bottom: 20px;
}

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

.page-lottery__benefit-card {
    background: var(--card-bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
}

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

.page-lottery__benefit-icon {
    width: 120px; /* Increased size for content images */
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__card-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

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

.page-lottery__strategy-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--primary-color);
    color: var(--text-light);
}

.page-lottery__item-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-lottery__brand-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-lottery__brand-text {
    flex: 1;
    color: var(--text-dark);
}

.page-lottery__brand-text p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* FAQ Section */
.page-lottery__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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 15px;
  opacity: 0;
  color: var(--text-dark);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, large enough value */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-bg-light);
  border-radius: 0 0 5px 5px;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  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: #2a2a2a;
  border-color: #555;
}

.page-lottery__faq-question:active {
  background: #000;
}

.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(--primary-color);
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-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(--primary-color);
}

.page-lottery__btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
    margin-top: 15px;
}

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

.page-lottery__blog-item {
    background: var(--card-bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
}

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

.page-lottery__blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding-bottom: 20px;
}

.page-lottery__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

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

.page-lottery__blog-item-excerpt {
    font-size: 0.95em;
    color: #666;
    margin: 0 15px 15px;
}

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

.page-lottery__view-all-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__main-title {
        font-size: 3em;
    }
    .page-lottery__section-title {
        font-size: 2em;
    }
    .page-lottery__sub-title {
        font-size: 1.5em;
    }
    .page-lottery__hero-section {
        padding: 100px 0 60px;
    }
    .page-lottery__introduction-section, .page-lottery__benefits-section, .page-lottery__brand-section, .page-lottery__blog-section,
    .page-lottery__guide-section, .page-lottery__strategy-section, .page-lottery__faq-section {
        padding: 60px 0;
    }
    .page-lottery__content-wrapper, .page-lottery__brand-content {
        flex-direction: column;
        text-align: center;
    }
    .page-lottery__image-content {
        max-width: 80%;
        margin-bottom: 30px;
    }
    .page-lottery__image-left {
        order: 0;
    }
    .page-lottery__brand-text {
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .page-lottery__hero-section {
        padding: 80px 0 40px !important; /* Mobile padding-top */
    }
    .page-lottery__main-title {
        font-size: 2.2em;
    }
    .page-lottery__hero-description {
        font-size: 1em;
    }
    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-lottery__cta-button {
        padding: 12px 25px !important;
        font-size: 1em !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-lottery__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-lottery__sub-title {
        font-size: 1.3em;
    }
    .page-lottery__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-lottery__container {
        padding: 0 15px;
    }
    .page-lottery__list-item, .page-lottery__guide-item p, .page-lottery__benefit-card p, .page-lottery__strategy-item p {
        font-size: 0.95em;
    }
    .page-lottery__guide-item, .page-lottery__benefit-card, .page-lottery__strategy-item {
        padding: 25px;
    }
    .page-lottery__benefit-icon {
        width: 100px;
        height: 100px;
    }
    .page-lottery__card-title, .page-lottery__item-title, .page-lottery__guide-title {
        font-size: 1.2em;
    }
    .page-lottery__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-lottery__blog-image {
        height: 180px;
    }
    .page-lottery__blog-item-title {
        font-size: 1.1em;
    }
    .page-lottery__blog-item-excerpt {
        font-size: 0.9em;
    }
    .page-lottery__faq-question h3 {
        font-size: 1em;
    }
    .page-lottery__faq-question {
        padding: 15px;
    }
    .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__btn-small {
        padding: 6px 15px !important;
        font-size: 0.85em !important;
        width: auto !important;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-lottery__blog-list, .page-lottery__benefits-grid, .page-lottery__strategy-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-lottery__main-title {
        font-size: 1.8em;
    }
    .page-lottery__section-title {
        font-size: 1.5em;
    }
    .page-lottery__hero-section {
        padding: 60px 0 30px !important;
    }
    .page-lottery__image-content {
        max-width: 100%;
    }
    .page-lottery__content-wrapper, .page-lottery__brand-content {
        gap: 20px;
    }
}