*{box-sizing:border-box}

body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#fff;
    color:#111827;
}

#profiles{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    padding:20px;
    max-width:1250px;
    margin:auto;
}

.profile-card{
    min-height:285px;
    background:#fff;
    border:1px solid #dfe5ec;
    border-radius:28px;
    padding:25px;
    box-shadow:0 3px 8px rgba(0,0,0,.03);
}

.profile-top{
    display:flex;
    align-items:center;
    gap:20px;
}

.avatar-wrapper{
    position:relative;
    width:78px;
    height:78px;
    flex-shrink:0;
}

.avatar-wrapper img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:18px;
}

.online-dot{
    position:absolute;
    width:21px;
    height:21px;
    background:rgb(40, 250, 19);
    border:3px solid white;
    border-radius:50%;
    right:-4px;
    bottom:-3px;
}

.name{
    font-size:22px;
    font-weight:800;
}

.age{
    font-size:14px;
    color:#91a0b6;
}

.location{
    display:flex;
    gap:8px;
    margin-top:12px;
}

.location small{
    color:#65748b;
    font-weight:700;
}

.divider{
    height:1px;
    background:#edf0f4;
    margin:25px 0;
}

.status-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.typing{
    color:#20bd61;
    font-size:13px;
    font-weight:800;
}

.looking{
    color:#94a3b8;
    font-size:13px;
    font-weight:800;
}

.active{
    padding:5px 11px;
    border:1px solid #ffb98d;
    border-radius:7px;
    background:#fff5ef;
    color:#ff6b19;
    font-size:12px;
    font-weight:800;
}

.buttons{
    display:flex;
    gap:15px;
}

.teach-btn{
    flex:1;
    height:50px;
    border:0;
    border-radius:15px;
    background:rgb(9, 130, 25);
    color:white;
    font-weight:900;
    cursor:pointer;
    text-decoration: none;
    
}

.chat-btn{
    width:60px;
    height:50px;
    border:0;
    border-radius:15px;
    background:#ead4b4;
    cursor:pointer;
}

@media(max-width:900px){
    #profiles{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:600px){
    #profiles{grid-template-columns:1fr;padding:15px}
}