*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Variable names kept from the previous burgundy/gold palette so downstream
     references still work; values are now indigo/brass. */
  --burgundy: #1a2d6b;
  --burgundy-deep: #0f1f4a;
  --burgundy-light: #2a4596;
  --brown-warm: #8a6a3a;
  --brown-light: #a48460;
  --gold: #c9962f;
  --gold-light: #e0b240;
  --gold-pale: #f0dca0;
  --cream: #f5edd8;
  --cream-warm: #e6d4a8;
  --cream-dark: #d8c08a;
  --text-dark: #1a1f3d;
  --text-medium: #4a4035;
  --text-light: #7a6b58;
  --white: #ffffff;

  /* Sticky header height — single source of truth.
     Used by scroll-padding-top (anchor offsets) and the mobile nav dropdown.
     Mobile default: 8px padding top + 51px logo + 8px padding bottom + 1px border. */
  --sticky-header-height: 68px;
}

@media (min-width: 768px) {
  :root {
    /* Desktop: 10px padding top + 63px logo + 10px padding bottom + 1px border. */
    --sticky-header-height: 84px;
  }
}

html {
  scroll-behavior: smooth;
  /* Anchor scrolls land exactly under the sticky header. Each section's own
     padding-top provides visual breathing room. */
  scroll-padding-top: var(--sticky-header-height);
  font-size: 16px;
}

body {
  font-family: 'Tajawal', Arial, sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: none;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-bg-slide.active img {
  animation: kenBurns 8s ease-in-out forwards;
}

.hero-bg-slide:nth-child(2).active img {
  animation-name: kenBurns2;
}

.hero-bg-slide:nth-child(3).active img {
  animation-name: kenBurns3;
}

.hero-bg-slide:nth-child(4).active img {
  animation-name: kenBurns;
}

@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

@keyframes kenBurns2 {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.06) translate(1%, -0.5%); }
}

@keyframes kenBurns3 {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1)    translate(-0.5%, 1%); }
}

.hero-bg-slide.entering {
  animation: geometricReveal 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-bg-slide.leaving {
  animation: geometricHide 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes geometricReveal {
  0%   {
    opacity: 1;
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);
  }
  40%  {
    clip-path: polygon(50% 0%, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0% 50%, 15% 15%);
  }
  100% {
    opacity: 1;
    clip-path: polygon(50% -20%, 120% -20%, 120% 50%, 120% 120%, 50% 120%, -20% 120%, -20% 50%, -20% -20%);
  }
}

@keyframes geometricHide {
  0%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(15, 31, 74, 0.55) 0%,
      rgba(15, 31, 74, 0.35) 20%,
      rgba(26, 31, 61, 0.20) 40%,
      rgba(26, 31, 61, 0.35) 60%,
      rgba(26, 31, 61, 0.78) 80%,
      rgba(26, 31, 61, 0.94) 100%
    );
  z-index: 1;
}

.hero-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.2px;
  z-index: 30;
  display: flex;
  gap: 3px;
  pointer-events: none;
}

.hero-progress-segment {
  flex: 1;
  height: 3.2px;
  background: rgba(196, 163, 90, 0.22);
  overflow: hidden;
  position: relative;
}

.hero-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right center;
  will-change: transform;
}

.hero-progress-segment.complete .hero-progress-fill {
  transform: scaleX(1);
}

.hero-progress-segment.active .hero-progress-fill {
  animation: heroProgress 6000ms linear forwards;
}

