/* style/lottery.css */
:root {
    --primary-color: #007bff; /* Deep Blue */
    --secondary-color: #ffc107; /* Amber/Gold */
    --text-color: #333333;
    --light-text-color: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #0056b3; /* Darker shade of primary */
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

.page-lottery {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

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

.page-lottery .introduction-section {
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark));
    color: var(--light-text-color);
    padding: 60px 0;
    text-align: center;
}

.page-lottery .main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-lottery .intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery .feature-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    object-fit: cover;
}

.page-lottery .content-block, .page-lottery .deposit-guide-section, .page-lottery .promotions-section, .page-lottery .tips-section, .page-lottery .safety-support-section, .page-lottery .faq-section, .page-lottery .blog-section {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-lottery .section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-lottery .section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.page-lottery .sub-section-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
}

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

.page-lottery .list-items {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-lottery .list-items li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-lottery .method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-lottery .card {
    background: var(--card-background);
    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;
}

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

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

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

.page-lottery .step-list {
    list-style: none;
    padding: 0;
}

.page-lottery .step-list li {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery .step-list li h4 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-lottery .sub-step-title {
    font-size: 1.4em;
    color: var(--background-dark);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-lottery .sub-step-list {
    list-style: decimal inside;
    margin-left: 20px;
}

.page-lottery .sub-step-list li {
    margin-bottom: 10px;
}

.page-lottery .sub-step-list li h5 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.page-lottery .step-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-lottery .cta-block {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: #e6f2ff; /* Light blue background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery .cta-block p {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-lottery .cta-button, .page-lottery .link-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--secondary-color);
    color: var(--light-text-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery .cta-button:hover, .page-lottery .link-button:hover {
    background: #e0ac00; /* Darker amber */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-lottery .faq-list {
    margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--background-light);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--text-color);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

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

.page-lottery .blog-card {
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery .blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-lottery .blog-content {
    padding: 20px;
}

.page-lottery .blog-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    min-height: 70px; /* Ensure consistent height */
}

.page-lottery .blog-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-lottery .blog-title a:hover {
    color: var(--secondary-color);
}

.page-lottery .blog-excerpt {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
}

.page-lottery .blog-date {
    font-size: 0.85em;
    color: #999;
    display: block;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-lottery .main-title {
        font-size: 2.2em;
    }
    .page-lottery .section-title {
        font-size: 1.8em;
    }
    .page-lottery .sub-section-title {
        font-size: 1.5em;
    }
    .page-lottery .card-image {
        height: 180px;
    }
    .page-lottery .blog-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-lottery .introduction-section {
        padding: 40px 0;
    }
    .page-lottery .main-title {
        font-size: 1.8em;
    }
    .page-lottery .intro-text {
        font-size: 1em;
    }
    .page-lottery .section-title {
        font-size: 1.6em;
    }
    .page-lottery .sub-section-title {
        font-size: 1.3em;
    }
    .page-lottery .content-block, .page-lottery .deposit-guide-section, .page-lottery .promotions-section, .page-lottery .tips-section, .page-lottery .safety-support-section, .page-lottery .faq-section, .page-lottery .blog-section {
        padding: 30px 0;
    }
    .page-lottery .method-cards {
        grid-template-columns: 1fr;
    }
    .page-lottery .card-image {
        height: 150px;
    }
    .page-lottery .step-list li {
        padding: 20px;
    }
    .page-lottery .step-list li h4 {
        font-size: 1.4em;
    }
    .page-lottery .sub-step-title {
        font-size: 1.2em;
    }
    .page-lottery .cta-block p {
        font-size: 1.1em;
    }
    .page-lottery .cta-button, .page-lottery .link-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-lottery .blog-grid {
        grid-template-columns: 1fr;
    }
    .page-lottery .blog-image {
        height: 160px;
    }
    .page-lottery .blog-title {
        font-size: 1.2em;
        min-height: auto;
    }
    .faq-question {
        padding: 12px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-item.active .faq-answer {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .page-lottery .main-title {
        font-size: 1.5em;
    }
    .page-lottery .intro-text {
        font-size: 0.9em;
    }
    .page-lottery .section-title {
        font-size: 1.4em;
    }
    .page-lottery .sub-section-title {
        font-size: 1.1em;
    }
    .page-lottery .list-items, .page-lottery p {
        font-size: 0.95em;
    }
    .page-lottery .cta-block p {
        font-size: 1em;
    }
    .page-lottery .cta-button, .page-lottery .link-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}