/* community.css */

/* GENERAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(120deg, #f5f7fa, #c3cfe2);
    color: #333;
    line-height: 1.6;
}

/* HEADER */
.community-header {
    text-align: center;
    padding: 50px 20px 30px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    animation: fadeInDown 1s ease forwards;
}

.community-header .logo {
    width: 200px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: bounce 2s infinite;
}

.community-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.community-header p {
    font-size: 1.2rem;
}

/* COMMUNITY INTRO */
.community-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 40px;
    background-color: #fff;
    border-radius: 15px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.community-intro .intro-text {
    flex: 1 1 400px;
    animation: fadeInLeft 1s ease forwards;
}

.community-intro .intro-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2575fc;
}

.community-intro .intro-text p {
    font-size: 1rem;
    line-height: 1.8;
}

.community-intro .intro-image {
    flex: 1 1 400px;
    text-align: center;
    animation: fadeInRight 1s ease forwards;
}

.community-intro .intro-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* LEADERSHIP TEAM */
.member-highlights {
    text-align: center;
    padding: 60px 20px;
    background: #f0f4f8;
}

.member-highlights h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #6a11cb;
}

.member-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.member-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease forwards;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.member-card img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #6a11cb;
}

.member-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2575fc;
}

.member-card p {
    font-size: 0.9rem;
    color: #555;
}

/* COMMUNITY GROUPS */
.community-groups {
    text-align: center;
    padding: 60px 20px;
}

.community-groups h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #6a11cb;
}

.groups-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.group-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.group-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.group-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2575fc;
}

.group-card p {
    font-size: 0.9rem;
    color: #555;
}

/* CTA TO DASHBOARD */
.community-cta {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    animation: fadeIn 1.5s ease forwards;
}

.community-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.community-cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.join-btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    color: #fff;
    background-color: #ff5f6d;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.join-btn:hover {
    background-color: #ffc371;
    color: #333;
    transform: translateY(-5px);
}

/* FOOTER */
.community-footer {
    text-align: center;
    padding: 40px 20px;
    background: #2575fc;
    color: #fff;
}

/* ANIMATIONS */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .community-intro {
        flex-direction: column;
    }
    .member-grid, .groups-grid {
        flex-direction: column;
        align-items: center;
    }
}