/* style/lottery.css */
:root {
    --primary-color: #0A246A;
    --secondary-color: #FFD700;
    --accent-color: #DC3545; /* A subtle red for emphasis */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0A246A;
    --border-color: #e0e0e0;
}

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

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

.page-lottery-section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-lottery-section:nth-of-type(odd) {
    background-color: #f0f2f5;
}

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

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

.page-lottery-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

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

.page-lottery-hero-image {
    width: 100%;
    margin-bottom: 0;
}

.page-lottery-hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.page-lottery-hero-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    color: var(--text-light);
    transform: translateY(20%);
    bottom: 0;
}

.page-lottery-hero-content h1 {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-lottery-hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-lottery-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-lottery-button:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-lottery-button-primary:hover {
    background-color: #e6b800;
}

.page-lottery-button-small {
    padding: 10px 25px;
    font-size: 0.9em;
}

.page-lottery-grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.page-lottery-text-content h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-lottery-text-content p {
    margin-bottom: 15px;
}

.page-lottery-text-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-lottery-text-content ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.page-lottery-text-content ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.page-lottery-image-wrapper {
    text-align: center;
}

.page-lottery-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-lottery-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-lottery-card-image {
    max-width: 100%;
    height: 200px; /* Enforce minimum height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-lottery-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-lottery-step-item {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-lottery-step-icon {
    width: 120px; /* Ensure icon is large enough */
    height: 120px; /* Ensure icon is large enough */
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-lottery-step-item p {
    color: #666;
    margin-bottom: 20px;
}

.page-lottery-faq-list {
    margin-top: 40px;
}

/* FAQ default state - answer hidden */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
}

/* FAQ expanded state */
.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* Question style */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-bottom: 10px; /* Space between FAQ items */
}

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

.faq-question:hover {
  background: #f5f5f5;
  border-color: var(--secondary-color);
}

/* Toggle icon */
.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-lottery-contact-info {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-lottery-contact-info h2 {
    color: var(--secondary-color);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.page-lottery-contact-info p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-lottery-contact-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-lottery-contact-info ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-lottery-hero-content h1 {
        font-size: 2.2em;
    }
    .page-lottery-hero-content p {
        font-size: 1em;
    }
    .page-lottery-section-title {
        font-size: 2.5em;
    }
    .page-lottery-grid-2-col {
        grid-template-columns: 1fr;
    }
    .page-lottery-text-content, .page-lottery-image-wrapper {
        order: unset; /* Reset order for smaller screens */
    }
    .page-lottery-section.page-lottery-tips .page-lottery-text-content {
        order: 1;
    }
    .page-lottery-section.page-lottery-tips .page-lottery-image-wrapper {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-lottery-hero-content {
        padding: 20px;
        transform: translateY(0);
        position: relative;
        bottom: unset;
        top: unset;
        background-color: rgba(0, 0, 0, 0.7);
        margin-top: -100px; /* Pull up over image */
        border-radius: 0;
    }
    .page-lottery-hero-image {
        margin-bottom: 0;
    }
    .page-lottery-hero-content h1 {
        font-size: 1.8em;
    }
    .page-lottery-hero-content p {
        font-size: 0.9em;
    }
    .page-lottery-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-lottery-section {
        padding: 40px 0;
    }
    .page-lottery-section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-lottery-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-lottery-grid-3-col {
        grid-template-columns: 1fr;
    }
    .page-lottery-step-icon {
        width: 100px;
        height: 100px;
    }
    .page-lottery-card-image {
        height: 180px;
    }
    .faq-question {
      flex-direction: column;
      align-items: flex-start;
    }
    .faq-question h3 {
      margin-bottom: 8px;
    }
    .faq-toggle {
      align-self: flex-end;
      margin-top: -30px;
    }
}

@media (max-width: 480px) {
    .page-lottery-hero-content h1 {
        font-size: 1.5em;
    }
    .page-lottery-hero-content p {
        font-size: 0.85em;
    }
    .page-lottery-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .page-lottery-section-title {
        font-size: 1.8em;
    }
    .page-lottery-text-content h3 {
        font-size: 1.5em;
    }
    .page-lottery-step-item h3 {
        font-size: 1.4em;
    }
    .page-lottery-contact-info {
        padding: 25px;
    }
    .page-lottery-contact-info h2 {
        font-size: 2em;
    }
}