/* style/b29-community.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --button-login-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

.page-b29-community {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Assuming --dark-bg-1 is dark, use light text */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

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

.page-b29-community__section--padded {
    padding: 80px 0;
}

.page-b29-community__section--dark {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-b29-community__section-title {
    font-size: 3.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--light-text-color); /* Default to light for dark section */
}

.page-b29-community__section-title--light {
    color: var(--light-text-color);
}

.page-b29-community__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.8);
}

.page-b29-community__section-subtitle--light {
    color: rgba(255, 255, 255, 0.8);
}

.page-b29-community__paragraph {
    margin-bottom: 1em;
    color: var(--light-text-color);
}

/* Hero Section */
.page-b29-community__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by header */
}

.page-b29-community__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-b29-community__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.page-b29-community__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-b29-community__hero-content {
    max-width: 900px;
    padding: 20px;
    z-index: 2;
    color: var(--light-text-color);
}

.page-b29-community__hero-title {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: var(--light-text-color);
    line-height: 1.2;
}

.page-b29-community__hero-description {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Buttons */
.page-b29-community__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-b29-community__btn--primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.page-b29-community__btn--primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-b29-community__btn--secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}

.page-b29-community__btn--secondary:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

.page-b29-community__btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-b29-community__btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-b29-community__btn--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-b29-community__cta-center {
    text-align: center;
    margin-top: 40px;
}

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

/* About Section */
.page-b29-community__about-section {
    background-color: var(--background-color);
    color: var(--dark-text-color);
}

.page-b29-community__about-section .page-b29-community__section-title {
    color: var(--dark-text-color);
}

.page-b29-community__about-section .page-b29-community__paragraph {
    color: var(--dark-text-color);
}

.page-b29-community__about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-b29-community__about-image-wrapper {
    text-align: center;
}

.page-b29-community__about-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-b29-community__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-b29-community__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: var(--light-text-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-b29-community__feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-b29-community__feature-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-b29-community__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--light-text-color);
}

.page-b29-community__feature-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* Download Guide Section */
.page-b29-community__download-guide-section {
    background-color: var(--background-color);
    color: var(--dark-text-color);
}

.page-b29-community__download-guide-section .page-b29-community__section-title,
.page-b29-community__download-guide-section .page-b29-community__section-subtitle {
    color: var(--dark-text-color);
}

.page-b29-community__download-guide-section .page-b29-community__paragraph {
    color: var(--dark-text-color);
}

.page-b29-community__download-guide-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-b29-community__download-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-b29-community__step-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-b29-community__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-b29-community__step-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--dark-text-color);
}

.page-b29-community__step-description {
    font-size: 1em;
    color: var(--dark-text-color);
}

.page-b29-community__download-cta {
    text-align: center;
    margin-top: 50px;
}

.page-b29-community__download-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-b29-community__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-b29-community__promotion-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: var(--light-text-color);
    transition: transform 0.3s ease;
}

.page-b29-community__promotion-card:hover {
    transform: translateY(-10px);
}

.page-b29-community__promotion-image {
    width: 100%;
    height: auto;
    max-width: 350px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-b29-community__promotion-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--light-text-color);
}

.page-b29-community__promotion-description {
    font-size: 1em;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page-b29-community__faq-section {
    background-color: var(--background-color);
    color: var(--dark-text-color);
}

.page-b29-community__faq-section .page-b29-community__section-title,
.page-b29-community__faq-section .page-b29-community__section-subtitle {
    color: var(--dark-text-color);
}

.page-b29-community__faq-section .page-b29-community__paragraph {
    color: var(--dark-text-color);
}

.page-b29-community__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-b29-community__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-b29-community__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--dark-text-color);
    transition: background-color 0.3s ease;
}

.page-b29-community__faq-question:hover {
    background-color: #e0e0e0;
}

.page-b29-community__faq-question-text {
    margin: 0;
    flex-grow: 1;
    color: var(--dark-text-color);
}

.page-b29-community__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.page-b29-community__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--dark-text-color);
}

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

.page-b29-community__faq-answer p {
    margin: 0;
    color: var(--dark-text-color);
}

/* Global Image Styles */
.page-b29-community img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* filter properties are strictly forbidden */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-b29-community__hero-title {
        font-size: 3.5em;
    }
    .page-b29-community__hero-description {
        font-size: 1.3em;
    }
    .page-b29-community__section-title {
        font-size: 2.8em;
    }
    .page-b29-community__about-grid {
        grid-template-columns: 1fr;
    }
    .page-b29-community__about-image-wrapper {
        order: -1; /* Image appears above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-b29-community {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-b29-community__container {
        padding: 0 15px;
    }
    .page-b29-community__section--padded {
        padding: 60px 0;
    }
    .page-b29-community__hero-section {
        height: 80vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by header */
    }
    .page-b29-community__hero-title {
        font-size: 2.5em;
    }
    .page-b29-community__hero-description {
        font-size: 1.1em;
    }
    .page-b29-community__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-b29-community__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-b29-community__btn--large {
        padding: 15px 25px;
    }
    .page-b29-community__section-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-b29-community__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-b29-community__features-grid,
    .page-b29-community__download-steps-grid,
    .page-b29-community__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-b29-community__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile specific image & video adaptations */
    .page-b29-community img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-b29-community video,
    .page-b29-community__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-b29-community__hero-video-wrapper,
    .page-b29-community__about-image-wrapper,
    .page-b29-community__download-cta,
    .page-b29-community__feature-card,
    .page-b29-community__promotion-card,
    .page-b29-community__video-section,
    .page-b29-community__video-container,
    .page-b29-community__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow for images/videos */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-b29-community__hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .page-b29-community__faq-question,
    .page-b29-community__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure proper color contrast for dark background */
.page-b29-community__about-section .page-b29-community__paragraph,
.page-b29-community__download-guide-section .page-b29-community__paragraph,
.page-b29-community__download-guide-section .page-b29-community__step-description,
.page-b29-community__download-guide-section .page-b29-community__step-title,
.page-b29-community__download-guide-section .page-b29-community__step-card,
.page-b29-community__faq-section .page-b29-community__paragraph,
.page-b29-community__faq-question,
.page-b29-community__faq-question-text,
.page-b29-community__faq-answer p {
    color: var(--dark-text-color);
}

.page-b29-community__about-section,
.page-b29-community__download-guide-section,
.page-b29-community__faq-section {
    background-color: var(--background-color);
}

.page-b29-community__faq-item {
    background-color: #f9f9f9;
}

.page-b29-community__faq-question {
    background-color: #f0f0f0;
}

.page-b29-community__btn--outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-b29-community__btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}