/* style/x-s-result-archive.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --border-color: #e0e0e0;
}

.page-x-s-result-archive {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.x-s-result-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.x-s-result-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.x-s-result-section:nth-of-type(even) {
    background-color: #ffffff;
}

.x-s-result-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

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

.x-s-result-section h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.x-s-result-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.x-s-result-hero-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.x-s-result-hero-content h1 {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.x-s-result-hero-content p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

.x-s-result-cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.x-s-result-cta-button:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.introduction-section p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 17px;
}

.introduction-section p strong {
    color: var(--primary-color);
}

.x-s-result-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.x-s-result-feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.x-s-result-feature-item:hover {
    transform: translateY(-5px);
}

.x-s-result-feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.x-s-result-feature-item h3 {
    color: var(--primary-color);
    font-size: 22px;
}

.lottery-types-section .x-s-result-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.x-s-result-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.x-s-result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.x-s-result-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.x-s-result-card-content {
    padding: 25px;
}

.x-s-result-card-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.x-s-result-section-text {
    text-align: center;
    margin-top: 40px;
    font-size: 17px;
}

.x-s-result-section-text a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.x-s-result-section-text a:hover {
    text-decoration: underline;
}

.howto-section ol {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.x-s-result-step-list li {
    margin-bottom: 30px;
    padding-left: 60px;
    position: relative;
}

.x-s-result-step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.x-s-result-step-list li h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.benefits-section .x-s-result-benefit-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.x-s-result-benefit-list li {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 17px;
}

.x-s-result-benefit-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
}

.x-s-result-benefit-list li strong {
    color: var(--primary-color);
}

.platform-overview-section .x-s-result-platform-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.x-s-result-platform-item {
    text-align: center;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.x-s-result-platform-item h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.x-s-result-platform-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.x-s-result-center-button {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Styles */
.faq-list {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0;
    font-size: 16px;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Latest News Section */
.latest-news-section .x-s-result-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.x-s-result-article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.x-s-result-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.x-s-result-article-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.x-s-result-article-content {
    padding: 25px;
}

.x-s-result-article-content h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.x-s-result-article-content p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.x-s-result-article-content span {
    font-size: 14px;
    color: #888888;
}

/* Responsive Design */
@media (max-width: 992px) {
    .x-s-result-hero-content h1 {
        font-size: 40px;
    }
    .x-s-result-section h2 {
        font-size: 30px;
    }
    .x-s-result-feature-grid, .lottery-types-section .x-s-result-card-grid, .benefits-section .x-s-result-benefit-list, .platform-overview-section .x-s-result-platform-features, .latest-news-section .x-s-result-article-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .x-s-result-hero-content h1 {
        font-size: 32px;
    }
    .x-s-result-hero-content p {
        font-size: 16px;
    }
    .x-s-result-cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .x-s-result-section {
        padding: 40px 0;
    }
    .x-s-result-section h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .x-s-result-section h3 {
        font-size: 20px;
    }
    .x-s-result-feature-icon, .x-s-result-benefit-icon {
        width: 50px;
        height: 50px;
    }
    .x-s-result-card-img {
        height: 160px;
    }
    .x-s-result-card-content h3 {
        font-size: 18px;
    }
    .x-s-result-step-list li {
        padding-left: 50px;
    }
    .x-s-result-step-list li::before {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 16px;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .x-s-result-article-img {
        height: 180px;
    }
    .x-s-result-article-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .x-s-result-hero-img {
        max-height: 300px;
    }
    .x-s-result-hero-content h1 {
        font-size: 28px;
    }
    .x-s-result-hero-content p {
        font-size: 15px;
    }
    .x-s-result-cta-button {
        padding: 10px 25px;
        font-size: 15px;
    }
    .x-s-result-section h2 {
        font-size: 22px;
    }
    .x-s-result-feature-grid, .lottery-types-section .x-s-result-card-grid, .benefits-section .x-s-result-benefit-list, .platform-overview-section .x-s-result-platform-features, .latest-news-section .x-s-result-article-grid {
        grid-template-columns: 1fr;
    }
    .x-s-result-container {
        padding: 0 15px;
    }
    .x-s-result-step-list li {
        padding-left: 45px;
    }
    .x-s-result-step-list li::before {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}