/* style/live-stream.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --text-on-dark-bg: #ffffff;
    --text-on-light-bg: #333333;
    --register-login-font-color: #FFFF00;
}

.page-live-stream {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark-bg); /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

.page-live-stream__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-live-stream__dark-section {
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
}

.page-live-stream__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
}

.page-live-stream__section-title {
    font-size: 2.5em;
    color: inherit;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-live-stream__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-live-stream__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-live-stream__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-live-stream__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-live-stream__hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text readability */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-live-stream__main-title {
    font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive font size */
    color: var(--register-login-font-color); /* Yellow for main title */
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-live-stream__hero-description {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

.page-live-stream__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-live-stream__cta-buttons--center {
    margin-top: 40px;
}

.page-live-stream__btn-primary,
.page-live-stream__btn-secondary,
.page-live-stream__btn-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-live-stream__btn-primary {
    background-color: var(--register-button-color); /* Custom register color */
    color: var(--register-login-font-color); /* Custom font color */
    border: 2px solid var(--register-button-color);
    box-shadow: 0 4px 10px rgba(195, 8, 8, 0.4);
}

.page-live-stream__btn-primary:hover {
    background-color: darken(var(--register-button-color), 10%);
    border-color: darken(var(--register-button-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(195, 8, 8, 0.6);
}

.page-live-stream__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.page-live-stream__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}

.page-live-stream__btn-link {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-live-stream__btn-link:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-live-stream__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-on-dark-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-live-stream__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-live-stream__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--register-login-font-color);
    font-weight: 700;
}

.page-live-stream__card-description {
    font-size: 1em;
    color: var(--secondary-color);
    flex-grow: 1;
}

/* Betting Guide Section */
.page-live-stream__guide-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.page-live-stream__guide-item {
    flex: 1 1 300px;
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-live-stream__guide-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-live-stream__guide-description {
    font-size: 1em;
    color: var(--text-on-light-bg);
}

/* Why Choose Us Section (Benefits) */
.page-live-stream__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-live-stream__benefit-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-on-dark-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-live-stream__benefit-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 100px; /* Ensure icons are not too small */
    min-height: 100px;
}

/* How to Join Section (Steps) */
.page-live-stream__steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-live-stream__step-card {
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-live-stream__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-live-stream__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-live-stream__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-on-dark-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-live-stream__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-live-stream__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-live-stream__faq-item {
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-live-stream__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--primary-color);
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.page-live-stream__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-live-stream__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-live-stream__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-live-stream__faq-item[open] .page-live-stream__faq-toggle {
    transform: rotate(45deg);
}

.page-live-stream__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    color: var(--text-on-light-bg);
    text-align: justify;
}

/* Final CTA Section */
.page-live-stream__cta-final-section {
    padding: 80px 20px;
    text-align: center;
}

.page-live-stream__cta-final-content {
    max-width: 900px;
}

.page-live-stream__cta-final-section .page-live-stream__section-title {
    color: var(--register-login-font-color);
}

.page-live-stream__cta-final-section .page-live-stream__text-block {
    color: var(--secondary-color);
}


/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .page-live-stream__container {
        padding: 30px 15px;
    }

    .page-live-stream__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-live-stream__hero-description {
        font-size: 1.1em;
    }

    .page-live-stream__feature-grid, 
    .page-live-stream__benefits-grid, 
    .page-live-stream__steps-wrapper, 
    .page-live-stream__promo-grid {
        gap: 20px;
    }

    .page-live-stream__hero-content {
        margin-top: -80px;
        padding: 25px;
    }

    .page-live-stream__main-title {
        font-size: clamp(1.8em, 4vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-live-stream {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-live-stream__container {
        padding: 20px 15px !important;
    }

    .page-live-stream__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 30px;
    }

    .page-live-stream__hero-image-wrapper {
        max-height: 400px;
    }

    .page-live-stream__hero-content {
        margin-top: -60px; /* Adjust overlap for smaller screens */
        padding: 20px;
    }

    .page-live-stream__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em) !important; /* Smaller H1 for mobile */
        margin-bottom: 10px;
    }

    .page-live-stream__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-live-stream__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-live-stream__btn-primary,
    .page-live-stream__btn-secondary,
    .page-live-stream a[class*="button"],
    .page-live-stream 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;
    }

    .page-live-stream__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-live-stream__text-block {
        font-size: 1em;
    }

    /* Product Display / Feature Image Adaption */
    .page-live-stream img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-live-stream__feature-grid,
    .page-live-stream__benefits-grid,
    .page-live-stream__steps-wrapper,
    .page-live-stream__promo-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px;
    }

    .page-live-stream__feature-card,
    .page-live-stream__benefit-card,
    .page-live-stream__step-card,
    .page-live-stream__promo-card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-live-stream__feature-image,
    .page-live-stream__promo-image {
        height: auto; /* Allow height to adjust */
        max-height: 250px; /* Cap max height for smaller images */
    }

    .page-live-stream__guide-steps {
        flex-direction: column;
        gap: 20px;
    }

    .page-live-stream__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-live-stream__faq-answer {
        padding: 10px 15px;
    }

    .page-live-stream__cta-final-section {
        padding: 50px 15px;
    }
}