/* style/huong-dan-choi-the-thao.css */

/* Base styles for the page */
.page-huong-dan-choi-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for clarity, though body is white */
}

/* Container for main content to limit width and center */
.page-huong-dan-choi-the-thao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Top Section (Hero-like) */
.page-huong-dan-choi-the-thao__top-section {
    padding-top: 10px; /* Minimal top padding, rely on body padding-top for header offset */
    padding-bottom: 40px;
    background-color: #f8f9fa; /* Light background for top section */
    text-align: center;
}

.page-huong-dan-choi-the-thao__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-huong-dan-choi-the-thao__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons in top section */
.page-huong-dan-choi-the-thao__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 30px;
}

.page-huong-dan-choi-the-thao__btn-primary,
.page-huong-dan-choi-the-thao__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-huong-dan-choi-the-thao__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
    border: 2px solid #26A9E0;
}

.page-huong-dan-choi-the-thao__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-huong-dan-choi-the-thao__btn-secondary {
    background-color: #ffffff; /* White background */
    color: #26A9E0; /* Brand primary color text */
    border: 2px solid #26A9E0;
}

.page-huong-dan-choi-the-thao__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* General content sections */
.page-huong-dan-choi-the-thao__content-section {
    padding: 60px 0;
}

.page-huong-dan-choi-the-thao__article-wrap {
    max-width: 900px; /* Slightly narrower for article content */
}

.page-huong-dan-choi-the-thao__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 30px;
    text-align: center;
    padding-top: 20px;
}

.page-huong-dan-choi-the-thao__section-title + p {
    margin-bottom: 40px;
    text-align: center;
    font-size: 1.1em;
}

/* Step Cards */
.page-huong-dan-choi-the-thao__step-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-huong-dan-choi-the-thao__step-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-huong-dan-choi-the-thao__step-card p {
    margin-bottom: 15px;
}

.page-huong-dan-choi-the-thao__step-card ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-huong-dan-choi-the-thao__step-card li {
    margin-bottom: 8px;
}

.page-huong-dan-choi-the-thao__cta-buttons--inline {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 20px;
}

/* Info Cards for kèo cược */
.page-huong-dan-choi-the-thao__info-card {
    background-color: #f8f9fa;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-huong-dan-choi-the-thao__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-huong-dan-choi-the-thao__info-card p,
.page-huong-dan-choi-the-thao__info-card ul {
    margin-bottom: 15px;
}

.page-huong-dan-choi-the-thao__info-card ul {
    list-style: circle;
    margin-left: 20px;
}

/* Tip Cards */
.page-huong-dan-choi-the-thao__tip-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-huong-dan-choi-the-thao__tip-card p,
.page-huong-dan-choi-the-thao__tip-card ul {
    margin-bottom: 15px;
}

.page-huong-dan-choi-the-thao__tip-card ul {
    list-style: square;
    margin-left: 20px;
}

/* Feature Cards (Why choose Game68) */
.page-huong-dan-choi-the-thao__feature-card {
    background-color: #eaf7ff; /* Lighter shade of brand color */
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-huong-dan-choi-the-thao__feature-card .page-huong-dan-choi-the-thao__card-title {
    color: #000000;
}

/* FAQ Section */
.page-huong-dan-choi-the-thao__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-huong-dan-choi-the-thao__faq-question {
    font-size: 1.2em;
    font-weight: 600;
    color: #000000;
    padding: 20px 25px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-huong-dan-choi-the-thao__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #26A9E0;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.page-huong-dan-choi-the-thao__faq-item.active .page-huong-dan-choi-the-thao__faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

.page-huong-dan-choi-the-thao__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fcfcfc;
}

.page-huong-dan-choi-the-thao__faq-item.active .page-huong-dan-choi-the-thao__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-bottom: 20px;
}

.page-huong-dan-choi-the-thao__faq-answer p {
    margin-bottom: 0;
}

/* Images and figures */
.page-huong-dan-choi-the-thao img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures images behave as block elements for layout */
    border-radius: 8px;
    margin: 20px auto; /* Center images */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-huong-dan-choi-the-thao__image-figure {
    margin: 30px 0;
    text-align: center;
}

.page-huong-dan-choi-the-thao__image-caption {
    font-size: 0.9em;
    color: #666666;
    margin-top: 10px;
}

/* Links within content */
.page-huong-dan-choi-the-thao p a,
.page-huong-dan-choi-the-thao li a,
.page-huong-dan-choi-the-thao__image-caption a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
}

