body {
    background: #fafafa;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 32px 24px;
}
h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 32px;
    color: #262626;
}
.profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}
.profile-card {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 16px;
    width: 320px;
    padding: 24px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}
.profile-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.profile-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c13584;
    margin-bottom: 16px;
}
.profile-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #262626;
    margin-bottom: 4px;
}
.profile-role {
    color: #8e8e8e;
    font-size: 1rem;
    margin-bottom: 12px;
}
.profile-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}
.profile-stats div {
    text-align: center;
}
.profile-stats span {
    display: block;
    font-weight: bold;
    color: #262626;
}
.profile-bio {
    color: #444;
    font-size: 0.98rem;
    text-align: center;
    margin-bottom: 0;
}

/* Profile detail (profile.html) */
.profile-header {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 32px;
    border-bottom: 1px solid #dbdbdb;
    padding-bottom: 24px;
}
.profile-img-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c13584;
}
.profile-info {
    flex: 1;
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.post-card {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.post-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #eee;
}
.caption {
    padding: 8px 10px;
    font-size: 0.97rem;
    color: #262626;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    width: 100%;
}