@keyframes heroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.site-header-landing {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 16px 32px;
  animation: fadeInDown 0.8s ease-out;
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-group > img {
  width: 60px;
  height: auto;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 150, 47, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.logo-separator {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, rgba(201, 150, 47, 0.5), transparent);
}

.logo-institute img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 150, 47, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.logo-institute img:hover {
  opacity: 1;
}

.site-nav-landing {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav-landing a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav-landing a:hover {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 24px 24px;
  margin-top: -14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(-6vh);
}

.hero-title-img {
  width: clamp(164px, 26vw, 295px);
  height: auto;
  margin-top: -12px;
  margin-bottom: 12px;
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.slogan {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(20px, 5.2vw, 52px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: #F7F0E4;
  text-shadow: 0 2px 20px rgba(10, 16, 38, 0.55);
  white-space: nowrap;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.hero-divider-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-divider-star {
  color: var(--gold);
  font-size: 10px;
}

.form-container {
  width: 100%;
  max-width: 420px;
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

.form-title {
  font-family: 'Amiri', serif;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: 0 0 10px;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.form-intro {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  margin: 0 0 18px;
  line-height: 1.7;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-form input[type="email"] {
  width: 100%;
  padding: 13px 20px;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  outline: none;
  text-align: center;
  direction: ltr;
  transition: all 0.3s ease;
}

.email-form input[type="email"]::placeholder {
  color: var(--text-light);
  direction: rtl;
  text-align: center;
}

.email-form input[type="email"]:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0 0 3px rgba(201, 150, 47, 0.15);
}

.email-form button {
  width: 100%;
  padding: 13px 24px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.email-form button:hover {
  background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 45, 107, 0.4);
}

.email-form button:active {
  transform: scale(0.98);
}

.form-error {
  font-size: 13px;
  color: var(--gold-light);
  text-align: center;
  margin-top: 4px;
  min-height: 0;
  font-weight: 500;
  direction: rtl;
}

.form-error:empty {
  margin-top: 0;
}

.form-note {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.90);
  margin-top: 2px;
  text-align: center;
  font-weight: 300;
}

.form-note-consent {
  font-size: 11.6px;
  color: rgba(255, 255, 255, 0.75);
}

.form-note a,
.form-note a:link,
.form-note a:visited {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note a:hover,
.form-note a:focus-visible {
  color: var(--gold-light);
}

.grecaptcha-badge {
  visibility: hidden !important;
}

.email-form input.error {
  border-color: var(--burgundy-light);
  animation: shake 0.4s ease;
}

.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
  animation: scaleIn 0.5s ease-out;
}

.success-message.show {
  display: flex;
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-text {
  font-family: 'Amiri', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.success-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  line-height: 1.7;
}

.phrase-container {
  margin-top: 16px;
  min-height: 32px;
  text-align: center;
  animation: fadeIn 0.8s ease-out 1.1s both;
}

.phrase-text {
  font-family: 'Amiri', serif;
  font-size: clamp(16px, 4vw, 21px);
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  line-height: 1.8;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.phrase-text.visible {
  opacity: 1;
}

.identity {
  position: relative;
  background:
    linear-gradient(
      to bottom,
      rgba(26, 31, 61, 0.22) 0%,
      rgba(15, 31, 74, 0.08) 4%,
      transparent 12%,
      transparent 88%,
      rgba(15, 31, 74, 0.14) 100%
    ),
    var(--cream);
  padding: 3.5rem 1.5rem 0;
  overflow: hidden;
  isolation: isolate;
}

.identity::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'%3E%3Cg fill='none' stroke='%231a2d6b' stroke-width='0.9' stroke-linecap='round'%3E%3Ccircle cx='55' cy='55' r='2.5' fill='%231a2d6b'/%3E%3Cpath d='M 55 47 Q 51 51 51 55 Q 51 59 55 63 Q 59 59 59 55 Q 59 51 55 47'/%3E%3Cpath d='M 55 47 C 55 28, 32 22, 27 0'/%3E%3Cpath d='M 63 55 C 82 55, 88 32, 110 27'/%3E%3Cpath d='M 55 63 C 55 82, 78 88, 83 110'/%3E%3Cpath d='M 47 55 C 28 55, 22 78, 0 83'/%3E%3Ccircle cx='38' cy='22' r='1.2'/%3E%3Ccircle cx='88' cy='38' r='1.2'/%3E%3Ccircle cx='72' cy='88' r='1.2'/%3E%3Ccircle cx='22' cy='72' r='1.2'/%3E%3Cellipse cx='45' cy='33' rx='2.5' ry='1.2' transform='rotate(-50 45 33)'/%3E%3Cellipse cx='77' cy='45' rx='2.5' ry='1.2' transform='rotate(40 77 45)'/%3E%3Cellipse cx='65' cy='77' rx='2.5' ry='1.2' transform='rotate(130 65 77)'/%3E%3Cellipse cx='33' cy='65' rx='2.5' ry='1.2' transform='rotate(-130 33 65)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 110px 110px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.identity > * {
  position: relative;
  z-index: 1;
}

.identity-crown {
  max-width: 520px;
  margin: 0 auto;
  opacity: 0;
  animation: identityFade 1s ease-out 0.2s forwards;
}

.identity-crown-svg {
  width: 100%;
  height: auto;
  display: block;
}

.identity-crown-svg .crown-outer {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: crownDraw 1.6s ease-out 0.4s forwards;
}

.identity-header {
  text-align: center;
  margin-top: -2.5rem;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: identityFade 1s ease-out 0.9s forwards;
}

.identity-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: var(--burgundy);
  margin: 0;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.identity-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem auto 0.75rem;
  max-width: 220px;
}

.identity-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.identity-divider-star {
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
}

.identity-intro {
  max-width: 780px;
  margin: 1.75rem auto 0;
  padding: 0 1rem;
  text-align: center;
}

.identity-intro-text {
  font-family: 'Amiri', serif;
  font-size: clamp(1.13rem, 2.37vw, 1.38rem);
  line-height: 2;
  color: var(--text-medium);
  margin: 0 0 1.15rem;
  font-weight: 400;
}

.identity-intro-text:last-child {
  margin-bottom: 0;
}

.identity-intro-brand {
  color: var(--burgundy);
  font-weight: 700;
}

.identity-vision {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.identity-vision-label {
  margin-bottom: 0.9rem;
}

.identity-manifesto {
  max-width: 760px;
  width: 100%;
  margin: 2.25rem auto 0;
  padding: 1.6rem 2.25rem;
  background: var(--cream-warm);
  color: var(--brown-warm);
  border: 2px solid var(--brown-warm);
  border-radius: 22px;
  position: relative;
  box-shadow: 0 8px 22px rgba(26, 45, 107, 0.08);
}

.identity-vision .identity-manifesto {
  margin-top: 0;
}

.identity-manifesto::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 16px;
  border: 1px solid var(--brown-warm);
  opacity: 0.35;
  pointer-events: none;
}

.identity-manifesto-text {
  font-family: 'Amiri', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.9;
  margin: 0;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.005em;
  color: #8a6a3a;
}

.identity-arcade {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .identity-arcade {
    grid-template-columns: repeat(2, 1fr);
  }
  .identity-arcade > .identity-niche:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 50%;
  }
}

@media (min-width: 1024px) {
  .identity-arcade {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.75rem;
  }
  .identity-arcade > .identity-niche:nth-child(3) {
    grid-column: auto;
    justify-self: auto;
    max-width: none;
  }
}

.identity-niche {
  text-align: center;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(24px);
  animation: nicheRise 0.9s ease-out forwards;
}

.identity-niche:nth-child(1) { animation-delay: 1.1s; }
.identity-niche:nth-child(2) { animation-delay: 1.25s; }
.identity-niche:nth-child(3) { animation-delay: 1.4s; }

.niche-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--burgundy);
  color: var(--cream);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 18px rgba(15, 31, 74, 0.22);
  position: relative;
}

.niche-label::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px solid rgba(201, 150, 47, 0.35);
  pointer-events: none;
}

.niche-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fdf8e8;
  color: var(--burgundy-deep);
  border: 1px solid var(--gold);
  flex-shrink: 0;
}

.niche-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.niche-label-text {
  padding-inline-end: 0.25rem;
}

.niche-body {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-dark);
  max-width: 240px;
  margin: 0 auto;
  font-weight: 500;
}

.niche-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.niche-chips li {
  position: relative;
  padding-inline-start: 1.25rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 400;
}

.niche-chips li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px rgba(201, 150, 47, 0.25);
}

