/* style/live.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-dark: #0A0A0A;
    --card-background: #111111;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --header-offset: 120px; /* Default desktop header height */
}

.page-live {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--background-dark); /* Ensure consistency with body background */
    line-height: 1.6;
}

.page-live__section {
    padding: 60px 0;
    position: relative;
}

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

.page-live__main-title,
.page-live__section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-live__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 40px;
}

.page-live__hero-section {
    background: var(--background-dark);
    padding-top: 10px; /* Small top padding as per rules */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-live__hero-content {
    text-align: center;
    max-width: 900px;
}

.page-live__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

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

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

.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: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-live__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-live__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-live__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-live__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--background-dark);
    transform: translateY(-2px);
}

.page-live__btn-text {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.page-live__btn-text:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-live__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-live__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-live__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-live__text-block a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-live__text-block a:hover {
    text-decoration: underline;
}

.page-live__dark-section {
    background-color: var(--card-background);
    color: var(--text-main);
}

.page-live__card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-live__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-live__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.page-live__game-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-live__game-category-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--secondary-color));
}

.page-live__game-category-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0;
}

.page-live__game-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-live__game-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.page-live__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-live__game-card-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding: 0 20px;
}

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

.page-live__feature-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-live__feature-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
}

.page-live__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-live__step-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-live__step-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-live__partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 2x5 grid for desktop */
    gap: 20px;
    margin-top: 40px;
    align-items: center;
    justify-items: center;
}

.page-live__partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    height: 127px; /* Fixed height for game images */
    width: 100%;
    box-sizing: border-box;
}

.page-live__partner-logo {
    width: 167px; /* Fixed width for game images */
    height: 127px; /* Fixed height for game images */
    object-fit: contain;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease;
}

.page-live__partner-logo:hover {
    filter: grayscale(0%) brightness(100%) drop-shadow(0 0 8px var(--secondary-color));
}

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

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

.page-live__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-live__faq-question h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.2rem;
}

.page-live__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

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

.page-live__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-main);
}

.page-live__faq-item.active .page-live__faq-answer {
    max-height: 1000px !important; /* Use !important as per requirement */
    padding: 20px;
}

.page-live__info-text {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-live__expandable-content {
    max-height: 400px; /* Initial height for expandable content */
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-live__expandable-content.collapsed {
    max-height: 0;
}

.page-live__load-less-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0 auto;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.page-live__load-less-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-live__load-less-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-live__expandable-content.collapsed + .page-live__load-less-btn .page-live__load-less-icon {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-live__partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .page-live__section {
        padding: 40px 0;
    }

    .page-live__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-live__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .page-live__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
        padding-bottom: 40px;
        gap: 20px;
    }

    .page-live__hero-description {
        font-size: 1rem;
    }

    .page-live__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
    }

    .page-live__btn-primary,
    .page-live__btn-secondary {
        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__game-categories,
    .page-live__game-showcase,
    .page-live__features-grid,
    .page-live__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-live__partners-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x5 grid for mobile */
        gap: 15px;
    }

    .page-live__partner-item {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .page-live__partner-logo {
        width: 100%;
        height: auto;
        max-width: 167px;
        max-height: 127px;
    }

    .page-live__faq-question,
    .page-live__faq-question h3 {
        font-size: 1.1rem;
    }

    /* Mobile image responsive optimization */
    .page-live img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-live__container,
    .page-live__section,
    .page-live__card,
    .page-live__game-category-item,
    .page-live__game-card,
    .page-live__feature-card,
    .page-live__step-card,
    .page-live__partner-item,
    .page-live__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-live__load-less-btn {
        max-width: calc(100% - 30px) !important;
        width: calc(100% - 30px) !important;
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-live__partners-grid {
        grid-template-columns: 1fr; /* Single column for very small mobiles */
    }
}