@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* ==========================================================
   Design tokens
   ========================================================== */
:root{
  --brand: #004961;
  --brand-700: #00364a;
  --brand-50: #e6f0f3;
  --sky: #4a90a8;
  --sun: #f9b116;
  --sun-50: #fff4dc;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --ink: #13313c;
  --muted: #5d7380;
  --line: #e2e8ee;
  --success: #1f8a5b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 42, 54, .05), 0 8px 24px rgba(16, 42, 54, .06);
  --header-h: 84px;
}

/* ==========================================================
   Base
   ========================================================== */
html, body{
  background: var(--bg);
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--ink);
}
body{
  font-size: 17px;
  line-height: 1.7;
}
a{ color: var(--brand); text-decoration: none; }
a:hover{ color: var(--brand-700); text-decoration: none; }
img{ max-width: 100%; }
h1, h2, h3, h4{ color: var(--brand); font-weight: 800; }

.eyebrow{
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 10px;
}
.eyebrow::before{
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--sun);
  vertical-align: middle;
  margin-left: 8px;
}

/* Buttons */
.btn{
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: .55rem 1.25rem;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-lg{ padding: .8rem 1.75rem; font-size: 1.05rem; }
.btn i{ font-size: .85em; margin-right: 6px; }
.btn-primary,
.btn-primary:disabled{
  color: #fff;
  background-color: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active{
  background-color: var(--brand-700);
  border-color: var(--brand-700);
}
.btn-primary:focus,
.btn-ghost:focus{ box-shadow: 0 0 0 .2rem rgba(0, 73, 97, .25); }
.btn-ghost{
  color: var(--brand);
  background: transparent;
  border: 1.5px solid var(--line);
}
.btn-ghost:hover{
  color: var(--brand);
  background: var(--brand-50);
  border-color: var(--brand-50);
}
.btn-success{ background: var(--success); border-color: var(--success); }
.btn-link{ color: var(--brand); font-weight: 500; }
.btn:disabled{ opacity: .5; cursor: not-allowed; }

/* ==========================================================
   Header
   ========================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .navbar{
  min-height: var(--header-h);
  padding-top: 8px;
  padding-bottom: 8px;
}
.site-header .navbar-brand{
  padding: 0;
  margin: 0 0 0 2rem;
}
.site-header .navbar-brand img{
  height: 64px;
  width: auto;
}
.site-nav{
  flex-direction: row;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.site-nav li a{
  display: block;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink);
}
.site-nav li a:hover{ background: var(--bg); color: var(--brand); }
.site-nav li.active a{ color: var(--brand); background: var(--brand-50); }
.site-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.navbar-toggler{
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--brand);
  padding: 8px 12px;
}
.user-progress{
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background: var(--sun-50);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.user-progress i{ color: var(--sun); margin-left: 4px; }
.user-progress .perc{ direction: ltr; display: inline-block; }
.user-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  white-space: nowrap;
}
.user-chip__avatar{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

@media (min-width: 992px) and (max-width: 1199px){
  .site-header .navbar-brand{ margin-left: 1rem; }
  .site-nav li a{ padding: 8px 10px; }
  .user-chip b{ display: none; }
}
@media (max-width: 991px){
  .site-header .navbar-brand img{ height: 52px; }
  .site-nav{ flex-direction: column; margin-top: 12px; }
  .site-actions{
    flex-wrap: wrap;
    margin: 12px 0 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer{
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.site-footer__grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.site-footer__logo{ height: 70px; width: auto; margin-bottom: 14px; }
.site-footer__about p{ max-width: 380px; margin: 0; }
.site-footer h4{
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 14px;
}
.site-footer ul{ list-style: none; padding: 0; margin: 0; }
.site-footer li{ margin-bottom: 8px; }
.site-footer li a{ color: var(--muted); }
.site-footer li a:hover{ color: var(--brand); }
.site-footer__contact i{ color: var(--sky); margin-left: 6px; font-size: 13px; }
.site-footer__bottom{
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  text-align: center;
}
@media (max-width: 767px){
  .site-footer__grid{ grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================
   Modals (login / register)
   ========================================================== */
.modal-content{
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(16, 42, 54, .2);
}
.modal-header{
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  position: relative;
}
.modal-title{ font-weight: 800; color: var(--brand); }
.modal-body{ padding: 20px 24px; }
.modal-footer{ border-top: 0; padding: 0 24px 20px; }
.close{
  position: absolute;
  left: 18px;
  top: 18px;
  margin: 0 !important;
  padding: 0 !important;
}
label{ font-weight: 500; color: var(--ink); font-size: 15px; }
.form-control{
  height: auto;
  padding: .65rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
}
.form-control:focus{
  border-color: var(--sky);
  box-shadow: 0 0 0 .2rem rgba(74, 144, 168, .2);
}
.error{ color: #c0392b; font-size: 14px; }
input.error{ border-color: #c0392b; }

/* ==========================================================
   Home
   ========================================================== */
.home-hero{
  min-height: calc(100vh - var(--header-h));
  padding: 40px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.home-hero__inner{
  display: flex;
  align-items: center;
}
.home-hero__text{
  flex: 0 0 42%;
  max-width: 42%;
}
.home-hero__text h1{
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.25;
  margin: 0 0 18px;
}
.home-hero__text h1 span{ color: var(--sky); }
.home-hero__lead{
  font-size: 19px;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 32px;
}
.home-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.home-hero__art{
  position: relative;
  flex: 0 0 62%;
  max-width: 62%;
  margin-left: -6%;
  aspect-ratio: 816 / 780;
}
.home-hero__art img{
  position: absolute;
  height: auto;
}
.home-hero__art .art-ring{ left: 6.25%; top: 9.74%; width: 81.5%; }
.home-hero__art .art-main{ left: 13.36%; top: 22.82%; width: 61.27%; }
.home-hero__art .art-dot-top{ left: 0; top: .38%; width: 23.4%; }
.home-hero__art .art-dot-bottom{ left: 72.55%; top: 71.28%; width: 27.45%; }

.home-steps{ padding: 80px 0 96px; background: var(--surface); }
.section-head{ text-align: center; margin-bottom: 44px; }
.section-head h2{ font-size: 34px; margin: 0; }
.steps{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step{
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  counter-increment: step;
}
.step::after{
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 18px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--line);
}
.step__icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--sun-50);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.step h3{ font-size: 21px; margin-bottom: 8px; }
.step p{ color: var(--muted); margin: 0; }

@media (max-width: 991px){
  .home-hero__inner{ flex-direction: column; }
  .home-hero__text{
    flex: none;
    max-width: 100%;
    text-align: center;
  }
  .home-hero__lead{ margin-left: auto; margin-right: auto; }
  .home-hero__actions{ justify-content: center; }
  .home-hero__art{
    flex: none;
    width: 100%;
    max-width: 520px;
    margin: 32px auto 0;
  }
  .steps{ grid-template-columns: 1fr; }
}

/* ==========================================================
   Generic page (page.php)
   ========================================================== */
.exam-body{
  min-height: 60vh;
  padding: 48px 0;
}
.pdetails{ text-align: justify; }

/* ==========================================================
   Course / exam page
   ========================================================== */
.exam-hero{
  padding: 44px 0 90px;
  background: linear-gradient(135deg, var(--brand) 0%, #0d6481 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.exam-hero::after{
  content: "";
  position: absolute;
  left: -80px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 3px solid rgba(249, 177, 22, .55);
}
.exam-hero .eyebrow{ color: #bfe0ea; }
.exam-hero__title{
  color: #fff;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 18px;
}
.exam-hero__meta{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.exam-hero__meta li{
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
}
.exam-hero__meta i{ color: var(--sun); margin-left: 6px; }

.exam-main{
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding-bottom: 72px;
}
.exam-card{
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.exam-card--narrow{ max-width: 560px; margin: 0 auto; }
.exam-card__title{
  font-size: 24px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.exam-card__title i{ color: var(--sun); margin-left: 6px; }

/* Intro (before starting) */
.exam-intro{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.exam-intro .pdetails{ color: #33505b; }
.exam-intro .pdetails p:empty,
.exam-intro .pdetails p:has(> br:only-child){ display: none; }
.exam-intro .pdetails ol{
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 18px 0;
}
.exam-intro .pdetails ol li{
  position: relative;
  counter-increment: item;
  padding: 12px 52px 12px 14px;
  margin-bottom: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  text-align: right;
}
.exam-intro .pdetails ol li::before{
  content: counter(item);
  position: absolute;
  right: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 29px;
  text-align: center;
}
.exam-intro__side{ position: sticky; top: calc(var(--header-h) + 20px); }
.start-card{ text-align: center; }
.start-card__art{
  width: 78%;
  margin: -8px auto 8px;
  display: block;
}
.start-card h3{ font-size: 22px; margin-bottom: 14px; }
.start-card__facts{
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: right;
  font-size: 15px;
  color: var(--muted);
}
.start-card__facts li{
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.start-card__facts i{ color: var(--sky); width: 22px; margin-left: 6px; }

/* Loading */
.preloader{
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 72px 20px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
}
.preloader .spinner{
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border: 4px solid var(--brand-50);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: alz-spin .8s linear infinite;
}
@keyframes alz-spin{ to{ transform: rotate(360deg); } }

/* Quiz */
.exam-quiz{ max-width: 920px; margin: 0 auto; padding: 0; overflow: hidden; }
.exam-quiz__head{
  padding: 20px 32px 0;
}
.exam-quiz__count{
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.exam-quiz__count b{ color: var(--brand); }
.exam-progress{
  height: 8px;
  border-radius: 8px;
  background: var(--brand-50);
  overflow: hidden;
}
.exam-progress span{
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--sun), #ffcf5c);
  margin-right: 0;
  margin-left: auto;
  transition: width .4s ease;
}

.qq{
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
}
.qq .question{ width: 100%; }
.qq .question > .badge{ display: none; }
.qq .question > .row{ margin: 0; }
.qq .question .col-12{ padding: 0; }
.qq .question .col-12 > div:first-child{
  font-size: 22px;
  font-weight: 800 !important;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 18px !important;
}
.playerMp3 iframe,
.playerMp3 .wp-video{
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0b1f27;
}
.playerMp3 > p{
  margin: 10px 0 0;
  font-size: 15px;
  color: #8a5a00;
  background: var(--sun-50);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}
.playerMp3 > p::before{
  content: "\f05a";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 8px;
}
.qq .alert-info{
  background: var(--brand-50);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--brand);
}
.qq .question ul{
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.qq .question ul li{ margin-bottom: 10px; }
.qq .question textarea{
  width: 100%;
  min-height: 140px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 17px;
}
.qq .question textarea:focus{ outline: 0; border-color: var(--sky); }

/* Answer options */
.checkcontainer{
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  padding: 14px 54px 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, background-color .15s;
  user-select: none;
}
.checkcontainer:hover{ border-color: var(--sky); background: #fafcfd; }
.checkcontainer input{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkmark{
  position: absolute;
  right: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border: 2px solid #b9c7d0;
  border-radius: 50%;
  background: #fff;
}
.checkmark::after{
  content: "";
  position: absolute;
  display: none;
  top: 5px;
  left: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
.checkcontainer input:checked ~ .checkmark{ background: var(--brand); border-color: var(--brand); }
.checkcontainer input:checked ~ .checkmark::after{ display: block; }
.checkcontainer:has(input:checked){ border-color: var(--brand); background: var(--brand-50); }
.checkcontainer input:focus-visible ~ .checkmark{ box-shadow: 0 0 0 .2rem rgba(0, 73, 97, .25); }

/* Timer (markup comes from includes/exams/functions.php) */
#timer{
  order: -1;
  align-self: flex-end;
  margin-bottom: 16px;
  background: var(--sun-50);
  border-radius: 999px;
  padding: 4px 16px;
}
#timer .container{
  display: flex;
  direction: ltr;
  gap: 12px;
  width: auto;
  max-width: none;
  padding: 0;
}
#timer .container > div{
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  text-align: center;
  line-height: 1.2;
}
#timer span{
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.exam-footer{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

/* Finished */
.result{
  text-align: center;
  padding: 40px 0 24px;
}
.result i{
  width: 84px;
  height: 84px;
  line-height: 84px;
  border-radius: 50%;
  background: #e3f4ec;
  color: var(--success);
  font-size: 36px;
  display: block;
  margin: 0 auto 18px;
}
.result h3{ font-size: 28px; margin-bottom: 6px; }
.result p{ color: var(--muted); font-size: 18px; }

@media (max-width: 991px){
  .exam-intro{ grid-template-columns: 1fr; }
  .exam-intro__side{ position: static; order: -1; }
  .start-card__art{ width: 50%; }
}
@media (max-width: 575px){
  .exam-card{ padding: 22px 18px; }
  .exam-quiz{ padding: 0; }
  .exam-quiz__head{ padding: 18px 18px 0; }
  .qq{ padding: 18px; }
  .exam-footer{ padding: 14px 18px; }
  .exam-footer .btn{ flex: 1; }
  .qq .question .col-12 > div:first-child{ font-size: 19px; }
}

/* Password protected course */
.post-password-form input[type=password]{
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 6px;
  width: 100%;
}
.post-password-form input[type=submit]{
  margin-top: 12px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px 22px;
  font-weight: 700;
}

/* Video shortcode */
.wp-video{ width: 100% !important; }
.wp-video video{
  width: 100% !important;
  height: auto !important;
  max-height: 520px;
}

.row.rtl{ direction: rtl; text-align: right; }

.result__note{ font-size: 15px !important; max-width: 440px; margin: 0 auto 20px; }

/* ==========================================================
   My certificates
   ========================================================== */
.cert-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.cert-card{ padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cert-card__preview{
  display: block;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.cert-card__preview img{
  display: block;
  width: 100%;
  height: auto;
  transition: opacity .15s;
}
.cert-card__preview:hover img{ opacity: .9; }
.cert-card__body{ padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cert-card__body h3{ font-size: 19px; margin-bottom: 6px; }
.cert-card__date{ color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.cert-card__date i{ color: var(--sky); margin-left: 6px; }
.cert-card__actions{ display: flex; gap: 10px; margin-top: auto; }
.cert-card__actions .btn{ flex: 1; }

.empty-state{
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
}
.empty-state__icon{
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--sun-50);
  color: var(--brand);
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.empty-state h2{ font-size: 24px; margin-bottom: 8px; }
.empty-state p{ color: var(--muted); margin-bottom: 24px; }

/* Resume an unfinished attempt */
.resume-box{
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
  text-align: right;
}
.resume-box__label{
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}
.resume-box__label b{ color: var(--brand); }
.restart-exam-btn{ color: var(--muted); font-size: 15px; }

/* User menu (header dropdown) */
.user-chip{
  border: 1.5px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.user-chip:hover,
.user-menu.show .user-chip{ background: var(--bg); border-color: var(--line); }
.user-chip:focus{ outline: 0; box-shadow: 0 0 0 .2rem rgba(0, 73, 97, .2); }
.user-chip__caret{ font-size: 11px; color: var(--muted); transition: transform .15s; }
.user-menu.show .user-chip__caret{ transform: rotate(180deg); }
.user-menu__list{
  left: 0;
  right: auto;
  min-width: 240px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(16, 42, 54, .12);
  text-align: right;
}
.user-menu__head{
  padding: 8px 12px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.user-menu__head b{ display: block; color: var(--ink); font-size: 15px; }
.user-menu__head span{ display: block; color: var(--muted); font-size: 13px; direction: ltr; text-align: right; }
.user-menu__list .dropdown-item{
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}
.user-menu__list .dropdown-item i{ width: 22px; color: var(--sky); margin-left: 6px; text-align: center; }
.user-menu__list .dropdown-item:hover,
.user-menu__list .dropdown-item:focus{ background: var(--bg); color: var(--brand); }
.user-menu__list .dropdown-item.active{ background: var(--brand-50); color: var(--brand); }
.user-menu__list .dropdown-divider{ border-color: var(--line); margin: 6px 0; }
.user-menu__list .user-menu__logout,
.user-menu__list .user-menu__logout i{ color: #b03a2e; }

/* Profile page */
.profile-layout{
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.profile-summary{ text-align: center; position: sticky; top: calc(var(--header-h) + 20px); }
.profile-summary__avatar{
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.profile-summary__name{ font-size: 20px; margin-bottom: 4px; }
.profile-summary__email{ color: var(--muted); font-size: 14px; margin-bottom: 18px; word-break: break-all; }
.profile-summary__links{ list-style: none; padding: 0; margin: 0; text-align: right; }
.profile-summary__links a{
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
}
.profile-summary__links a:hover{ background: var(--bg); color: var(--brand); }
.profile-summary__links i{ width: 22px; color: var(--sky); margin-left: 6px; }
.profile-forms{ display: grid; gap: 24px; }
.profile-form__hint{ color: var(--muted); font-size: 15px; margin-top: -6px; }
.profile-form__actions{ display: flex; justify-content: flex-end; }
.profile-form .form-row{ margin-left: -8px; margin-right: -8px; }
.profile-form .form-row > [class*=col-]{ padding-left: 8px; padding-right: 8px; }

@media (max-width: 991px){
  .profile-layout{ grid-template-columns: 1fr; }
  .profile-summary{ position: static; }
  .user-menu__list{ position: static !important; transform: none !important; float: none; width: 100%; box-shadow: none; }
}