.niche-chips-detailed {
  align-items: stretch;
  text-align: start;
  max-width: 100%;
}

.niche-chips-detailed li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
}

.niche-chips-detailed li strong {
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  color: var(--burgundy);
  font-weight: 700;
}

.niche-chips-detailed li span {
  font-size: 0.92rem;
  color: var(--text-light);
  font-weight: 400;
}

.identity-work {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

.work-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.work-header-editorial {
  text-align: start;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 2.5rem;
}

.work-eyebrow {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: none;
  padding-inline-start: 0.1rem;
}

.work-header-editorial .work-title {
  text-align: start;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
}

.work-rule {
  display: block;
  width: 72px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-top: 0.25rem;
  border-radius: 1px;
}

.work-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: var(--burgundy);
  margin: 0;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.work-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem auto 0;
  max-width: 220px;
}

.work-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.work-divider-star {
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
}

.work-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .work-grid > .work-card:nth-child(7) {
    grid-column: 2;
  }
}

.work-card {
  position: relative;
  background: var(--cream-warm);
  color: #8a6a3a;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--brown-warm);
  border-radius: 28px;
  text-align: center;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(26, 45, 107, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Two-line min height so single-line cards align with wrapped ones. */
  min-height: calc(2 * 1.65em + 1.4rem + 4px);
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 24px;
  border: 1px solid var(--brown-warm);
  opacity: 0.3;
  pointer-events: none;
}

.work-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brown-warm);
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px rgba(138, 106, 58, 0.25);
}

