/* style/live.css */

/* Global styles for page-live scope */
.page-live {
    background-color: #0A0A0A; /* Main background from custom colors */
    color: #FFF6D6; /* Main text color from custom colors */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Sections */
.page-live__section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.page-live__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added for mobile responsiveness */
    box-sizing: border-box;
}

.page-live__section-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Using clamp for H2 */
    font-weight: 700;
    color: #F2C14E; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-live__section-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF6D6;
}

/* Hero Section */
.page-live__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure sufficient height */
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: #0A0A0A;
}

.page-live__video-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin-bottom: 40px; /* Space between video and text content */
}

.page-live__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2; /* Ensure link is clickable over video */
}

.page-live__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-live__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px 60px;
    max-width: 900px;
    margin-top: -100px; /* Pull content slightly up over video */
}

.page-live__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font size with clamp */
    color: #FFD36B; /* Accent color for H1 */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 800;
}

.page-live__hero-description {
    font-size: clamp(1.1em, 1.8vw, 1.4em);
    margin-bottom: 30px;
    color: #FFF6D6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-live__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

.page-live__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-live__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Primary color text */
    border: 2px solid #F2C14E; /* Border color */
}

.page-live__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

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

/* Card styles */
.page-live__card {
    background-color: #111111; /* Card background from custom colors */
    border: 1px solid #3A2A12; /* Border color from custom colors */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #FFF6D6;
}

/* What is Live Casino Section */
.page-live__what-is-live-casino .page-live__section-description {
    max-width: 900px;
}

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

.page-live__game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

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

.page-live__game-title {
    font-size: 1.5em;
    color: #FFD36B;
    margin-bottom: 10px;
}

.page-live__game-text {
    font-size: 0.95em;
    color: #FFF6D6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Choose Jilipark Section */
.page-live__why-choose-jilipark {
    background-color: #111111;
}

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

.page-live__feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-live__feature-title {
    font-size: 1.6em;
    color: #F2C14E;
    margin-bottom: 15px;
}

.page-live__feature-text {
    font-size: 1em;
    color: #FFF6D6;
    margin-bottom: 15px;
}

.page-live__feature-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #3A2A12;
}

/* Bonuses and Promotions Section */
.page-live__bonuses-promotions .page-live__section-description {
    max-width: 900px;
}

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

.page-live__promo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-live__promo-title {
    font-size: 1.5em;
    color: #FFD36B;
    margin-bottom: 10px;
}

.page-live__promo-text {
    font-size: 0.95em;
    color: #FFF6D6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-live__step-icon {
    background-color: #F2C14E;
    color: #111111;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-live__step-title {
    font-size: 1.4em;
    color: #F2C14E;
    margin-bottom: 10px;
}

.page-live__step-text {
    font-size: 0.95em;
    color: #FFF6D6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsible Gaming Section */
.page-live__responsible-gaming {
    background-color: #0A0A0A;
}

.page-live__responsible-gaming-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
}

.page-live__responsible-gaming-text {
    flex: 1;
    text-align: left;
}

.page-live__responsible-gaming-text .page-live__section-title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-live__responsible-gaming-text .page-live__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
}

.page-live__responsible-gaming-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-live__responsible-gaming-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #3A2A12;
}

/* FAQ Section */
.page-live__faq-section {
    background-color: #111111;
}

.page-live__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-live__faq-item {
    background-color: #0A0A0A;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-live__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #0A0A0A;
    color: #F2C14E;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
    background-color: #1a1a1a;
}

.page-live__faq-title {
    margin: 0;
    font-size: 1em; /* Adjusted to match parent font size */
    color: inherit;
}

.page-live__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-live__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6;
    background-color: #0A0A0A;
}

.page-live__faq-answer p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

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

/* Call to Action Section */
.page-live__call-to-action {
    background-color: #0A0A0A; /* Dark background from custom colors */
    text-align: center;
    padding: 80px 20px;
}

.page-live__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-live__call-to-action .page-live__section-title {
    color: #FFD36B;
}

.page-live__call-to-action .page-live__section-description {
    color: #FFF6D6;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-live__hero-content {
        margin-top: -50px;
        padding-bottom: 40px;
    }
    .page-live__responsible-gaming-content {
        flex-direction: column;
        text-align: center;
    }
    .page-live__responsible-gaming-text {
        text-align: center;
    }
    .page-live__responsible-gaming-text .page-live__section-title,
    .page-live__responsible-gaming-text .page-live__section-description {
        text-align: center;
    }
}

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

    .page-live__hero-section {
        min-height: 450px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-live__hero-content {
        padding: 0 15px 40px;
        margin-top: -30px;
    }

    .page-live__main-title {
        font-size: 2.2em;
    }

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

    /* Images responsiveness */
    .page-live img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-live__game-image,
    .page-live__feature-image,
    .page-live__responsible-gaming-image img {
        height: auto; /* Allow auto height on mobile */
    }

    .page-live__section,
    .page-live__card,
    .page-live__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsiveness */
    .page-live__cta-button,
    .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;
        padding-right: 15px;
    }
    
    .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;
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-live__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-live__faq-answer {
        padding: 0 20px;
    }

    .page-live__faq-item.active .page-live__faq-answer {
        padding: 10px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-live__main-title {
        font-size: 1.8em;
    }
    .page-live__section-title {
        font-size: 1.8em;
    }
    .page-live__hero-content {
        margin-top: -10px;
    }
}