:root {
  --cream: #f7f4ea;
  --navy: #072632;
  --navy-800: var(--navy);
  --stripe-color: rgba(7, 38, 50, 0.03);
  --paper: #fdfcf7;
  --gold: #c8bb97;
  --radius: 16px;
  --gutter: 14px;
  --font: "Tajawal", sans-serif;
  --font-heading: "Cairo", sans-serif
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading)
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  min-height: 100vh;
  background: repeating-linear-gradient(145deg, var(--stripe-color) 0 1px, transparent 1px 8px), linear-gradient(180deg, var(--cream) 0%, var(--cream) 100%);
  color: var(--navy);
  font-family: var(--font)
}

button,
a {
  -webkit-tap-highlight-color: transparent
}

button {
  font: inherit;
  cursor: pointer
}

a {
  color: inherit;
  text-decoration: none
}

button {
  color: inherit
}

button:focus-visible,
a:focus-visible,
.hero:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px
}

img {
  display: block;
  max-width: 100%
}

.page-shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--gutter)
}

.site-header {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--navy);
  color: var(--paper);
  padding: 20px 26px;
  border-radius: var(--radius);
  position: relative;
  z-index: 5
}

.brand,
.affiliation {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0
}

.brand-logo {
  width: 54px;
  height: 68px;
  object-fit: contain
}

.brand-title {
  width: 192px;
  height: auto
}



.affiliation-logo {
  width: 43px;
  height: 51px;
  object-fit: contain
}

.affiliation-title {
  width: 138px;
  height: auto
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px
}

.main-nav a,
.main-nav button {
  position: relative;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 0;
  border: 0;
  background: none;
  color: #e3e7e4;
  transition: color .2s
}

.main-nav a[aria-current] {
  color: var(--gold)
}

.main-nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  inset-inline: 25%;
  height: 2px;
  background: var(--gold)
}

.main-nav button:hover {
  color: var(--gold)
}

.menu-toggle {
  display: none
}

main {
  margin-top: var(--gutter)
}

.hero {
  height: 720px;
  height: clamp(560px, calc(100svh - 150px), 720px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--paper);
  touch-action: pan-y
}

.slides,
.slide,
.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
  pointer-events: none
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1
}

.slide-image {
  object-fit: cover;
  object-position: center 43%;
  transform: scale(1.025);
  animation: hero-image-drift 7s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.slide.is-active .slide-image {
  animation-play-state: running;
}

@keyframes hero-image-drift {
  from { transform: scale(1.025) translate(0, 0); }
  to { transform: scale(1.085) translate(-.6%, .35%); }
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(270deg, rgba(29, 30, 27, .76) 0%, rgba(29, 30, 27, .58) 30%, rgba(29, 30, 27, .30) 52%, rgba(29, 30, 27, .06) 74%, transparent 100%),
    linear-gradient(0deg, rgba(24, 26, 23, .64) 0%, rgba(24, 26, 23, .12) 35%, transparent 70%);
}

.slide-content {
  position: absolute;
  inset-inline-start: clamp(24px, 4.4vw, 64px);
  bottom: 134px;
  z-index: 1;
  max-width: 690px;
  padding-inline-end: 24px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .32)
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #eee7d7
}

.eyebrow>span {
  width: 24px;
  height: 1px;
  background: var(--gold)
}

h2 {
  margin: 18px 0;
  font-size: clamp(34px, 3.55vw, 51px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -1.2px
}

.slide-content p {
  font-size: 15px;
  line-height: 2;
  max-width: 560px;
  margin: 0 0 26px;
  color: #f0eee8
}

.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  min-height: 50px;
  transition: background .2s, border-color .2s
}

.read-more:hover {
  background: var(--gold);
  border-color: var(--gold)
}

.read-more span {
  font: 24px sans-serif;
  transform: rotate(-90deg)
}


.edition {
  font-size: 10px;
  letter-spacing: 2px
}

.hero-bottom {
  position: absolute;
  bottom: 27px;
  inset-inline: clamp(24px, 4.4vw, 64px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 20px;
}

.slide-selectors {
  display: flex;
  gap: 12px
}

.slide-selector {
  display: grid;
  place-items: center;
  width: 52px;
  padding: 5px 0;
  border: 0;
  background: none;
  color: #d6d6d3;
  text-align: start;
  font-size: 11px;
  min-height: 44px
}

.slide-selector i {
  height: 2px;
  width: 100%;
  background: #ffffff40;
  transition: background .3s
}

.slide-selector.is-active {
  color: var(--paper)
}

.slide-selector.is-active i {
  background: var(--gold)
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px
}

.icon-button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff50;
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  display: grid;
  place-items: center;
  transition: background-color .45s cubic-bezier(.22, 1, .36, 1),
    border-color .45s cubic-bezier(.22, 1, .36, 1)
}

.icon-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  background: #ffffff20
}