.work-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .work-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-category {
  position: relative;
  background: var(--cream-warm);
  border: 2px solid var(--brown-warm);
  border-radius: 22px;
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: 0 6px 18px rgba(26, 45, 107, 0.08);
}

.work-category::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 18px;
  border: 1px solid var(--brown-warm);
  opacity: 0.28;
  pointer-events: none;
}

.work-category > * {
  position: relative;
  z-index: 1;
}

.work-category-title {
  font-family: 'Amiri', serif;
  font-size: clamp(1.4rem, 3.5vw, 1.7rem);
  color: var(--burgundy);
  font-weight: 700;
  margin: 0 0 0.85rem;
  text-align: center;
  line-height: 1.25;
  padding-bottom: 0.7rem;
  position: relative;
}

.work-category-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.work-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.work-category-list li {
  position: relative;
  padding-inline-start: 1.15rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-medium);
}

.work-category-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px rgba(201, 150, 47, 0.22);
}

@keyframes identityFade {
  to { opacity: 1; }
}

@keyframes crownDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes nicheRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-crown,
  .identity-header,
  .identity-niche {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .identity-crown-svg .crown-outer {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.site-header-sticky {
  position: fixed;
  /* IMPORTANT: do not add `transform`, `backdrop-filter`, `filter`, or
     `will-change: transform` to this element. Any of them creates a
     containing block that traps the fixed-position mobile nav dropdown
     inside the header, collapsing it to the header's own height.
     The blur + background live on the ::before pseudo-element instead. */
  top: -120px;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 150, 47, 0.28);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  transition: top 0.35s cubic-bezier(.2, .8, .2, 1);
  padding: 8px 20px;
}

.site-header-sticky::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 74, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.site-header-sticky.is-visible {
  top: 0;
}

.site-header-sticky-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.sticky-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.sticky-logo-group img {
  width: 51px;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  transform: translateY(-2px);
}

.sticky-brand-wordmark {
  font-size: 22px;
  line-height: 1;
  display: inline-block;
  transform: translateY(-2px);
  color: var(--gold-light);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.sticky-logo-institute-img {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.sticky-logo-institute-img:hover {
  opacity: 1;
}

.sticky-logo-separator {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(201, 150, 47, 0.5), transparent);
}

.site-nav-sticky {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav-sticky a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav-sticky a:hover,
.site-nav-sticky a:focus-visible {
  color: var(--gold-light);
}

.nav-toggle-sticky {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
}

@media (min-width: 768px) {
  .site-header-sticky {
    padding: 10px 40px;
  }
  .sticky-logo-group {
    gap: 12px;
  }
  .sticky-logo-group img {
    width: 63px;
    transform: translateY(-3px);
  }
  .sticky-brand-wordmark {
    font-size: 27px;
    transform: translateY(-2px);
  }
  .sticky-logo-separator {
    height: 26px;
  }
  .site-nav-sticky a {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .nav-toggle-sticky {
    display: block;
  }
  .site-nav-sticky {
    display: none;
    position: fixed;
    top: var(--sticky-header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 16px;
    padding: 20px 28px 24px;
    background: var(--burgundy-deep, #0f1f4a);
    border-top: 1px solid rgba(201, 150, 47, 0.25);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    max-height: calc(100dvh - var(--sticky-header-height));
    overflow-y: auto;
  }

  .sticky-brand-wordmark {
    font-size: 22px;
    transform: translateY(-1px);
  }
  .site-nav-sticky.open {
    display: flex;
  }
  .site-nav-sticky a {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header-sticky {
    transition: none;
  }
}

.channels {
  background:
    linear-gradient(
      to bottom,
      rgba(26, 31, 61, 0.22) 0%,
      rgba(15, 31, 74, 0.08) 4%,
      transparent 12%,
      transparent 88%,
      rgba(15, 31, 74, 0.14) 100%
    ),
    var(--cream);
  padding: 4.25rem 1.25rem 4.8rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.channels::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,
      transparent calc(100% - 81px),
      rgba(138, 106, 58, 0.22) calc(100% - 81px),
      rgba(138, 106, 58, 0.22) calc(100% - 80px),
      transparent calc(100% - 80px)),
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='28' viewBox='0 0 20 28'%3E%3Cline x1='0' y1='27.5' x2='20' y2='27.5' stroke='%238a6a3a' stroke-width='0.6' opacity='0.32'/%3E%3C/svg%3E");
  background-size: 100% 100%, 20px 28px;
  background-repeat: no-repeat, repeat;
  pointer-events: none;
  z-index: 0;
}

.channels::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: clamp(2rem, 12vw, 11rem);
  width: clamp(110px, 13vw, 170px);
  aspect-ratio: 1061 / 1180;
  background-image: url("../img/quill.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  opacity: 0.45;
  transform: scaleX(-1) rotate(-8deg);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 720px) {
  .channels::after {
    display: none;
  }
}

.channels > * {
  position: relative;
  z-index: 1;
}

.channels-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.3rem;
}

.channels-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  color: var(--burgundy);
  margin: 0;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.channels-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.2rem auto 1rem;
  max-width: 220px;
}

.channels-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.channels-divider-star {
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
}

.channels-subtitle {
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.8;
}

.citations-carousel {
  max-width: 1080px;
  margin: 0 auto;
}

.citation-shell {
  position: relative;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.95), rgba(240, 230, 214, 0.95));
  border: 1.5px solid rgba(201, 150, 47, 0.48);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 31, 74, 0.15);
  padding: 3.6rem 1.2rem 1.6rem;  /* extra top space for the control cluster */
}

.citation-shell::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  border: 1px solid rgba(122, 40, 56, 0.2);
  pointer-events: none;
}

