
/* =========================================================
   Al-Zahraa CMS V8.0 — Academic profile redesign
   ========================================================= */

.faculty-profile-v8-hero{
  position:relative;
  overflow:hidden;
  padding:54px 0;
  background:
    linear-gradient(110deg,rgba(4,31,72,.97),rgba(8,79,159,.86)),
    url("campus.jpg") center/cover no-repeat;
  color:#fff;
}

.faculty-profile-v8-hero::before{
  content:"";
  position:absolute;
  inset:auto -100px -180px auto;
  width:480px;
  height:480px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
}

.faculty-profile-v8-hero__content{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:28px;
  align-items:center;
}

.faculty-profile-v8-hero__portrait{
  width:210px;
  height:210px;
  overflow:hidden;
  border:8px solid rgba(255,255,255,.95);
  border-radius:28px;
  background:#e9f1fa;
  box-shadow:0 22px 55px rgba(0,0,0,.28);
}

.faculty-profile-v8-hero__portrait img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 18%;
}

.faculty-profile-v8-rank{
  min-height:30px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
}

.faculty-profile-v8-rank.rank-professor{
  background:#efe9ff;
  color:#6b36b4;
}

.faculty-profile-v8-rank.rank-associate{
  background:#e7f1ff;
  color:#145ca8;
}

.faculty-profile-v8-rank.rank-assistant{
  background:#e8f8ef;
  color:#187647;
}

.faculty-profile-v8-rank.rank-lecturer{
  background:#fff4df;
  color:#a15c00;
}

.faculty-profile-v8-rank.rank-teaching-assistant{
  background:#fdecef;
  color:#b13b53;
}

.faculty-profile-v8-rank.rank-default{
  background:#edf5ff;
  color:#126fd6;
}

.faculty-profile-v8-hero__identity h1{
  margin:11px 0 4px;
  font-size:clamp(34px,4vw,56px);
  line-height:1.25;
}

.faculty-profile-v8-hero__english{
  margin:0 0 15px;
  color:#bfd7f4;
  font-size:13px;
}

.faculty-profile-v8-hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-bottom:18px;
}

.faculty-profile-v8-hero__meta span{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  padding:0 11px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#f2f7ff;
  font-size:10px;
}

.faculty-profile-v8-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.faculty-profile-v8-hero__actions a,
.faculty-profile-v8-hero__actions button{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 17px;
  border:0;
  border-radius:10px;
  background:#fff;
  color:#0a4f9f;
  font:inherit;
  font-size:10px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
}

.faculty-profile-v8-hero__actions .is-secondary{
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.08);
  color:#fff;
}

.faculty-profile-v8-hero__actions button{
  border:1px solid rgba(255,255,255,.28);
  background:transparent;
  color:#fff;
}

.faculty-profile-v8{
  padding:42px 0 80px;
  background:#f6f9fd;
}