.page-huong-dan-choi-the-thao p a:hover,
.page-huong-dan-choi-the-thao li a:hover,
.page-huong-dan-choi-the-thao__image-caption a:hover {
    text-decoration: underline;
}

/* General paragraph and list styling */
.page-huong-dan-choi-the-thao p {
    margin-bottom: 1em;
}

.page-huong-dan-choi-the-thao ul {
    margin-bottom: 1em;
}

/* --- Responsive styles for Tablet and Mobile --- */
@media (max-width: 1024px) {
    .page-huong-dan-choi-the-thao__main-title {
        font-size: clamp(2em, 5vw, 2.5em);
    }

    .page-huong-dan-choi-the-thao__section-title {
        font-size: 2em;
    }

    .page-huong-dan-choi-the-thao__step-title {
        font-size: 1.6em;
    }

    .page-huong-dan-choi-the-thao__card-title {
        font-size: 1.3em;
    }

    .page-huong-dan-choi-the-thao__cta-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .page-huong-dan-choi-the-thao__btn-primary,
    .page-huong-dan-choi-the-thao__btn-secondary {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    /* 1. Top section title + dual CTA */
    .page-huong-dan-choi-the-thao__top-section {
        padding-top: 10px !important; /* Ensure minimal top padding */
        padding-bottom: 30px;
    }

    .page-huong-dan-choi-the-thao__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em) !important; /* Smaller on mobile */
        margin-bottom: 15px;
    }

    .page-huong-dan-choi-the-thao__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 10px; /* Add horizontal padding to text */
    }

    .page-huong-dan-choi-the-thao__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to button container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* 2. Single column long text container */
    .page-huong-dan-choi-the-thao__container {
        padding: 0 15px !important; /* Ensure content has side padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-huong-dan-choi-the-thao__article-wrap {
        padding: 0 15px !important; /* Ensure content has side padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-huong-dan-choi-the-thao__content-section {
        padding: 40px 0;
    }

    .page-huong-dan-choi-the-thao__section-title {
        font-size: 1.8em !important;
        margin-bottom: 25px;
    }

    .page-huong-dan-choi-the-thao__step-card,
    .page-huong-dan-choi-the-thao__info-card,
    .page-huong-dan-choi-the-thao__tip-card,
    .page-huong-dan-choi-the-thao__feature-card,
    .page-huong-dan-choi-the-thao__faq-item {
        padding: 20px !important;
        margin-bottom: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-huong-dan-choi-the-thao__step-title {
        font-size: 1.4em !important;
        margin-bottom: 15px;
    }

    .page-huong-dan-choi-the-thao__card-title {
        font-size: 1.2em !important;
        margin-bottom: 10px;
    }

    /* 3. Generic images and figures */
    .page-huong-dan-choi-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 15px auto !important;
    }
    
    .page-huong-dan-choi-the-thao__image-figure {
        margin: 20px 0 !important;
    }

    /* 4. Buttons and button containers */
    .page-huong-dan-choi-the-thao__btn-primary,
    .page-huong-dan-choi-the-thao__btn-secondary,
    .page-huong-dan-choi-the-thao a[class*="button"],
    .page-huong-dan-choi-the-thao a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 0.95em !important;
    }
    
    .page-huong-dan-choi-the-thao__cta-buttons--inline {
        flex-direction: column !important; /* Stack inline buttons vertically on mobile */
        gap: 10px;
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* 5. Registration tutorial and FAQ sections */
    .page-huong-dan-choi-the-thao__faq-question {
        font-size: 1.1em !important;
        padding: 15px 20px !important;
    }
    .page-huong-dan-choi-the-thao__faq-question::after {
        right: 20px;
    }
    .page-huong-dan-choi-the-thao__faq-answer {
        padding: 0 20px;
        font-size: 0.95em;
    }
    .page-huong-dan-choi-the-thao__faq-item.active .page-huong-dan-choi-the-thao__faq-answer {
        padding-bottom: 15px;
    }
}