.citation-progress {
  display: flex;
  gap: 5px;
  padding: 0 1.4rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 3;
}

.citation-progress-segment {
  flex: 1;
  height: 20px;  /* clickable target; track is centered inside via top offset */
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.citation-progress-segment::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(138, 106, 58, 0.4);
  border-radius: 2px;
}

.citation-progress-fill {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right center;  /* RTL: fill from right (reading start) to left */
  will-change: transform;
}

.citation-progress-segment.is-complete .citation-progress-fill {
  transform: scaleX(1);
}

.citation-progress-segment.is-active .citation-progress-fill {
  animation: citationProgress 9000ms linear forwards;
}

.citation-shell.is-paused .citation-progress-segment.is-active .citation-progress-fill,
.citation-shell.is-hover-paused .citation-progress-segment.is-active .citation-progress-fill {
  animation-play-state: paused;
}

@keyframes citationProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Control cluster — prev | pause/play | next — top-center of the shell.
   dir="ltr" on the wrapper keeps prev on the left and next on the right
   even though the page is RTL, matching universal media-player convention.
   Centered horizontally above the progress rail. */
.citation-controls {
  position: absolute;
  top: 0.95rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.citation-pause,
.citation-nav-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(201, 150, 47, 0.4);
  background: rgba(15, 31, 74, 0.88);
  color: var(--gold-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.18s ease, background 0.18s ease;
}

.citation-pause:hover,
.citation-pause:focus-visible,
.citation-nav-mini:hover,
.citation-nav-mini:focus-visible {
  transform: scale(1.08);
  background: rgba(15, 31, 74, 1);
}

.citation-pause svg,
.citation-nav-mini svg {
  width: 12px;
  height: 12px;
}

.citation-pause .citation-play-icon {
  display: none;
  transform: translateX(1px);  /* optical centering for the triangle */
}

.citation-shell.is-paused .citation-pause .citation-pause-icon {
  display: none;
}

.citation-shell.is-paused .citation-pause .citation-play-icon {
  display: block;
}

.citation-slide {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 230px) 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.citation-scholar {
  background: rgba(247, 240, 228, 0.85);
  border: 1px solid rgba(201, 150, 47, 0.34);
  border-radius: 16px;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

.citation-scholar-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(201, 150, 47, 0.5);
  object-fit: contain;
  object-position: center top;
  background: radial-gradient(circle at 50% 34%, #f0f1f5 0%, #d7d8de 58%, #70737b 100%);
  padding: 5px;
}

.citation-scholar-photo.is-male-avatar {
  padding: 1px;
  object-position: center 36%;
}

.citation-scholar-photo.is-real-photo {
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: none;
}

.citation-scholar-name {
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  color: var(--burgundy);
  margin: 0;
  line-height: 1.2;
}

.citation-scholar-role {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.citation-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.citation-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(122, 40, 56, 0.34);
  background: rgba(255, 255, 255, 0.86);
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.citation-social-link:hover,
.citation-social-link:focus-visible {
  background: var(--burgundy);
  color: var(--cream);
}

.citation-social-link svg {
  width: 16px;
  height: 16px;
}

.citation-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(201, 150, 47, 0.36);
  border-radius: 18px;
  padding: 1.2rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
}

.citation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.citation-topic {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--burgundy);
  background: rgba(201, 150, 47, 0.16);
  border: 1px solid rgba(201, 150, 47, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.citation-date {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 700;
}

.citation-divider {
  width: 66px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin-bottom: 0.85rem;
}

.citation-body {
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  line-height: 2.02;
  color: var(--text-dark);
  margin: 0;
  white-space: pre-wrap;
  overflow: visible;
  padding-left: 0.3rem;
}

.citation-tags {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.citation-tag {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.74rem;
  color: var(--brown-warm);
  background: var(--cream-warm);
  border: 1px solid var(--cream-dark);
  border-radius: 999px;
  padding: 0.16rem 0.52rem;
}

@media (max-width: 900px) {
  .citation-slide {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .citation-scholar {
    flex-direction: row;
    text-align: right;
    justify-content: space-between;
    padding: 0.9rem;
  }

  .citation-scholar-photo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
  }

  .citation-socials {
    justify-content: flex-start;
  }

}

@media (max-width: 640px) {
  .channels {
    padding: 3.8rem 0.8rem 4.2rem;
  }

  .channels-header {
    margin-bottom: 1.8rem;
  }

  .citation-shell {
    padding: 3.2rem 0.9rem 1.3rem;
    border-radius: 20px;
  }

  .citation-shell::before {
    inset: 6px;
    border-radius: 15px;
  }

  .citation-scholar {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    text-align: right;
    gap: 0.7rem;
  }

  .citation-scholar-photo {
    width: 64px;
    height: 64px;
  }

  .citation-scholar-name {
    font-size: 1.2rem;
  }

  .citation-scholar-role {
    font-size: 0.84rem;
    grid-column: 1 / -1;
    text-align: right;
  }

  .citation-socials {
    grid-column: 1 / -1;
  }

  .citation-card {
    padding: 0.95rem 0.8rem 0.8rem;
  }

  .citation-body {
    font-size: 0.96rem;
    line-height: 1.95;
  }

}

.videos {
  background:
    linear-gradient(
      to bottom,
      rgba(26, 31, 61, 0.22) 0%,
      rgba(15, 31, 74, 0.08) 4%,
      transparent 12%,
      transparent 88%,
      rgba(15, 31, 74, 0.14) 100%
    ),
    var(--cream);
  padding: 4rem 1.5rem 4.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.videos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%231a2d6b' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M 30 8 L 35 25 L 52 30 L 35 35 L 30 52 L 25 35 L 8 30 L 25 25 Z'/%3E%3Cpath d='M 0 0 L 8 0 L 0 8 Z'/%3E%3Cpath d='M 60 0 L 52 0 L 60 8 Z'/%3E%3Cpath d='M 0 60 L 0 52 L 8 60 Z'/%3E%3Cpath d='M 60 60 L 60 52 L 52 60 Z'/%3E%3Cline x1='30' y1='0' x2='30' y2='8'/%3E%3Cline x1='30' y1='52' x2='30' y2='60'/%3E%3Cline x1='0' y1='30' x2='8' y2='30'/%3E%3Cline x1='52' y1='30' x2='60' y2='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.videos::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 36px;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60'%3E%3Cdefs%3E%3ClinearGradient id='gv' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='transparent'/%3E%3Cstop offset='0.3' stop-color='%23c9962f'/%3E%3Cstop offset='0.7' stop-color='%23c9962f'/%3E%3Cstop offset='1' stop-color='transparent'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23gv)' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M 10 30 L 90 30'/%3E%3Cpath d='M 150 30 L 230 30'/%3E%3Cpath d='M 95 30 Q 110 18, 120 30 Q 130 42, 145 30'/%3E%3Ccircle cx='120' cy='30' r='3.5' fill='%23c9962f' stroke='none'/%3E%3Ccircle cx='120' cy='30' r='8' opacity='0.5'/%3E%3Cpath d='M 90 22 L 90 38' opacity='0.6'/%3E%3Cpath d='M 150 22 L 150 38' opacity='0.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.videos > * {
  position: relative;
  z-index: 1;
}

.videos-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.75rem;
}

.videos-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: var(--burgundy);
  margin: 0;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.videos-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem auto 0;
  max-width: 220px;
}

.videos-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.videos-divider-star {
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
}

.videos-grid {
  /* width: 100% needed because .videos is a flex column with align-items: center,
     which shrinks items to content. After click, the thumbnail's only child is an
     absolutely-positioned iframe with no intrinsic width — the whole chain would
     collapse to 0. Forcing width: 100% gives the chain a definite cross-axis size. */
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.videos-grid:has(.video-card:only-child) {
  display: block;
  max-width: 720px;
}

.videos-grid:has(.video-card:only-child) .video-card {
  max-width: 720px;
  margin: 0 auto;
}

.video-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(26, 45, 107, 0.08);
  border: 2px solid var(--brown-warm);
  background: var(--burgundy-deep);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 45, 107, 0.15);
}