.faculty-profile-v8__layout{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.faculty-profile-v8__sidebar{
  position:sticky;
  top:18px;
  display:grid;
  gap:15px;
}

.faculty-profile-v8__contact-card,
.faculty-profile-v8__sidebar-note,
.faculty-profile-v8__section{
  border:1px solid #dfe7f0;
  border-radius:20px;
  background:#fff;
  box-shadow:0 14px 34px rgba(5,37,81,.07);
}

.faculty-profile-v8__contact-card{
  padding:22px;
}

.faculty-profile-v8__eyebrow{
  color:#126fd6;
  font-size:9px;
  font-weight:900;
}

.faculty-profile-v8__contact-card h2,
.faculty-profile-v8__section h2{
  margin:6px 0 16px;
  color:#082f68;
  font-size:21px;
}

.faculty-profile-v8__facts{
  display:grid;
  gap:9px;
}

.faculty-profile-v8__facts>div{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:12px;
  background:#f7faff;
}

.faculty-profile-v8__facts>div>span{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#eaf3ff;
}

.faculty-profile-v8__facts small,
.faculty-profile-v8__facts strong,
.faculty-profile-v8__facts a{
  display:block;
}

.faculty-profile-v8__facts small{
  margin-bottom:2px;
  color:#8a97a8;
  font-size:8px;
}

.faculty-profile-v8__facts strong,
.faculty-profile-v8__facts a{
  overflow:hidden;
  color:#2d4560;
  font-size:9.5px;
  text-decoration:none;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.faculty-profile-v8__sidebar-note{
  padding:18px;
  background:linear-gradient(145deg,#0a4f9f,#0b66c9);
  color:#fff;
}

.faculty-profile-v8__sidebar-note span{
  font-size:9px;
  font-weight:900;
}

.faculty-profile-v8__sidebar-note p{
  margin:6px 0 0;
  color:#dfeeff;
  font-size:10px;
  line-height:1.8;
}

.faculty-profile-v8__content{
  display:grid;
  gap:18px;
}

.faculty-profile-v8__tabs{
  position:sticky;
  top:10px;
  z-index:6;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding:10px;
  border:1px solid #dfe7f0;
  border-radius:15px;
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 25px rgba(5,37,81,.07);
  backdrop-filter:blur(12px);
}

.faculty-profile-v8__tabs a{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  padding:0 11px;
  border-radius:9px;
  color:#66778c;
  font-size:9.5px;
  font-weight:800;
  text-decoration:none;
}

.faculty-profile-v8__tabs a.is-active,
.faculty-profile-v8__tabs a:hover{
  background:#0a4f9f;
  color:#fff;
}

.faculty-profile-v8__section{
  scroll-margin-top:92px;
  padding:28px;
}

.faculty-profile-v8__section p{
  margin:0;
  color:#65768a;
  font-size:12.5px;
  line-height:2;
}

.faculty-profile-v8__stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.faculty-profile-v8__stats article{
  padding:18px;
  border:1px solid #dfe7f0;
  border-radius:16px;
  background:#fff;
  text-align:center;
  box-shadow:0 10px 26px rgba(5,37,81,.05);
}

.faculty-profile-v8__stats span,
.faculty-profile-v8__stats strong,
.faculty-profile-v8__stats small{
  display:block;
}

.faculty-profile-v8__stats span{
  font-size:22px;
}

.faculty-profile-v8__stats strong{
  margin-top:6px;
  color:#126fd6;
  font-size:26px;
}

.faculty-profile-v8__stats small{
  margin-top:3px;
  color:#708096;
  font-size:9px;
}

.faculty-profile-v8__timeline{
  display:grid;
  gap:14px;
}

.faculty-profile-v8__timeline article{
  position:relative;
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  gap:12px;
}

.faculty-profile-v8__timeline article:not(:last-child)::after{
  content:"";
  position:absolute;
  right:7px;
  top:20px;
  width:2px;
  height:calc(100% + 10px);
  background:#d9e8f7;
}

.faculty-profile-v8__timeline-dot{
  position:relative;
  z-index:2;
  width:15px;
  height:15px;
  margin-top:4px;
  border:4px solid #c8def5;
  border-radius:50%;
  background:#126fd6;
}

.faculty-profile-v8__timeline strong{
  color:#243d58;
  font-size:11.5px;
}

.faculty-profile-v8__timeline p{
  margin:4px 0 0;
  font-size:10px;
}

.faculty-profile-v8__timeline small{
  color:#8a97a8;
  font-size:8.5px;
}

.faculty-profile-v8__course-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.faculty-profile-v8__course-grid article{
  min-height:90px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  padding:15px;
  border:1px solid #e0e9f3;
  border-radius:14px;
  background:#f8fbff;
}

.faculty-profile-v8__course-grid span{
  font-size:20px;
}

.faculty-profile-v8__course-grid strong{
  color:#29415d;
  font-size:10px;
}

.faculty-profile-v8__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.faculty-profile-v8__chips span{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border-radius:999px;
  background:#edf5ff;
  color:#0a55ab;
  font-size:9.5px;
  font-weight:800;
}

.faculty-profile-v8__publication-list{
  display:grid;
  gap:10px;
}

.faculty-profile-v8__publication-list article{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:14px;
  border-radius:14px;
  background:#f7faff;
}

.faculty-profile-v8__publication-index{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#eaf3ff;
  color:#126fd6;
  font-size:9px;
  font-weight:900;
}

.faculty-profile-v8__publication-list strong{
  color:#29415d;
  font-size:11px;
}

.faculty-profile-v8__publication-list p{
  margin:4px 0 0;
  font-size:9.5px;
}

.faculty-profile-v8__publication-list small{
  color:#8a97a8;
  font-size:8.5px;
}

.faculty-profile-v8__empty{
  padding:15px !important;
  border:1px dashed #ccdae9;
  border-radius:12px;
  background:#f9fbfe;
  text-align:center;
}

@media(max-width:1050px){
  .faculty-profile-v8__layout{
    grid-template-columns:1fr;
  }

  .faculty-profile-v8__sidebar{
    position:static;
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:760px){
  .faculty-profile-v8-hero__content{
    grid-template-columns:1fr;
    text-align:center;
  }

  .faculty-profile-v8-hero__portrait{
    margin:auto;
  }

  .faculty-profile-v8-hero__meta,
  .faculty-profile-v8-hero__actions{
    justify-content:center;
  }

  .faculty-profile-v8__sidebar{
    grid-template-columns:1fr;
  }

  .faculty-profile-v8__stats{
    grid-template-columns:repeat(2,1fr);
  }

  .faculty-profile-v8__course-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .faculty-profile-v8-hero{
    padding:38px 0;
  }

  .faculty-profile-v8-hero__portrait{
    width:185px;
    height:185px;
  }

  .faculty-profile-v8{
    padding:28px 0 55px;
  }

  .faculty-profile-v8__stats{
    grid-template-columns:1fr;
  }

  .faculty-profile-v8__tabs{
    position:static;
  }
}


/* Courses V10.1 */
.faculty-profile-v8__course-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}
.faculty-course-card{
    display:flex;
    align-items:center;
    gap:15px;
    min-height:105px;
    padding:18px;
    border:1px solid #dfe9f4;
    border-radius:18px;
    background:linear-gradient(135deg,#ffffff,#f5f9ff);
    box-shadow:0 10px 24px rgba(8,47,104,.06);
    transition:.25s ease;
}
.faculty-course-card:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 30px rgba(8,47,104,.12);
}
.faculty-course-card__icon{
    width:52px;
    height:52px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#0a57ad;
    color:#fff;
    font-size:24px;
    flex-shrink:0;
}
.faculty-course-card__body span{
    display:block;
    color:#7b8da3;
    font-size:12px;
    margin-bottom:5px;
}
.faculty-course-card__body strong{
    color:#082f68;
    font-size:16px;
}
@media(max-width:900px){
 .faculty-profile-v8__course-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:600px){
 .faculty-profile-v8__course-grid{grid-template-columns:1fr;}
}


/* Research interests V10.2 */
.faculty-research-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.faculty-research-card{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:15px;
  min-height:104px;
  padding:18px 20px;
  border:1px solid #dce8f4;
  border-radius:18px;
  background:linear-gradient(135deg,#fff 0%,#f7fbff 100%);
  box-shadow:0 10px 25px rgba(8,47,104,.06);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.faculty-research-card::before{
  content:"";
  position:absolute;
  top:0;right:0;bottom:0;
  width:4px;
  background:linear-gradient(180deg,#0a57ad,#35a3df);
}
.faculty-research-card:hover{
  transform:translateY(-4px);
  border-color:#bfd7ef;
  box-shadow:0 16px 32px rgba(8,47,104,.11);
}
.faculty-research-card__icon{
  width:52px;height:52px;
  flex:0 0 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:linear-gradient(145deg,#0a57ad,#0d72ca);
  color:#fff;
  font-size:29px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(10,87,173,.18);
}
.faculty-research-card__body{min-width:0;flex:1}
.faculty-research-card__body span{
  display:block;
  margin-bottom:5px;
  color:#7b8da3;
  font-size:11px;
  font-weight:700;
}
.faculty-research-card__body strong{
  display:block;
  color:#082f68;
  font-size:15px;
  line-height:1.7;
}
.faculty-research-card__number{
  align-self:flex-start;
  color:#b7c7d9;
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
}
@media(max-width:760px){
  .faculty-research-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .faculty-research-card{padding:15px 16px;min-height:94px}
  .faculty-research-card__icon{width:46px;height:46px;flex-basis:46px;font-size:25px}
}
