.page-live {
    background-color: #0A0A0A; /* Page background, derived from 'Background' custom color */
    color: #FFF6D6; /* Main text color, derived from 'Text Main' custom color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-live__section {
    padding: 60px 0;
    text-align: center;
}

.page-live__section-title {
    font-size: clamp(28px, 4vw, 48px); /* H1 font size rule applied to H2 as well for responsiveness */
    font-weight: 700;
    color: #F2C14E; /* Main color for titles */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-live__section-intro {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF6D6;
}

/* Hero Section */
.page-live__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Stack video above content */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #0A0A0A; /* Ensures consistent background */
}

.page-live__video-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-live__video-link {
    display: block;
    cursor: pointer;
}

.page-live__video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-live__hero-content {
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-live__main-title {
    font-size: clamp(36px, 5vw, 64px); /* H1 font size clamp */
    font-weight: 800;
    color: #FFD36B; /* Brighter color for main title */
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.page-live__description {
    font-size: 20px;
    color: #FFF6D6;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Buttons */
.page-live__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* For mobile button responsiveness */
    max-width: 100%;
    box-sizing: border-box;
}

.page-live__btn-primary,
.page-live__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-live__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #111111; /* Dark text for bright button, for contrast */
    border: 2px solid transparent;
}

.page-live__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    color: #000000;
}

.page-live__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Main color for secondary button text */
    border: 2px solid #F2C14E; /* Border with main color */
}

.page-live__btn-secondary:hover {
    background: #F2C14E;
    color: #111111; /* Dark text on hover */
}

.page-live__btn-large {
    padding: 18px 40px;
    font-size: 20px;
}

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

.page-live__feature-card {
    background-color: #111111; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #3A2A12; /* Border with custom color */
    color: #FFF6D6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-live__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-width: 400px; /* Limit max width for smaller images */
    margin-bottom: 25px;
    border-radius: 8px;
    object-fit: cover;
}

.page-live__card-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFD36B; /* Brighter color for card titles */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-live__card-link {
    color: #FFD36B; /* Link color for card titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-live__card-link:hover {
    color: #F2C14E;
    text-decoration: underline;
}

.page-live__feature-card p {
    font-size: 16px;
    color: #FFF6D6;
}

/* Games List Section */
.page-live__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-live__game-card {
    background-color: #111111; /* Card BG */
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #3A2A12; /* Border with custom color */
    color: #FFF6D6;
    display: flex;
    flex-direction: column;
}

.page-live__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-live__game-card p {
    font-size: 15px;
    color: #FFF6D6;
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: 20px;
}

.page-live__card-button {
    display: inline-block;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #111111; /* Dark text for contrast */
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
    margin-top: auto; /* Aligns button at the bottom */
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-live__card-button:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    color: #000000;
}

/* CTA Section (Dark background) */
.page-live__dark-section {
    background-color: #111111; /* Card BG color for dark sections */
    color: #FFF6D6;
    border-top: 1px solid #3A2A12;
    border-bottom: 1px solid #3A2A12;
}

/* How to Start Section */
.page-live__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-live__step-card {
    background-color: #111111; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #3A2A12; /* Border with custom color */
    color: #FFF6D6;
}

.page-live__step-number {
    font-size: 48px;
    font-weight: 800;
    color: #F2C14E; /* Main color for step numbers */
    margin-bottom: 15px;
}

/* FAQ Section */
.page-live__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-live__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border with custom color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-live__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #FFD36B; /* Brighter color for questions */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1); /* Slight hover effect with main color */
}

.page-live__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    color: #F2C14E;
    transition: transform 0.3s ease;
}

.page-live__faq-item.active .page-live__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-live__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6;
    font-size: 16px;
    line-height: 1.6;
}

.page-live__faq-item.active .page-live__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 15px 25px 25px 25px;
}

.page-live__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA */
.page-live__final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-live__section {
        padding: 40px 0;
    }
    .page-live__hero-content {
        margin-top: 20px;
    }
    .page-live__main-title {
        font-size: clamp(32px, 5vw, 56px);
    }
    .page-live__description {
        font-size: 18px;
    }
    .page-live__features-grid,
    .page-live__games-grid,
    .page-live__steps-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-live__section {
        padding: 30px 0;
    }
    .page-live__container {
        padding: 0 15px; /* Mobile padding */
    }
    .page-live__section-title {
        font-size: clamp(24px, 6vw, 36px);
    }
    .page-live__section-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Images */
    .page-live img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-live__feature-icon {
        height: auto !important; /* Override fixed height for responsiveness */
    }
    .page-live__game-image {
        height: auto !important; /* Override fixed height for responsiveness */
    }
    
    /* Containers for images/content */
    .page-live__section,
    .page-live__card,
    .page-live__container,
    .page-live__hero-section,
    .page-live__video-wrapper,
    .page-live__cta-buttons,
    .page-live__features-grid,
    .page-live__games-grid,
    .page-live__steps-grid,
    .page-live__faq-list,
    .page-live__final-cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video section top padding */
    .page-live__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px !important;
    }

    /* Buttons */
    .page-live__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-live__btn-primary,
    .page-live__btn-secondary,
    .page-live a[class*="button"],
    .page-live 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; /* Add padding to prevent text touching edges */
        padding-right: 15px;
    }

    /* Button containers mobile adaptation */
    .page-live__cta-buttons,
    .page-live__button-group,
    .page-live__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-live__main-title {
        font-size: clamp(28px, 8vw, 48px);
    }
    .page-live__description {
        font-size: 16px;
    }
    .page-live__card-title {
        font-size: 20px;
    }
    .page-live__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    .page-live__faq-answer {
        padding: 0 20px;
    }
    .page-live__faq-item.active .page-live__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}