/* style/community.css */

/* Variables for colors and fonts */
:root {
    --page-community-primary-color: #0A2342;
    --page-community-secondary-color: #F0A500;
    --page-community-text-light: #FFFFFF;
    --page-community-text-dark: #333333;
    --page-community-background-light: #F8F8F8;
    --page-community-background-dark: #0A2342;
    --page-community-accent-light: #f5dcbd; /* Complementary to primary */
    --page-community-accent-dark: #a87300; /* Darker shade of secondary */
}

.page-community {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-community-text-dark);
    background-color: var(--page-community-background-light);
}

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

.page-community__section-title {
    font-size: 2.5em;
    color: var(--page-community-primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-community__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-community-secondary-color);
    border-radius: 2px;
}

.page-community__section-description {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-community__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
}

.page-community__btn--primary {
    background-color: var(--page-community-secondary-color);
    color: var(--page-community-primary-color);
    border: 2px solid var(--page-community-secondary-color);
}

.page-community__btn--primary:hover {
    background-color: var(--page-community-accent-dark);
    border-color: var(--page-community-accent-dark);
    color: var(--page-community-text-light);
}

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

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

.page-community__btn--link {
    background-color: transparent;
    color: var(--page-community-primary-color);
    border: none;
    padding: 0;
    text-decoration: underline;
    font-weight: normal;
}

.page-community__btn--link:hover {
    color: var(--page-community-secondary-color);
}

.page-community__link {
    color: var(--page-community-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-community__link:hover {
    color: var(--page-community-secondary-color);
    text-decoration: underline;
}

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

.page-community__keyword {
    color: var(--page-community-primary-color);
    font-weight: bold;
}

/* Hero Section */
.page-community__hero {
    background: linear-gradient(135deg, var(--page-community-background-dark) 0%, #1A3B65 100%); /* Darker shade of primary */
    color: var(--page-community-text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-community__hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-community__hero .page-community__btn {
    font-size: 1.2em;
    padding: 15px 35px;
}

/* Intro Section */
.page-community__intro {
    padding: 80px 0;
    background-color: var(--page-community-background-light);
}

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

@media (min-width: 768px) {
    .page-community__intro-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-community__intro-image {
        order: 2;
    }
    .page-community__intro-text {
        order: 1;
        text-align: left;
    }
}

.page-community__intro-text p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: #444;
}

.page-community__intro-text .page-community__btn {
    margin-top: 20px;
}

/* Benefits Section */
.page-community__benefits {
    padding: 80px 0;
    background-color: var(--page-community-background-dark);
    color: var(--page-community-text-light);
}

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

.page-community__benefits .page-community__section-title::after {
    background-color: var(--page-community-secondary-color);
}

.page-community__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-community__benefit-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-community__benefit-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-community__benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: invert(100%) brightness(1.5);
}

.page-community__benefit-title {
    font-size: 1.5em;
    color: var(--page-community-secondary-color);
    margin-bottom: 15px;
}

.page-community__benefit-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* Sections Grid (Detail Pages List) */
.page-community__sections {
    padding: 80px 0;
    background-color: var(--page-community-background-light);
}

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

.page-community__section-item {
    background-color: var(--page-community-text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-community__section-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-community__section-item-title {
    font-size: 1.6em;
    color: var(--page-community-primary-color);
    margin-bottom: 15px;
}

.page-community__section-item-description {
    font-size: 1em;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Community Guidelines */
.page-community__guidelines {
    padding: 80px 0;
    background-color: #E8F0F7; /* Light blue-grey, soft background */
}

.page-community__guidelines-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-community__guidelines-list li {
    background-color: var(--page-community-text-light);
    margin-bottom: 15px;
    padding: 20px 25px;
    border-left: 5px solid var(--page-community-secondary-color);
    border-radius: 5px;
    font-size: 1.05em;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-community__guidelines-list li strong {
    color: var(--page-community-primary-color);
}

.page-community__guidelines-footer {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 1em;
}

/* CTA Section */
.page-community__cta {
    background: var(--page-community-primary-color);
    color: var(--page-community-text-light);
    padding: 80px 0;
    text-align: center;
}

.page-community__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-community__cta-title {
    font-size: 2.8em;
    color: var(--page-community-text-light);
    margin-bottom: 20px;
}

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

.page-community__cta-buttons .page-community__btn {
    margin: 0 10px;
    min-width: 180px;
    font-size: 1.1em;
    padding: 14px 30px;
}

.page-community__cta-buttons .page-community__btn--secondary {
    border-color: var(--page-community-text-light);
    color: var(--page-community-text-light);
}

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

/* FAQ Section */
.page-community__faq {
    padding: 80px 0;
    background-color: var(--page-community-background-light);
}

.page-community__faq-item {
    background-color: var(--page-community-text-light);
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

.page-community__faq-item:last-child {
    border-bottom: none;
}

.page-community__faq-question {
    font-size: 1.3em;
    color: var(--page-community-primary-color);
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-community__faq-answer {
    font-size: 1.05em;
    color: #555;
    padding-left: 15px;
    display: block; /* Ensure it's visible by default for static content */
}

/* Contact Section */
.page-community__contact {
    padding: 60px 0;
    background-color: #F0F5FA; /* A lighter shade of blue for variety */
    text-align: center;
}

.page-community__contact .page-community__section-description {
    margin-bottom: 30px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-community__hero-title {
        font-size: 3em;
    }
    .page-community__section-title {
        font-size: 2em;
    }
    .page-community__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-community__hero {
        padding: 80px 0;
    }
    .page-community__hero-title {
        font-size: 2.5em;
    }
    .page-community__hero-subtitle {
        font-size: 1.1em;
    }
    .page-community__intro, .page-community__benefits, .page-community__sections, .page-community__guidelines, .page-community__cta, .page-community__faq, .page-community__contact {
        padding: 60px 0;
    }
    .page-community__intro-grid {
        grid-template-columns: 1fr;
    }
    .page-community__intro-image {
        order: unset; /* Reset order for mobile */
    }
    .page-community__intro-text {
        order: unset; /* Reset order for mobile */
        text-align: center;
    }
    .page-community__benefits-grid, .page-community__sections-grid {
        grid-template-columns: 1fr;
    }
    .page-community__btn {
        width: 100%;
        margin-bottom: 15px;
    }
    .page-community__cta-buttons .page-community__btn {
        margin: 0 auto 15px auto;
    }
}

@media (max-width: 480px) {
    .page-community__hero-title {
        font-size: 2em;
    }
    .page-community__hero-subtitle {
        font-size: 1em;
    }
    .page-community__section-title {
        font-size: 1.8em;
    }
    .page-community__cta-title {
        font-size: 1.8em;
    }
    .page-community__btn {
        padding: 10px 20px;
    }
}