:root {
    --bg-main: #000000;
    --bg-card: #0d1117;
    --accent: #27d494;
    --border: #30363d;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.container { max-width: 1100px; width: 100%; }

/* Header & Branding */
.header { margin-bottom: 50px; }
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    transition: 0.3s;
}
.back-btn:hover { color: var(--accent); transform: translateX(-5px); }
.brand-wrapper { display: flex; align-items: center; gap: 15px; }
.brand-logo { width: 55px; height: 55px; border-radius: 12px; }
.brand-title h1 { font-size: 2rem; margin: 0; font-weight: 800; }
.brand-title h1 span { color: var(--accent); }

/* Community Cards Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.comm-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.comm-card:hover {
    transform: translateY(-10px);
    border-color: var(--card-color);
    box-shadow: 0 10px 40px -10px var(--card-glow);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.card-top i {
    font-size: 2.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.comm-card h3 {
    font-size: 1.4rem;
    margin: 0 0 10px;
}

.comm-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.join-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
}

.join-btn span {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.comm-card:hover .join-btn span {
    background: var(--card-color);
    color: #000;
    transform: translateX(5px);
}

/* Footer */

.footer { margin-top: 80px; text-align: center; opacity: 0.3; font-size: 0.8rem; }

/* Back Icon Button Styling */
.back-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #161b22; /* පේජ් එකට වඩා පොඩ්ඩක් තද පාටක් */
    color: #4ade80; /* ඔයාගේ Mint Green පාට */
    border-radius: 50%; /* රවුම් බටන් එකක් */
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid #30363d;
    margin-bottom: 30px; /* පල්ලෙහයින් තියෙන Content එකට ඉඩ තියන්න */
}

/* Mouse එක උඩට ගියාම වෙනස් වෙන විදිහ */
.back-icon-btn:hover {
    background-color: #4ade80;
    color: #05070a; /* Background එකේ කළු පාට */
    transform: translateX(-5px); /* වමට පොඩ්ඩක් මූව් වෙනවා */
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}