.control-divider {
  height: 20px;
  width: 1px;
  background: #ffffff40;
  margin-inline: 8px
}

.pause-button {
  border-color: transparent;
  font-size: 18px
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 20px;
  z-index: 20;
  padding: 12px;
  background: var(--paper);
  border-radius: var(--radius)
}

.skip-link:focus {
  top: 18px
}

dialog {
  width: min(600px, calc(100% - 28px));
  padding: 44px 32px 28px;
  border: 1px solid #d9d5c8;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy)
}

dialog::backdrop {
  background: #072632b3
}

dialog h2 {
  font-size: 27px;
  letter-spacing: 0
}

dialog p {
  font-size: 15px;
  line-height: 2
}

.dialog-label,
.preview-note {
  color: #617075;
  font-size: 12px !important
}

.dialog-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  background: none;
  border: 0;
  font-size: 28px;
  width: 40px;
  height: 40px
}

@media(min-width:1441px) {
  .main-nav {
    gap: 24px
  }
}

@media(max-width:1250px) {
  .site-header {
    gap: 18px;
    padding-inline: 20px
  }

  .brand-title {
    width: 160px
  }

  .affiliation-title {
    width: 110px
  }

  .main-nav {
    gap: 14px
  }

  .main-nav a,
  .main-nav button {
    font-size: 12px
  }

  .affiliation {
    padding-inline-start: 16px
  }
}

@media(max-width:1050px) {
  .site-header {
    flex-wrap: wrap;
    min-height: 98px
  }

  .brand-title {
    width: 190px
  }

  .affiliation {
    margin-inline-start: auto;
    border: 0;
    padding: 0
  }

  .affiliation-title {
    width: 145px
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff40;
    border-radius: var(--radius);
    background: none;
    padding: 11px;
    order: 3
  }

  .menu-toggle span {
    height: 1px;
    width: 100%;
    background: var(--paper);
    transition: transform .3s ease, opacity .3s ease
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg)
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg)
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 10px;
    border: 1px solid #ffffff25;
    border-radius: var(--radius);
    background: var(--navy);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
    max-height: min(440px, calc(100svh - 140px));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0)
  }

  .main-nav a,
  .main-nav button {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: start;
    font-size: 14px;
    line-height: 1.5;
    transition: color .3s ease, background-color .3s ease
  }

  .main-nav :is(a, button):is(:hover, :focus-visible),
  .main-nav a[aria-current] {
    background: #ffffff0d;
    color: var(--gold)
  }

  .main-nav a[aria-current]::after {
    inset-inline-start: 0;
    inset-inline-end: auto;
    top: 12px;
    bottom: 12px;
    width: 3px;
    height: auto;
    border-radius: 3px
  }

  .hero {
    height: clamp(560px, calc(100svh - 142px), 720px)
  }
}

@media(max-width:600px) {
  .site-header {
    padding: 16px 14px;
    gap: 12px
  }

  .brand {
    gap: 8px
  }

  .site-header .brand-logo {
    width: 52px;
    height: 68px
  }

  .site-header .brand-title {
    width: clamp(124px, 40vw, 160px)
  }

  .affiliation {
    gap: 6px
  }

  .affiliation-logo {
    width: 29px;
    height: 37px
  }

  .affiliation-title {
    width: 86px
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-shrink: 0
  }

  .main-nav {
    justify-content: flex-start;
    gap: 4px
  }

  .hero {
    height: 650px
  }


  .edition {
    display: none
  }

  .slide-content {
    bottom: 140px;
    inset-inline-start: 24px;
    max-width: 100%
  }

  .slide-content h2 {
    font-size: 34px;
    line-height: 1.6;
    letter-spacing: -.8px
  }

  .slide-content p {
    font-size: 13px;
    line-height: 2
  }

  .eyebrow {
    font-size: 11px;
    gap: 9px
  }

  .slide-image {
    object-position: 57% center
  }

  .hero-bottom {
    bottom: 22px;
    gap: 12px;
    inset-inline: 24px
  }

  .slide-selectors {
    gap: 8px
  }

  .slide-selector {
    width: 28px
  }

  .slider-controls {
    gap: 8px
  }

  .icon-button {
    width: 44px;
    height: 44px
  }

  .control-divider {
    margin-inline: 2px
  }

  .read-more {
    padding: 10px 18px
  }

  .affiliation-title {
    display: none
  }
}

@media(max-width:360px) {
  .brand-title {
    width: 124px
  }

  .hero-bottom {
    inset-inline: 18px
  }

  .slide-content {
    inset-inline-start: 18px
  }

  .slide-content h2 {
    font-size: 30px
  }
}

@media(prefers-reduced-motion:reduce) {
  .slide-image {
    animation: none;
    transform: none;
  }


  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important
  }
}

.brand-logo {
  filter: brightness(0) invert(1)
}

