/* style/v99-community-forum.css */

/* Base styles for the page content, ensuring light text on dark background */
.page-v99-community-forum {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--background);
}

.page-v99-community-forum__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-v99-community-forum__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-v99-community-forum__text-center {
    text-align: center;
}

/* Hero Section */
.page-v99-community-forum__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
    overflow: hidden;
}

.page-v99-community-forum__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-v99-community-forum__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Slightly faded background image */
}

.page-v99-community-forum__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    color: var(--text-main);
    padding: 20px;
}

.page-v99-community-forum__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-v99-community-forum__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

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

.page-v99-community-forum__btn-primary,
.page-v99-community-forum__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-v99-community-forum__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-v99-community-forum__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-v99-community-forum__btn-secondary {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-v99-community-forum__btn-secondary:hover {
    background-color: var(--gold);
    color: var(--background);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* Introduction Section */
.page-v99-community-forum__introduction-section,
.page-v99-community-forum__guide-section,
.page-v99-community-forum__safety-section,
.page-v99-community-forum__cta-section {
    padding: 80px 0;
    background-color: var(--background);
    color: var(--text-main);
}

.page-v99-community-forum__introduction-section p,
.page-v99-community-forum__guide-section p,
.page-v99-community-forum__safety-section p,
.page-v99-community-forum__activities-section p,
.page-v99-community-forum__faq-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-v99-community-forum__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Features Section */
.page-v99-community-forum__features-section,
.page-v99-community-forum__activities-section,
.page-v99-community-forum__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    color: var(--text-main);
}

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

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

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

.page-v99-community-forum__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-v99-community-forum__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-v99-community-forum__feature-card p {
    font-size: 1em;
    color: var(--text-secondary);
}

/* Guide Section */
.page-v99-community-forum__ordered-list,
.page-v99-community-forum__unordered-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-v99-community-forum__ordered-list li,
.page-v99-community-forum__unordered-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-secondary);
}

.page-v99-community-forum__ordered-list li strong {
    color: var(--text-main);
}

.page-v99-community-forum__ordered-list li::before {
    content: counter(list-item) ". ";
    counter-increment: list-item;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: var(--primary-color);
}

.page-v99-community-forum__unordered-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2em;
    line-height: 1.2;
}

.page-v99-community-forum__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 800px; /* Constrain max width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page-v99-community-forum__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-v99-community-forum__video-caption {
    text-align: center;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* FAQ Section */
.page-v99-community-forum__faq-list {
    margin-top: 40px;
}

.page-v99-community-forum__faq-item {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-v99-community-forum__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

.page-v99-community-forum__faq-toggle {
    font-size: 1.5em;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.page-v99-community-forum__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.1em;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider);
}

/* Links */
.page-v99-community-forum a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-v99-community-forum a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Color Contrast Specifics */
.page-v99-community-forum__dark-bg {
    background-color: var(--background);
    color: var(--text-main);
}

.page-v99-community-forum__light-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-v99-community-forum__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

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

@media (max-width: 768px) {
    .page-v99-community-forum__hero-section,
    .page-v99-community-forum__introduction-section,
    .page-v99-community-forum__features-section,
    .page-v99-community-forum__guide-section,
    .page-v99-community-forum__activities-section,
    .page-v99-community-forum__safety-section,
    .page-v99-community-forum__faq-section,
    .page-v99-community-forum__cta-section {
        padding: 40px 0;
    }

    .page-v99-community-forum__hero-content {
        padding: 15px;
    }

    .page-v99-community-forum__main-title {
        font-size: clamp(1.8em, 8vw, 2.8em);
    }

    .page-v99-community-forum__hero-description {
        font-size: 1em;
    }

    .page-v99-community-forum__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-v99-community-forum__btn-primary,
    .page-v99-community-forum__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100%;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-v99-community-forum__container {
        padding: 0 15px;
    }

    .page-v99-community-forum__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-v99-community-forum p,
    .page-v99-community-forum li {
        font-size: 1em;
    }

    .page-v99-community-forum__features-grid {
        grid-template-columns: 1fr;
    }

    /* Image Responsive Adaption */
    .page-v99-community-forum img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-v99-community-forum__section,
    .page-v99-community-forum__card,
    .page-v99-community-forum__container,
    .page-v99-community-forum__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    
    /* Video Responsive Adaption */
    .page-v99-community-forum video,
    .page-v99-community-forum__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-v99-community-forum__video-section {
        padding-top: 10px !important; /* Small top padding for video section on mobile */
    }

    .page-v99-community-forum__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-v99-community-forum__faq-answer {
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-v99-community-forum__main-title {
        font-size: clamp(1.5em, 9vw, 2.2em);
    }

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

/* Custom Colors from Design System */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}