/* style/lottery.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
    --bg-light: #f9f9f9;
}

.page-lottery {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

.page-lottery__hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 120px; /* Desktop: Adjust for fixed header */
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFCC00 100%); /* Gold gradient */
}

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

.page-lottery__hero-image-content {
    width: 100%;
    max-width: 800px; /* Adjust max-width for content image */
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-lottery__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-light);
}

.page-lottery__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-lottery__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-lottery__section {
    padding: 60px 20px;
    background-color: var(--dark-bg-1);
    color: var(--text-light);
}

.page-lottery__introduction {
    padding-top: 120px; /* Additional padding-top for the first content section on non-homepage */
}

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

.page-lottery__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color); /* Use primary color for section titles */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-lottery__content-block {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-lottery__content-block p {
    font-size: 17px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-lottery__keyword-highlight {
    color: var(--primary-color);
    font-weight: bold;
}

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

.page-lottery__card {
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

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

.page-lottery__card-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-lottery__card-description {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-lottery__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-lottery__btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #FFCC00);
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-lottery__btn-primary:hover {
    background: linear-gradient(135deg, #FFCC00, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-lottery__btn-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.page-lottery__btn-secondary:hover {
    background: #A00000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.6);
}

.page-lottery__benefits .page-lottery__section-title {
    color: var(--text-light);
}

.page-lottery__card-benefits {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-lottery__benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.page-lottery__benefit-list li {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: var(--text-light);
}

.page-lottery__benefit-icon {
    width: 80px; /* Increased size for icons */
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 10px;
}

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

.page-lottery__step-card {
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    color: var(--text-dark);
}

.page-lottery__step-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-lottery__step-card p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.page-lottery__promotion-card {
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    color: var(--text-dark);
}

.page-lottery__promotion-image {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-lottery__news-card {
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.page-lottery__news-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
    flex-grow: 1;
}

.page-lottery__news-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-lottery__news-link:hover {
    text-decoration: underline;
}

.page-lottery__news-summary {
    font-size: 15px;
    color: #555555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-lottery__news-date {
    font-size: 14px;
    color: #888888;
    margin-top: auto;
}

.page-lottery__faq-list {
    margin-top: 30px;
}

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

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

.page-lottery__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--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(--text-light);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-lottery__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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(--secondary-color);
  transform: rotate(45deg);
}

.page-lottery__text-center {
    text-align: center;
}

.page-lottery__mt-40 {
    margin-top: 40px;
}

/* Color contrast classes for specific backgrounds */
.page-lottery__dark-bg {
    color: var(--text-light);
}

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

.page-lottery__text-white {
    color: var(--text-light) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__main-title {
        font-size: 40px;
    }
    .page-lottery__hero-description {
        font-size: 18px;
    }
    .page-lottery__section-title {
        font-size: 32px;
    }
    .page-lottery__card-title, .page-lottery__step-title, .page-lottery__news-title {
        font-size: 22px;
    }
    .page-lottery__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-lottery__hero-image-content, .page-lottery__card-image, .page-lottery__step-image, .page-lottery__promotion-image, .page-lottery__news-image {
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .page-lottery__hero-banner {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
    }
    .page-lottery__introduction {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    }
    .page-lottery__main-title {
        font-size: 32px;
    }
    .page-lottery__hero-description {
        font-size: 16px;
    }
    .page-lottery__section {
        padding: 40px 15px;
    }
    .page-lottery__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-lottery__content-block, .page-lottery__card, .page-lottery__step-card, .page-lottery__promotion-card, .page-lottery__news-card {
        padding: 20px;
    }
    .page-lottery__content-block p {
        font-size: 15px;
    }
    .page-lottery__card-image, .page-lottery__step-image, .page-lottery__promotion-image, .page-lottery__news-image {
        height: 180px;
    }
    .page-lottery__card-title, .page-lottery__step-title, .page-lottery__news-title {
        font-size: 20px;
    }
    .page-lottery__card-description, .page-lottery__step-card p, .page-lottery__news-summary {
        font-size: 14px;
    }
    .page-lottery__benefit-list li {
        font-size: 16px;
    }
    .page-lottery__benefit-icon {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    .page-lottery__cta-button {
        padding: 10px 20px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    .page-lottery__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-lottery__faq-question h3 {
        font-size: 16px;
        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;
    }
    .page-lottery img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-lottery__section,
    .page-lottery__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-lottery__main-title {
        font-size: 28px;
    }
    .page-lottery__hero-description {
        font-size: 15px;
    }
    .page-lottery__section-title {
        font-size: 24px;
    }
    .page-lottery__card-title, .page-lottery__step-title, .page-lottery__news-title {
        font-size: 18px;
    }
    .page-lottery__card-image, .page-lottery__step-image, .page-lottery__promotion-image, .page-lottery__news-image {
        height: 150px;
    }
    .page-lottery__benefit-icon {
        width: 50px;
        height: 50px;
    }
    .page-lottery__faq-question h3 {
        font-size: 15px;
    }
}