@media(max-width:800px) {
  .site-header {
    flex-wrap: nowrap
  }

  .affiliation {
    display: none
  }
}

.site-header,
.hero {
  max-width: 1412px;
  margin-inline: auto
}

/* On narrow screens, copy spans most of the image width. */
@media (max-width: 600px) {
  .slide::after {
    background: linear-gradient(180deg,
        rgba(29, 30, 27, .04) 0%,
        rgba(29, 30, 27, .18) 24%,
        rgba(29, 30, 27, .68) 44%,
        rgba(24, 26, 23, .78) 72%,
        rgba(24, 26, 23, .82) 100%);
  }
}

/* A narrow, continuous journal logo strip below the hero. */
.journals {
  max-width: 920px;
  margin: 56px auto 72px;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 48px;
  color: #202124;
}

.journals h2 {
  flex-shrink: 0;
  margin: 0;
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--gold);
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.5;
}

.journals h2 span {
  display: block;
  font-size: .62em;
  font-weight: 600;
  color: #617075;
}

.journals h2 strong {
  display: block;
  font-weight: 700;
}

.journals h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--gold);
}

.journals-viewport {
  flex: 1;
  min-width: 0;
  direction: ltr;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  padding-block: 8px;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.journals-viewport:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.journals-viewport.is-dragging {
  cursor: grabbing;
}

.journals-track {
  display: flex;
  width: max-content;
  direction: ltr;
  will-change: transform;
}

.journals-group {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 52px;
  margin: 0;
  padding: 0 52px 0 0;
  list-style: none;
}

.journals-group li {
  flex-shrink: 0;
}

.journals-group a {
  display: block;
  border-radius: 6px;
  cursor: inherit;
}

.journals-group a:hover .journal-logo,
.journals-group a:focus-visible .journal-logo {
  opacity: 1;
}

.journal-logo {
  height: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: .88;
  transition: opacity .2s;
  -webkit-user-drag: none;
}

.journal-logo--one {
  width: 170px;
}

.journal-logo--two {
  width: 126px;
}

.journal-logo--three {
  width: 194px;
}

@media (max-width: 600px) {
  .journals {
    flex-direction: column;
    gap: 20px;
    margin-block: 36px 48px;
    padding-inline: 10px;
  }

  .journals h2 {
    font-size: 30px;
  }

  .journals-viewport {
    flex: auto;
    width: 100%;
  }
}

/* Departments share the page width, palette, spacing, and corner radius. */
.dep {
  max-width: 1412px;
  margin: 64px auto 28px;
  scroll-margin-top: 24px;
}

.section-head {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid #ccd1c6;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: 0;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}


.dep-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  padding-bottom: 14px;
}

.dep-viewport:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.dep-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 42px) / 4);
  gap: var(--gutter);
}

.dep-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #deded1;
  border-radius: var(--radius);
  background: var(--paper);
  scroll-snap-align: start;
  transition: border-color .2s;
}

.dep-card:hover,
.dep-card:focus-within {
  border-color: #a69a78;
}

.dep-media {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.dep-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dep-wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  width: 100%;
  height: 44px;
}

.dep-wave-fill {
  fill: var(--paper);
}

.dep-wave-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}

.dep-icon {
  display: grid;
  place-items: center;
  position: relative;
  width: 48px;
  height: 48px;
  margin: -35px auto 0 22px;
  border: 1px solid #ded4ba;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--cream);
}

.dep-icon svg {
  width: 25px;
  height: 25px;
}

.dep-icon svg,
.dep-btn svg,
.dep-arrow svg,
.dep-all svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dep-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 22px;
}

.dep-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

.dep-desc {
  margin: 0 0 24px;
  color: #54676c;
  font-size: 15px;
  line-height: 1.9;
}

.dep-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  min-height: 46px;
  border: 1px solid #dce1dc;
  border-radius: var(--radius);
  color: var(--navy);
  background: transparent;
  font-weight: 500;
  transition: background .2s, color .2s;
}

