/* style/live.css */

/* Base styles for the live page content */
.page-live {
    color: #333333; /* Dark text on default light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

/* Dark themed sections */
.page-live__section--dark {
    background-color: #003366; /* Main brand color */
    color: #ffffff; /* White text for contrast */
    padding: 60px 20px;
}

.page-live__section--dark .page-live__section-title,
.page-live__section--dark .page-live__card-title,
.page-live__section--dark .page-live__feature-title,
.page-live__section--dark .page-live__promo-title,
.page-live__section--dark .page-live__testimonial-author,
.page-live__section--dark .page-live__faq-question {
    color: #FFD700; /* Gold for titles on dark background */
}

/* Content area for max-width and centering */
.page-live__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-live__content-area--reverse {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

/* Section titles */
.page-live__section-title {
    font-size: 2.8em;
    color: #003366; /* Main brand color for titles on light background */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Section text */
.page-live__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-live__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.05em;
    text-align: center;
}

.page-live__button--primary {
    background-color: #FFD700; /* Gold accent */
    color: #003366; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-live__button--primary:hover {
    background-color: #e6c200;
    color: #001a33;
    border-color: #e6c200;
}

.page-live__button--secondary {
    background-color: transparent;
    color: #003366; /* Dark blue text */
    border: 2px solid #003366;
    margin-left: 20px;
}

.page-live__section--dark .page-live__button--secondary {
    color: #FFD700; /* Gold text on dark background */
    border-color: #FFD700;
}

.page-live__button--secondary:hover {
    background-color: #003366;
    color: #ffffff;
}

.page-live__section--dark .page-live__button--secondary:hover {
    background-color: #FFD700;
    color: #003366;
}

.page-live__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    margin-top: 15px;
}


/* Hero Section */
.page-live__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    background-color: #0a0a0a; /* Dark background for hero */
    display: flex; /* Use flex to center content vertically relative to image */
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero section */
}

.page-live__hero-image {
    width: 100%;
    height: 100%; /* Fill the height of the hero section */
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    opacity: 0.7; /* Slightly dim the image to make text pop */
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-live__hero-container {
    position: relative; /* Make it relative to hero-section */
    z-index: 1;
    text-align: center;
    color: #ffffff; /* White text on hero */
    max-width: 900px;
    padding: 20px;
}

.page-live__hero-title {
    font-size: 3.8em;
    color: #FFD700; /* Gold for hero title */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-live__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-live__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Image styles */
.page-live__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-live__image-side {
    width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

.page-live__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e0e0e0;
}

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

.page-live__card-title {
    font-size: 1.6em;
    color: #003366;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-live__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Allow text to take available space */
}

/* GCash Advantage Section */
.page-live__text-content {
    width: 50%;
}

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

.page-live__feature-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #FFD700; /* Gold accent */
}

.page-live__feature-title {
    font-size: 1.4em;
    color: #003366;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-live__feature-description {
    font-size: 0.95em;
    color: #555555;
}

/* Promotions Section */
.page-live__content-area--promo {
    text-align: center;
}

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

.page-live__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-live__promo-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-live__promo-description {
    font-size: 1em;
    color: #ffffff;
    flex-grow: 1;
}

/* Responsible Gaming */
.page-live__responsible-gaming-section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-live__testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-live__testimonial-text {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-live__testimonial-author {
    font-weight: bold;
    color: #FFD700;
}

/* FAQ Section */
.page-live__faq-section {
    padding: 60px 20px;
}

.page-live__faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px 30px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #003366;
}

.page-live__faq-question {
    font-size: 1.3em;
    color: #003366;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
}

.page-live__faq-answer {
    font-size: 1em;
    color: #555555;
    display: none; /* Hidden by default, toggled by JS */
}

/* CTA Section */
.page-live__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-live__cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* General image styling for content area to meet min-size requirements */
.page-live__content-area img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    /* Ensure no filter properties */
    filter: none;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-live__hero-title {
        font-size: 3em;
    }
    .page-live__hero-description {
        font-size: 1.1em;
    }
    .page-live__section-title {
        font-size: 2.2em;
    }
    .page-live__content-area--reverse {
        flex-direction: column;
    }
    .page-live__text-content,
    .page-live__image-side {
        width: 100%;
    }
    .page-live__image-side {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-live__hero-section {
        min-height: 500px; /* Adjust min-height for mobile hero */
    }
    .page-live__hero-title {
        font-size: 2.5em;
    }
    .page-live__hero-description {
        font-size: 1em;
    }
    .page-live__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-live__button--secondary {
        margin-left: 0;
    }
    .page-live__section-title {
        font-size: 1.8em;
    }
    .page-live__section-text {
        font-size: 1em;
    }
    .page-live__game-grid,
    .page-live__features-grid,
    .page-live__promo-grid,
    .page-live__testimonials-grid {
        grid-template-columns: 1fr;
    }
    .page-live__hero-image,
    .page-live__image-full,
    .page-live__image-side,
    .page-live__card-image,
    .page-live__promo-image {
        max-width: 100%; /* Important for mobile overflow prevention */
        height: auto; /* Maintain aspect ratio */
        min-width: 200px; /* Ensure min size is still met */
        min-height: 200px; /* Ensure min size is still met */
    }
    .page-live__content-area {
        padding: 20px 15px;
    }
    .page-live__section--dark {
        padding: 40px 15px;
    }
    .page-live__cta-actions {
        flex-direction: column;
    }
}

/* Ensure no filter is used on any images within the page-live scope */
.page-live img {
    filter: none !important;
}

/* Content area image minimum size enforcement */
.page-live__content-area img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Specific card image height for consistency and min-size */
.page-live__card-image,
.page-live__promo-image {
    height: 200px; /* Fixed height for visual consistency in grid */
    min-width: 200px;
    min-height: 200px;
}