/* === COMMUNITY PAGE STYLES === */
/* (Add these styles to the bottom of your existing style.css) */

/* --- 2. Hero Section for Community Page --- */
#hero-community {
      background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('image/comm-ban.jpg') no-repeat center center/cover;

}
.color1 {
    color: #ff7675;
}
.color2 {
    color: #74b9ff;
}
.color3 {
    color: #55efc4;
}
.color4 {
    color: #a29bfe;
}
/* --- 3. Stats Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.stat-item i {
    font-size: 3rem;
    color: var(--accent-color);
}
.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 10px 0;
}

/* --- 5. Tips Hub (Tabs) --- */
.tabs-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.tab-buttons {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}
.tab-button {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    transition: color 0.3s ease;
}
.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.tab-button.active {
    color: var(--primary-color);
}
.tab-button.active::after {
    width: 100%;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- 7. Live Feed --- */
.feed-container {
    max-width: 700px;
    margin: 0 auto;
}
.feed-post {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border-left: 5px solid var(--secondary-color);
}
.feed-post small {
    color: #999;
}

/* --- 8. Top Contributors --- */
.contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.contributor-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}
.contributor-card h4 {
    color: var(--dark-color);
}

/* --- 9. Event Calendar --- */
.event-calendar {
    max-width: 800px;
    margin: 0 auto;
}
.event-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}
.event-date {
    flex-shrink: 0;
    background: var(--accent-color);
    color: #fff;
    border-radius: var(--border-radius);
    width: 70px;
    text-align: center;
    padding: 10px;
    font-weight: 700;
}
.event-date span {
    display: block;
    font-size: 2rem;
}
.event-details h4 {
    color: var(--dark-color);
}

/* --- 10. Forums Grid --- */
.forums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.forum-card {
    background: var(--light-color);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    border-bottom: 5px solid var(--forum-color);
    transition: transform 0.3s ease;
}
.forum-card:hover {
    transform: translateY(-5px);
}
.forum-card i {
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--forum-color);
}


/* --- 11. Accordion --- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: 20px;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}
.accordion-header:hover {
    background-color: #f9f9f9;
}
.accordion-header::after {
    content: '\f078'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}
.accordion-header.active::after {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-content p {
    padding: 0 20px 20px;
    margin: 0;
}

/* --- 12 & 13. Subtitles & Centered CTA --- */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: -30px auto 40px;
}
.text-center {
    text-align: center;
}