.dep-btn:hover {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.dep-btn-arrow,
.dep-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

.dep-bar,
.dep-nav,
.publication-nav,
.conference-pagination {
  display: flex;
  align-items: center;
  gap: 14px;
}


:is(.dep-arrow, .conference-arrow) {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cdd4ce;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 0 0 rgba(7, 38, 50, 0);
  transition: background-color .45s cubic-bezier(.22, 1, .36, 1),
    color .45s cubic-bezier(.22, 1, .36, 1),
    border-color .45s cubic-bezier(.22, 1, .36, 1),
    box-shadow .45s cubic-bezier(.22, 1, .36, 1),
    transform .45s cubic-bezier(.22, 1, .36, 1);
}

:is(.dep-arrow, .conference-arrow) svg,
.dep-all svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is(.dep-arrow, .conference-arrow):is(:hover, :focus-visible):not(:disabled) {
  background: #153b46;
  color: var(--paper);
  border-color: var(--gold);
  box-shadow: 0 6px 16px rgba(7, 38, 50, .14);
  transform: translateY(-2px);
}

:is(.dep-arrow, .conference-arrow):disabled {
  opacity: .35;
  cursor: default;
}

.dep-dots,
.conference-dots {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  scrollbar-width: none;
}

.dep-dot,
.conference-dot {
  flex: 0 0 24px;
  width: 24px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
}

.dep-dot::after,
.conference-dot::after {
  content: '';
  height: 4px;
  width: 20px;
  border-radius: 4px;
  background: #d0d2c8;
  transition: background-color .45s cubic-bezier(.22, 1, .36, 1);
}

.dep-dots::after,
.conference-dots::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 4px;
  border-radius: 4px;
  background: var(--navy);
  transform: translate(var(--active-dot-x, 0px), -50%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

:is(.dep-dot, .conference-dot):is(:hover, :focus-visible)::after {
  background: var(--gold);
}

:is(.conference-details, .members-all, .dep-all, .publications-all) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-shrink: 0;
  min-height: 48px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 12px 20px;
  background: var(--navy);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 0 0 rgba(7, 38, 50, 0);
  transform: translateY(0);
  transition: background-color .45s cubic-bezier(.22, 1, .36, 1),
    border-color .45s cubic-bezier(.22, 1, .36, 1),
    box-shadow .45s cubic-bezier(.22, 1, .36, 1),
    transform .45s cubic-bezier(.22, 1, .36, 1);
}

:is(.conference-details, .members-all, .dep-all, .publications-all):is(:hover, :focus-visible) {
  background: #153b46;
  border-color: var(--gold);
  box-shadow: 0 6px 16px rgba(7, 38, 50, .14);
  transform: translateY(-2px);
}

:is(.conference-details, .members-all, .dep-all, .publications-all) svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

:is(.conference-details, .members-all, .dep-all, .publications-all):is(:hover, :focus-visible) svg {
  transform: translateX(-3px);
}

.dep.is-expanded .dep-viewport {
  overflow: visible;
}

.dep.is-expanded .dep-track {
  grid-auto-flow: row;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dep.is-expanded .dep-nav {
  display: none;
}

@media (max-width: 1100px) {
  .dep-track {
    grid-auto-columns: calc((100% - 28px) / 3);
  }

  .dep.is-expanded .dep-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .dep-track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }

  .dep.is-expanded .dep-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dep {
    margin-top: 40px;
  }




  .dep-track {
    grid-auto-columns: 100%;
  }

  .dep.is-expanded .dep-track {
    grid-template-columns: minmax(0, 1fr);
  }

  .dep-media {
    height: 210px;
  }


  .dep-dots {
    max-width: 174px;
    overflow-x: auto;
  }

  .dep-dot {
    flex: 0 0 24px;
  }

}

.dep-dots {
  scrollbar-width: none;
}

.dep-dots::-webkit-scrollbar {
  display: none;
}

/* Members slider and footer navigation. */
.members {
  max-width: 1412px;
  margin: 70px auto 36px;
  scroll-margin-top: 24px;
}




.members-window {
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  overflow: hidden;
  scroll-snap-type: none;
  padding-block: 6px 14px;
  direction: ltr;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.members-track {
  will-change: transform;
  display: flex;
  width: max-content;
}

.members-window.is-dragging {
  cursor: grabbing;
}

.members-window img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.members-group {
  padding-right: var(--gutter);
  display: flex;
  gap: var(--gutter);

  flex-shrink: 0;
}

.member-card {
  width: 286px;
  flex: 0 0 286px;
  padding: 7px;
  border: 1px solid #e3e2d9;
  border-radius: var(--radius);
  background: var(--paper);
  direction: rtl;
}

.member-card > .member-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
}

.member-photo {
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e8df;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.member-info {
  padding: 18px 10px 12px;
}

.member-info h3 {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 600;
  margin: 0 0 7px;
}

.member-info p {
  margin: 0;
  color: #637174;
  font-size: 15px;
  line-height: 1.7;
}

.members-actions {
  justify-content: space-between;
}

.members-actions .members-all {
  margin-inline-start: auto;
}

@media (max-width: 600px) {
  .members {
    margin-top: 44px;
  }

  .member-card {
    width: 250px;
    flex-basis: 250px;
  }

  .member-photo {
    height: 290px;
  }

  .member-info h3 {
    font-size: 16px;
  }

  .members-window {
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  }
}

/* Publications: a full cover beside two angled monochrome previews. */
.publications {
  max-width: 1412px;
  margin: 64px auto;
  scroll-margin-top: 24px;
}

.publications-banner {
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 500px;
  border: 1px solid #315561;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 34% 90%, #315965 0%, transparent 55%), linear-gradient(115deg, #072632, #123e4c);
  color: var(--paper);
  touch-action: pan-y;
}

.publications-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .2;
  background: repeating-linear-gradient(145deg, transparent 0 9px, #c8bb972b 9px 10px);
}


.publication-copy {
  width: 37%;
  flex-shrink: 0;
  padding: 36px clamp(24px, 3vw, 48px);
}

.publication-index {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #d4c7a8;
  margin-bottom: 26px;
  font-size: 14px;
  letter-spacing: 2px;
}

.publication-index i {
  height: 1px;
  width: 64px;
  background: #c8bb9770;
}

.publication-label {
  color: #c8bb97;
  font-size: 13px;
}

.publication-copy h3 {
  font-size: clamp(27px, 2.8vw, 40px);
  line-height: 1.6;
  margin: 12px 0;
}

.publication-copy p {
  color: #cad8da;
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 28px;
}

.publication-more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy);
  min-height: 48px;
  transition: background .2s;
}

