/* Learner profile, shared avatars and account badges. */
.userbg {
  border-top-right-radius: .5rem!important;
  padding: .75rem!important;
  background: url(../images/profile-bg.jpg);
  background-size: cover;
}

.user-wrap {
  position: relative;
  height: 62px;
  width: 62px;
}

.user-wrap.home {
  margin-left: -10px;
  margin-right: 10px;
}

.user-wrap.bigger {
  height: 122px;
  width: 122px;
  margin: auto;
}

@media(max-width: 767.98px) {
  .user-wrap.home {
    display: none;
  }

}

.user-img {
  position: relative;
  height: 62px;
  width: 62px;
  background: url(../media/users/noimage.jpg);
  background-repeat: no-repeat;
  background-size: 100%;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  overflow: hidden;
}

.user-img.bigger {
  height: 122px;
  width: 122px;
}

@media(min-width: 768px) {
  .user-img.bigger {
    display: none;
  }

}

.img58 {
  position: relative;
  max-height: 58px;
}

.img120 {
  position: relative;
  max-height: 120px;
}

.verified-badge {
  background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2072%22%3E%3Cpath%20fill%3D%22none%22%20d%3D%22M0%200h64v72H0z%22%2F%3E%3Cpath%20fill%3D%22%231da1f2%22%20d%3D%22M3%2037.315c0%204.125%202.162%207.726%205.363%209.624-.056.467-.09.937-.09%201.42%200%206.103%204.72%2011.045%2010.546%2011.045%201.295%200%202.542-.234%203.687-.686C24.22%2062.4%2027.827%2064.93%2032%2064.93c4.174%200%207.782-2.53%209.49-6.213%201.148.45%202.39.685%203.69.685%205.826%200%2010.546-4.94%2010.546-11.045%200-.483-.037-.953-.093-1.42C58.83%2045.04%2061%2041.44%2061%2037.314c0-4.37-2.42-8.15-5.933-9.946.427-1.203.658-2.5.658-3.865%200-6.104-4.72-11.045-10.545-11.045-1.302%200-2.543.232-3.69.688-1.707-3.685-5.315-6.216-9.49-6.216-4.173%200-7.778%202.53-9.492%206.216-1.146-.455-2.393-.688-3.688-.688-5.827%200-10.545%204.94-10.545%2011.045%200%201.364.23%202.662.656%203.864C5.42%2029.163%203%2032.944%203%2037.314z%22%2F%3E%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22M17.87%2039.08l7.015%206.978c.585.582%201.35.873%202.116.873.77%200%201.542-.294%202.127-.883.344-.346%2015.98-15.974%2015.98-15.974%201.172-1.172%201.172-3.07%200-4.243-1.17-1.17-3.07-1.172-4.242%200l-13.87%2013.863-4.892-4.868c-1.174-1.168-3.074-1.164-4.242.01-1.168%201.176-1.163%203.075.01%204.244z%22%2F%3E%3C%2Fsvg%3E);
  height: 1.25em;
  width: 1.11111em;
  position: absolute;
  bottom: 0px;
  right: 0px;
}


.account-page.profile-page { display:block; padding-top:120px; }
.profile-card { max-width:850px; margin:0 auto 40px; padding:clamp(24px,5vw,52px); border:1px solid #cbdedd; border-radius:24px; background:#fff; color:#2d565e; }
.profile-card h1 { font-size:clamp(28px,4vw,40px); margin-bottom:28px; }
.profile-card h2 { margin:24px 0 18px; font-size:24px; }
.profile-card h3 { margin-top:28px; font-size:20px; }
.profile-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:24px; }
.profile-card label { display:flex; flex-direction:column; gap:8px; font-weight:500; }
.profile-card input { width:100%; padding:12px; border:1px solid #a6c6c5; border-radius:8px; background:#fff; color:#2d565e; }
.profile-card input:focus-visible { outline:3px solid #8bc4c0; outline-offset:2px; }
.profile-card input[type=file] { margin-top:10px; }
.profile-card .account-button { max-width:320px; margin:20px 0; }
.profile-card hr { margin:32px 0; border:0; border-top:1px solid #cbdedd; }
.profile-photo { border-radius:50%; object-fit:cover; margin-bottom:20px; }
.profile-remove { background:transparent; border:0; color:#336f74; text-decoration:underline; padding:12px; }
@media(max-width:600px) { .profile-fields { grid-template-columns:1fr; } }
.profile-card .account-success { background:#e8f5ef; color:#246249; }

.student-session .profile-card { background:rgba(255,255,255,.74); border-color:#fff; box-shadow:0 24px 70px #234e5217; }
@supports(backdrop-filter:blur(18px)) { .student-session .profile-card { backdrop-filter:blur(18px); } }
.settings-sections { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 28px; }
.settings-sections a { padding:8px 12px; border:1px solid #bdd5cf; border-radius:10px; background:#edf6f1; color:#2b555b; text-decoration:none; }
.profile-card [id^=settings-] { scroll-margin-top:110px; }
.profile-card select { width:100%; height:auto; min-height:48px; padding:12px; border:1px solid #a6c6c5; border-radius:8px; background:#fff; color:#2d565e; }
