/* style/community-forum.css */

/* Base Styles for the page */
.page-community-forum {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000000; /* Body background is black */
}

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

.page-community-forum__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-community-forum__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-community-forum__hero-section {
    position: relative;
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-community-forum__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0;
    font-weight: 900;
}

.page-community-forum__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #ffffff;
}

.page-community-forum__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-community-forum__btn-primary,
.page-community-forum__btn-secondary {
    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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-community-forum__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-community-forum__btn-primary:hover {
    background-color: #1a7fb2;
    border-color: #1a7fb2;
}

.page-community-forum__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-community-forum__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-community-forum__hero-image-wrapper {
    margin-top: 40px;
}

.page-community-forum__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    max-width: 1000px;
    margin: 0 auto;
}

/* About Forum Section */
.page-community-forum__about-forum-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

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

.page-community-forum__card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-community-forum__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-community-forum__card-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-community-forum__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 50px;
    border-radius: 10px;
    object-fit: cover;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Discussion Areas Section */
.page-community-forum__discussion-areas-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #f0f0f0;
}

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

.page-community-forum__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-community-forum__feature-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-community-forum__feature-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-community-forum__feature-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* How to Join Section */
.page-community-forum__how-to-join-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-community-forum__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-community-forum__list-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
}

.page-community-forum__list-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-community-forum__list-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-community-forum__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Why Join Section */
.page-community-forum__why-join-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #f0f0f0;
}

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

.page-community-forum__advantage-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.page-community-forum__advantage-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-community-forum__advantage-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

/* FAQ Section */
.page-community-forum__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-community-forum__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-community-forum__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-community-forum__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.page-community-forum__faq-question::-webkit-details-marker {
    display: none;
}

.page-community-forum__faq-item summary {
    list-style: none;
}

.page-community-forum__faq-item summary::marker {
    display: none;
}

.page-community-forum__faq-qtext {
    flex-grow: 1;
    color: #26A9E0;
}

.page-community-forum__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-community-forum__faq-item[open] .page-community-forum__faq-toggle {
    transform: rotate(45deg);
}

.page-community-forum__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.03);
}

/* Call to Action Bottom Section */
.page-community-forum__cta-bottom-section {
    padding: 80px 0;
    background-color: #000000;
    text-align: center;
    color: #ffffff;
}

.page-community-forum__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
    margin-top: 30px;
}

.page-community-forum__cta-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 50px;
    border-radius: 10px;
    object-fit: cover;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-community-forum__hero-title {
        font-size: 3em;
    }
    .page-community-forum__hero-description {
        font-size: 1.2em;
    }
    .page-community-forum__section-title {
        font-size: 2em;
    }
    .page-community-forum__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-community-forum__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-community-forum__hero-title {
        font-size: 2.5em;
    }
    .page-community-forum__hero-description {
        font-size: 1.1em;
    }

    .page-community-forum__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-community-forum__btn-primary,
    .page-community-forum__btn-secondary,
    .page-community-forum a[class*="button"],
    .page-community-forum 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-community-forum__cta-buttons,
    .page-community-forum__button-group,
    .page-community-forum__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-community-forum__hero-image,
    .page-community-forum__image-full-width,
    .page-community-forum__feature-image,
    .page-community-forum__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-community-forum__section,
    .page-community-forum__card,
    .page-community-forum__container,
    .page-community-forum__about-forum-section,
    .page-community-forum__discussion-areas-section,
    .page-community-forum__how-to-join-section,
    .page-community-forum__why-join-section,
    .page-community-forum__faq-section,
    .page-community-forum__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-community-forum__content-grid,
    .page-community-forum__features-grid,
    .page-community-forum__steps-list,
    .page-community-forum__advantages-grid {
        grid-template-columns: 1fr;
    }

    .page-community-forum__section-title {
        font-size: 1.8em;
    }

    .page-community-forum__faq-qtext {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-community-forum__hero-title {
        font-size: 2em;
    }
    .page-community-forum__hero-description {
        font-size: 1em;
    }
    .page-community-forum__section-title {
        font-size: 1.6em;
    }
    .page-community-forum__btn-large {
        padding: 15px 25px;
        font-size: 1em;
    }
}