.publication-more:hover {
  background: var(--paper);
}

.publication-more svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.publication-covers {
  width: 63%;
  position: relative;
  height: 450px;
  perspective: 1300px;
  direction: ltr;
}

.publication-cover {
  position: absolute;
  top: 50%;
  left: 29%;
  width: 68%;
  aspect-ratio: 1.395;
  padding: 0;
  border: 1px solid #ffffff40;
  border-radius: 4px;
  background: #103440;
  box-shadow: 0 24px 34px #00000066;
  transform: translateY(-50%) rotateY(-7deg) rotate(-1deg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .75s cubic-bezier(.22, 1, .36, 1), left .75s cubic-bezier(.22, 1, .36, 1), width .75s cubic-bezier(.22, 1, .36, 1), aspect-ratio .75s cubic-bezier(.22, 1, .36, 1), filter .75s, opacity .5s, visibility .75s;
}

.publication-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border-radius: 3px;
  -webkit-user-drag: none;
}

.publication-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 3px;
  box-shadow: inset 4px 0 7px #00000030, inset 0 0 0 1px #ffffff18;
}

.publication-cover[data-slot="active"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.publication-cover[data-slot="near"] {
  visibility: visible;
  opacity: .85;
  pointer-events: auto;
  z-index: 2;
  left: 14%;
  width: 33%;
  aspect-ratio: .72;
  filter: grayscale(1) brightness(.82);
  transform: translateY(-48%) rotateY(16deg) rotate(-5deg) scale(.86);
}

.publication-cover[data-slot="far"] {
  visibility: visible;
  opacity: .65;
  pointer-events: auto;
  z-index: 1;
  left: 0;
  width: 30%;
  aspect-ratio: .72;
  filter: grayscale(1) brightness(.65);
  transform: translateY(-43%) rotateY(26deg) rotate(-10deg) scale(.78);
}

.publication-cover[data-slot="hidden"] {
  left: -12%;
  transform: translateY(-40%) rotateY(32deg) rotate(-15deg) scale(.6);
}

.publication-controls {
  margin-top: 20px;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.publications-grid[hidden] {
  display: none;
}

.publication-grid-card {
  padding: 12px;
  border: 1px solid #ccd1c6;
  border-radius: var(--radius);
  background: var(--paper);
  text-align: right;
}

.publication-grid-card:hover {
  border-color: var(--gold);
}

.publication-grid-card img {
  width: 100%;
  aspect-ratio: 1.395;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
}

.publication-grid-card span {
  display: block;
  line-height: 1.7;
  font-weight: 600;
}

.publication-dialog {
  width: min(900px, calc(100% - 28px));
  max-height: 90svh;
  overflow-y: auto;
}

.publication-dialog img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .publication-copy {
    width: 42%;
    padding: 28px 24px;
  }

  .publication-covers {
    width: 58%;
    height: 380px;
  }

  .publications-banner {
    min-height: 380px;
  }

  .publication-copy h3 {
    font-size: 26px;
  }

  .publications-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .publications {
    margin-block: 44px;
  }

  .publications-banner {
    flex-direction: column;
  }

  .publication-covers {
    order: -1;
    width: 100%;
    height: clamp(220px, 62vw, 350px);
    margin-top: 18px;
  }

  .publication-copy {
    width: 100%;
    padding: 18px 24px 28px;
  }

  .publication-copy h3 {
    font-size: 28px;
  }

  .publication-index {
    margin-bottom: 14px;
  }

  .publication-copy p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .publications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.site-footer {
  margin-top: 64px;
  padding: 44px 40px 0;
  border: 1px solid #294b56;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 100% 0%, #174552 0%, transparent 60%), var(--navy);
  color: var(--paper);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 1fr 1.15fr;
  gap: 32px;
}

.footer-columns>* {
  min-width: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.footer-brand .brand-logo {
  width: 80px;
  height: 100px;
}

.footer-brand .brand-title {
  width: min(192px, 100%);
  min-width: 0;
  filter: brightness(0) invert(1);
}

.footer-description {
  margin: 22px 0;
  color: #b4c7cb;
  font-size: 14px;
  line-height: 1.9;
}

.footer-motto {
  margin: 30px 0 0;
  color: var(--paper);
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.7;
}

.footer-motto span {
  color: var(--gold);
}

.footer-column h2 {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.7;
}

.footer-column h2::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-links a {
  display: inline-block;
  color: #c4d3d6;
  font-size: 13px;
  line-height: 1.8;
  transition: color .2s, transform .2s;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(-3px);
}

.footer-contact {
  scroll-margin-top: 28px;
}

.footer-contact address {
  display: grid;
  gap: 20px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-row>svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-row>div {
  min-width: 0;
}

.footer-contact-row a {
  display: block;
  overflow-wrap: anywhere;
}

.footer-contact-row a:hover {
  color: var(--gold);
}

.footer-contact-label {
  display: block;
  color: #9fb8bf;
  font-size: 12px;
  margin-bottom: 3px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  color: var(--paper);
  background: #ffffff06;
  transition: color .2s, background .2s, border-color .2s;
}

.footer-socials a:hover {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.footer-socials svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 36px;
  padding: 22px 0;
  border-top: 1px solid #ffffff20;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  color: #b4c7cb;
}

@media (max-width: 1050px) {
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    margin-top: 44px;
    padding: 28px 24px 0;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-motto {
    margin-top: 18px;
    font-size: 24px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-bottom {
    margin-top: 28px;
    padding-block: 20px;
  }
}

/* Conference posters: a central cover with receding, angled neighbours. */
.conferences {
  max-width: 1412px;
  margin: 70px auto 36px;
  scroll-margin-top: 24px;
}

.conference-banner {
  --stripe-color: rgba(253, 252, 247, 0.05);
  padding: clamp(20px, 3vw, 40px);
  background:
    repeating-linear-gradient(145deg, var(--stripe-color) 0 1px, transparent 1px 8px),
    radial-gradient(ellipse at 50% 28%, #174958 0%, #0c3442 42%, #072632 78%);
  background-color: #072632;
  color: var(--paper);
  border: 1px solid #294b56;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px #07263220;
}

.conference-slider {
  --poster-size: clamp(220px, 37vw, 450px);
  --poster-shift: clamp(112px, 24vw, 310px);
  --conference-duration: 1.15s;
  --conference-easing: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  border-radius: var(--radius);
}

.conference-slider:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.conference-stage {
  height: calc(var(--poster-size) + 64px);
  position: relative;
  overflow: hidden;
  perspective: 1200px;
  touch-action: pan-y pinch-zoom;
}

.conference-card {
  position: absolute;
  top: 20px;
  left: 50%;
  width: var(--poster-size);
  height: var(--poster-size);
  padding: 5px;
  border: 1px solid #c8bb9799;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 32px #00000045;
  transform: translateX(-50%) rotateY(0deg) scale(1);
  z-index: 1;
  filter: grayscale(1) brightness(.82);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--conference-duration) var(--conference-easing),
    filter var(--conference-duration) ease-in-out,
    box-shadow var(--conference-duration) ease,
    opacity .7s ease,
    visibility 0s linear var(--conference-duration);
  user-select: none;
}

.conference-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
  -webkit-user-drag: none;
}

.conference-card[data-position="0"],
.conference-card[data-position="1"],
.conference-card[data-position="-1"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.conference-card[data-position="0"] {
  z-index: 4;
  filter: grayscale(0) brightness(1);
  box-shadow: 0 22px 40px #00000055, 0 0 28px #c8bb971a;
}

.conference-card[data-position="1"] {
  z-index: 3;
  transform: translateX(calc(-50% - var(--poster-shift))) rotateY(-32deg) scale(.82);
  filter: grayscale(1) brightness(.82);
}

.conference-card[data-position="-1"] {
  z-index: 3;
  transform: translateX(calc(-50% + var(--poster-shift))) rotateY(32deg) scale(.82);
  filter: grayscale(1) brightness(.82);
}

.conference-card[data-position="2"],
.conference-card[data-position="3"] {
  transform: translateX(calc(-50% - var(--poster-shift) * 1.65)) rotateY(-42deg) scale(.66);
}

.conference-card[data-position="-2"],
.conference-card[data-position="-3"] {
  transform: translateX(calc(-50% + var(--poster-shift) * 1.65)) rotateY(42deg) scale(.66);
}

.conference-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.conference-pagination {
  flex-shrink: 0;
}

.conference-base {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  width: 70%;
  margin: 0 auto;
  min-height: 114px;
  padding: 24px 30px;
  border: 1px solid #c8bb9766;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff12, #ffffff03), #103b49;
  box-shadow: 0 14px 32px #00000024, inset 0 1px 0 #ffffff1f;
}

@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  .conference-base {
    background: linear-gradient(135deg, #ffffff14, #ffffff03), #103b4970;
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
  }
}

.conference-copy {
  min-width: 0;
  text-align: center;
}

.conference-copy h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.7;
}

.conference-details {
  width: fit-content;
  margin-inline-start: auto;
}

.conference-dialog {
  width: min(850px, calc(100% - 28px));
  max-height: 90svh;
  overflow-y: auto;
  background: var(--navy);
  color: var(--paper);
  border-color: #577079;
}

.conference-dialog p {
  color: #c3d2d6;
}

.conference-dialog .dialog-close {
  color: #e6d8b3;
}

.conference-dialog::backdrop {
  background: #03131ce0;
}

.conferences button:focus-visible,
.conference-dialog button:focus-visible {
  outline: 2px solid #e6d8b3;
  outline-offset: 4px;
}

.conference-dialog img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.conference-archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
}

.conference-archive-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #577079;
  border-radius: var(--radius);
  background: #103b49;
  color: var(--paper);
  text-align: center;
  cursor: pointer;
}

.conference-archive-item:hover {
  border-color: #e6d8b3;
}

.conference-archive-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

@media (max-width: 600px) {
  .conferences {
    margin-top: 44px;
  }

  .conference-slider {
    --poster-size: clamp(150px, 50vw, 280px);
    --poster-shift: 26vw;
  }

  .dep-nav,
  .publication-nav,
  .conference-pagination {
    gap: 8px;
  }

  .dep-dots,
  .conference-dots {
    gap: 4px;
  }

  .conference-base {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }

  .conference-copy {
    flex-basis: 100%;
  }
}

/* Stack section controls consistently on phones and small screens. */
@media (max-width: 800px) {
  :is(.dep-bar, .publication-controls, .members-actions, .conference-controls) {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
  }

  :is(.dep-bar, .publication-controls, .members-actions, .conference-controls) > :is(.dep-all, .members-all, .publications-all, .conference-details) {
    width: 100%;
    align-self: stretch;
    margin-inline: 0;
    justify-content: center;
  }

  :is(.dep-nav, .publication-nav, .conference-pagination) {
    width: fit-content;
    max-width: 100%;
    justify-content: center;
  }

  :is(.dep-dots, .conference-dots) {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .conference-dots::-webkit-scrollbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .conference-dots::after {
    transition: none;
  }

  .conference-dot::after {
    transition: none;
  }
}

/* ==========================================================================
   ربط التصميم بالمحتوى الديناميكي (لوحة التحكم)
   ========================================================================== */

/* ---------- القوائم الفرعية في النافبار ---------- */
.main-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.main-nav .nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.main-nav .nav-chev {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}

.main-nav a:hover {
  color: var(--gold);
}

.main-nav .nav-sub {
  position: absolute;
  top: 100%;
  inset-inline-start: -14px;
  z-index: 30;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid #ffffff25;
  border-top: 2px solid var(--gold);
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.main-nav .nav-item:hover > .nav-sub,
.main-nav .nav-item.is-open > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .nav-item:hover .nav-chev,
.main-nav .nav-item.is-open .nav-chev {
  transform: rotate(180deg);
}

.main-nav .nav-sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.main-nav .nav-sub a:hover {
  background: #ffffff0d;
}

/* ---------- أدوات الهيدر: البحث واللغة ---------- */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .3s ease, color .3s ease;
}

.tool-btn:hover,
.tool-btn[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.tool-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-tool {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 30;
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #ffffff25;
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.lang-tool.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: #e3e7e4;
  font-size: 14px;
}

.lang-menu a:hover,
.lang-menu a.is-active {
  background: #ffffff0d;
  color: var(--gold);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  z-index: 25;
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ffffff25;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.search-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: #ffffff0a;
  color: var(--paper);
  font: inherit;
  font-size: 15px;
}

.search-panel input::placeholder {
  color: #b4c7cb;
}

.search-panel input:focus {
  outline: none;
  border-color: var(--gold);
}

.search-panel button {
  flex: 0 0 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
}

.search-panel button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

@media (max-width: 1250px) {
  .main-nav .nav-sub a {
    font-size: 13px;
  }
}

@media (max-width: 1050px) {
  .header-tools {
    order: 2;
    margin-inline-start: auto;
  }

  .main-nav .nav-item {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav .nav-sub-toggle {
    justify-content: space-between;
  }

  .main-nav .nav-sub {
    position: static;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    padding-inline-start: 12px;
    border: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height .35s ease;
  }

  .main-nav .nav-item:hover > .nav-sub {
    max-height: 0;
  }

  .main-nav .nav-item.is-open > .nav-sub {
    max-height: 600px;
  }

  .main-nav .nav-item:hover .nav-chev {
    transform: none;
  }

  .main-nav .nav-item.is-open .nav-chev {
    transform: rotate(180deg);
  }
}

/* الهواتف: الشعار + البحث + اللغة + القائمة في سطر واحد */
@media (max-width: 480px) {
  .site-header {
    gap: 8px;
  }

  .site-header .brand-logo {
    width: 40px;
    height: 52px;
  }

  .site-header .brand-title {
    width: clamp(104px, 31vw, 130px);
  }

  .header-tools {
    gap: 6px;
  }

  .tool-btn {
    min-width: 38px;
    height: 38px;
    padding: 0;
  }

  #langBtn span {
    display: none;
  }

  .menu-toggle {
    width: 40px !important;
    height: 40px !important;
    padding: 10px !important;
  }
}

/* ---------- الهيرو: عناوين الأخبار أطول من شعارات التصميم ---------- */
.slide-content h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: clamp(28px, 2.9vw, 42px);
  overflow-wrap: anywhere;
}

.slide-content p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media (max-width: 600px) {
  .slide-content h2 {
    font-size: 26px;
  }
}

/* ---------- المجلات: شعارات بأبعاد مختلفة من لوحة التحكم ---------- */
.journal-logo {
  width: auto;
  height: 52px;
  max-width: 200px;
}

/* ---------- المؤتمرات: رابط تفاصيل المؤتمر المختار ---------- */
.conference-copy a {
  color: inherit;
  transition: color .2s;
}

.conference-copy a:hover {
  color: var(--gold);
}

.conference-date {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- الأعضاء: البطاقة رابط لصفحة العضو ---------- */
a.member-card {
  display: block;
  color: inherit;
}

.member-photo--empty {
  display: grid;
  place-items: center;
  color: #9aa6a4;
}

.member-photo--empty svg {
  width: 72px;
  height: 72px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

/* ---------- الإصدارات: بطاقات الشبكة روابط ---------- */
a.publication-grid-card {
  display: block;
  color: inherit;
}

/* ---------- اتجاه اليسار إلى اليمين (الإنجليزية) ---------- */
[dir="ltr"] .member-card {
  direction: ltr;
}

[dir="ltr"] .slide::after {
  background:
    linear-gradient(90deg, rgba(29, 30, 27, .76) 0%, rgba(29, 30, 27, .58) 30%, rgba(29, 30, 27, .30) 52%, rgba(29, 30, 27, .06) 74%, transparent 100%),
    linear-gradient(0deg, rgba(24, 26, 23, .64) 0%, rgba(24, 26, 23, .12) 35%, transparent 70%);
}

[dir="ltr"] .read-more span {
  transform: none;
}

[dir="ltr"] :is(.dep-btn-arrow, .dep-all svg, .members-all svg, .publications-all svg, .conference-details svg) {
  transform: scaleX(-1);
}

[dir="ltr"] .footer-links a:hover {
  transform: translateX(3px);
}

[dir="ltr"] .publication-grid-card {
  text-align: left;
}

/* ==========================================================================
   الصفحات الداخلية (pages.css) على لوحة ألوان التصميم
   ========================================================================== */
:root {
  --navy-deep: var(--navy);
  --navy-mid: #0e3848;
  --navy-soft: #134153;
  --navy-700: #0e3848;
  --gold-light: #e6d8b3;
  --gold-muted: #a69a78;
  --gold-dim: #8a7f60;
  --gold-300: #e6d8b3;
  --gold-600: #a69a78;
  --gold-pale: rgba(200, 187, 151, .14);
  --gold-line: rgba(200, 187, 151, .45);
  --steel-600: #35505f;
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, .9);
  --white-70: rgba(255, 255, 255, .7);
  --bg-section: transparent;
  --bg-section2: #efe8d6;
  --bg-card: var(--paper);
}

.wp-page {
  max-width: 1412px;
  margin-inline: auto;
  padding-bottom: 20px;
  background: transparent;
}

.wp-hero {
  padding: 64px 0 52px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(145deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, rgba(7, 38, 50, .78), rgba(11, 47, 61, .95)),
    var(--wp-hero-img, none) center / cover no-repeat,
    var(--navy);
}

.wp-hero-title {
  font-family: var(--font-heading);
}

@media (max-width: 640px) {
  .wp-hero {
    padding: 44px 0 38px;
  }
}

.wp-grid--sections {
  margin-bottom: 34px;
}

.wp-card-noimg svg {
  width: 46px;
  height: 46px;
  color: var(--gold-600);
}

.wp-card-icon {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(7, 38, 50, .28);
}

.wp-card-icon svg {
  width: 20px;
  height: 20px;
}

.wp-writer-avatar {
  background: var(--navy-700);
  color: var(--gold-300);
}

.wp-meta-event {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.wp-meta-event.is-past {
  background: var(--steel-600);
  color: var(--cream);
}

.conference-archive-item small {
  margin: 0;
}

.conference-archive-more {
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
}

.conference-archive-more .conference-details {
  margin: 0;
}