.video-thumb {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.video-thumb:hover img {
  opacity: 0.85;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transform: translateY(-6px);
  transition: transform 0.2s ease;
}

.video-play-btn svg {
  width: 58px;
  height: 42px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.video-thumb:hover .video-play-btn svg {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.videos-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2.25rem auto 0;
  padding: 0.65rem 1.6rem;
  background: var(--burgundy);
  color: var(--cream);
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 31, 74, 0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.videos-more:hover,
.videos-more:focus-visible {
  background: var(--burgundy-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 31, 74, 0.28);
}

.videos-more svg {
  width: 0.9rem;
  height: 0.9rem;
}

.site-footer-landing {
  background: var(--burgundy-deep, #0f1f4a);
  color: rgba(255, 255, 255, 0.6);
}

.site-footer-landing .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

.site-footer-landing .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.site-footer-landing .footer-logo {
  width: 140px;
  height: auto;
  opacity: 0.9;
  margin-bottom: 0;
}

.site-footer-landing .footer-brand p {
  font-family: 'Amiri', serif;
  font-size: 15px;
  color: var(--gold-pale, #f0dca0);
  line-height: 1.6;
}

.site-footer-landing .footer-nav,
.site-footer-landing .footer-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.site-footer-landing .footer-nav h4,
.site-footer-landing .footer-partners h4,
.site-footer-landing .footer-social h4 {
  font-family: 'Amiri', serif;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 4px;
}

.site-footer-landing .footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer-landing .footer-nav a:hover {
  color: var(--gold-light, #e0b240);
}

.site-footer-landing .footer-partners a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer-landing .footer-partners a:hover {
  color: var(--gold-light, #e0b240);
}

.site-footer-landing .footer-social h4 {
  margin-bottom: 12px;
  text-align: center;
}

.site-footer-landing .footer-social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer-landing .footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer-landing .footer-social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.site-footer-landing .footer-social-links svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.site-footer-landing .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  text-align: center;
  padding: 16px 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-landing .footer-bottom .footer-credit::before {
  content: "•";
  margin-inline-end: 10px;
  color: rgba(255, 255, 255, 0.25);
}

.site-footer-landing .footer-credit {
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
}

.site-footer-landing .footer-credit a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(212, 182, 108, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer-landing .footer-credit a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

@media (min-width: 768px) {
  .site-footer-landing .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    text-align: right;
    padding: 48px 48px 32px;
  }

  .site-footer-landing .footer-brand,
  .site-footer-landing .footer-nav,
  .site-footer-landing .footer-partners {
    align-items: flex-start;
  }

  .site-footer-landing .footer-social h4 {
    text-align: right;
  }

  .site-footer-landing .footer-social-links {
    justify-content: flex-start;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

@media (min-width: 768px) {
  .site-header-landing {
    padding: 24px 48px;
  }

  .logo-group {
    gap: 14px;
  }

  .logo-group > img {
    width: 72px;
  }

  .logo img {
    width: 64px;
    height: 64px;
  }

  .logo-institute img {
    width: 64px;
    height: 64px;
  }

  .logo-separator {
    height: 40px;
  }

  .hero-content {
    padding: 0 48px 32px;
    margin-top: -20px;
  }

  .slogan {
    font-size: 48px;
  }

  .email-form {
    flex-direction: row-reverse;
    gap: 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 56px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
  }

  .email-form input[type="email"] {
    border: none;
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 18px 24px;
    text-align: right;
    direction: ltr;
  }

  .email-form input[type="email"]::placeholder {
    text-align: right;
  }

  .email-form input[type="email"]:focus {
    box-shadow: none;
  }

  .email-form button {
    border-radius: 56px;
    width: auto;
    white-space: nowrap;
    padding: 18px 36px;
    margin: 4px;
  }

  .form-container {
    max-width: 480px;
  }

  .hero-title-img {
    width: min(28vw, 328px);
    margin-top: -16px;
    margin-bottom: 8px;
  }

  .hero-divider {
    margin-bottom: 12px;
  }

  .phrase-container {
    margin-top: 20px;
  }
}

@media (min-width: 1024px) {
  .logo img {
    width: 72px;
    height: 72px;
  }

  .logo-institute img {
    width: 72px;
    height: 72px;
  }

  .logo-separator {
    height: 44px;
  }

  .logo-group {
    gap: 16px;
  }

  .logo-group > img {
    width: 82px;
  }

  .hero-bg img {
    object-position: 55% center;
  }

  .hero-content {
    margin-top: -26px;
  }

  .slogan {
    font-size: 56px;
  }

  .hero-title-img {
    width: min(23vw, 360px);
    margin-top: -20px;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .site-nav-landing {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 16px;
    padding: 20px 32px;
    background: var(--burgundy-deep, #0f1f4a);
    border-top: 1px solid rgba(201, 150, 47, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .site-nav-landing.open {
    display: flex;
  }

  .site-nav-landing a {
    font-size: 16px;
  }

  .hero-content {
    margin-top: -10px;
  }

  .slogan {
    font-size: clamp(25px, 7.1vw, 40px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-nav,
  .footer-partners,
  .footer-social {
    align-items: center;
  }

  .site-footer-landing {
    padding: 40px 24px 20px;
  }
}

.brand-wordmark {
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--gold-light);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.brand-wordmark-lg {
  font-size: 26px;
}

@media (min-width: 768px) {
  .brand-wordmark {
    font-size: 24px;
  }
  .brand-wordmark-lg {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .brand-wordmark-lg {
    font-size: 36px;
  }
}

.footer-brand-name {
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.01em;
  display: block;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .footer-brand-name {
    font-size: 32px;
  }
}
