/* ===================================================
   DR. MAYSOON WEBSITE – MASTER STYLESHEET
   Colors: Navy #1B2A4A | Gold #C9A84C | Cream #FAF7F0
   =================================================== */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --navy: #1B2A4A;
  --navy-dark: #0F1E36;
  --navy-mid: #243660;
  --gold: #C9A84C;
  --gold-light: #E2C880;
  --gold-dim: #A88330;
  --cream: #FAF7F0;
  --cream-dark: #F0EBE0;
  --white: #FFFFFF;
  --text-main: #1A1A2E;
  --text-muted: #5A6480;
  --text-light: #8A94B0;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 8px 32px rgba(27, 42, 74, 0.12);
  --shadow-lg: 0 20px 60px rgba(27, 42, 74, 0.18);
  --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.25);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-arabic: 'Tajawal', 'Cairo', 'Arial', sans-serif;

  --max-w: 1200px;
  --nav-h: 90px;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Arabic language overrides */
[data-lang="ar"] body,
html[data-lang="ar"] {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

html[data-lang="ar"] .hero-text {
  text-align: right;
}

html[data-lang="ar"] .about-grid {
  direction: rtl;
}

html[data-lang="ar"] .timeline-item {
  flex-direction: row;
}

html[data-lang="ar"] .role-list li {
  flex-direction: row;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── TYPOGRAPHY ─── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 700;
}

html[data-lang="ar"] h1,
html[data-lang="ar"] h2,
html[data-lang="ar"] h3,
html[data-lang="ar"] h4 {
  font-family: var(--font-arabic);
  font-weight: 700;
}

/* ─── UTILITY ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}

html[data-lang="ar"] .btn {
  font-family: var(--font-arabic);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.4);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: #0B1223;
  /* solid — prevents hero diagonal pattern bleed-through */
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  /* vertical padding for breathing room */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-seal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
  flex-shrink: 0;
}

.seal-initials {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--navy-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

html[data-lang="ar"] .logo-name {
  font-family: var(--font-arabic);
  font-size: 0.9rem;
}

.logo-title {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-lang="ar"] .logo-title {
  font-family: var(--font-arabic);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
}

/* Nav links — center-expanding underline hover */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 1rem;
  /* offset by left padding so line starts at text */
  width: calc(100% - 2rem);
  /* subtract left+right padding → text width only */
  height: 2px;
  background-color: #C9A84C;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

html[data-lang="ar"] .nav-links a {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
}


/* Nav actions — flex-shrink:0 prevents top-right UI from being compressed/clipped */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 50px;
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
}

.lang-icon {
  font-size: 0.9rem;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-dark);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}

html[data-lang="ar"] .nav-cta {
  font-family: var(--font-arabic);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(11, 18, 40, 0.97);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-lang="ar"] .mobile-menu a {
  font-family: var(--font-arabic);
}

.mobile-menu a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}

/* ─── SECTION HEADER ─── */
.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding: 0.35rem 1rem;
  border: 1.5px solid rgba(201, 168, 76, 0.3);
  border-radius: 50px;
  background: rgba(201, 168, 76, 0.06);
}

html[data-lang="ar"] .section-eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-arabic);
}

.section-header.light .section-eyebrow {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-header.light h2 {
  color: var(--white);
}

.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto 0;
  width: 80px;
}

.section-divider span {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.section-sub {
  margin-top: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

html[data-lang="ar"] .section-sub {
  font-family: var(--font-arabic);
}

/* ─── HERO ─── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 0 5rem;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 40%),
    repeating-linear-gradient(45deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.01) 60px,
      rgba(255, 255, 255, 0.01) 61px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* hero-visual must be position:relative so absolute cards anchor to it */
.hero-visual {
  position: relative;
}

/* Hero Text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

html[data-lang="ar"] .hero-badge {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

.hero-name {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-name em {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

html[data-lang="ar"] .hero-subtitle {
  font-family: var(--font-arabic);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

html[data-lang="ar"] .stat-number {
  font-family: var(--font-arabic);
}

.stat-plus {
  font-size: 1.3rem;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.4rem;
  font-weight: 500;
}

html[data-lang="ar"] .stat-label {
  font-family: var(--font-arabic);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ─── ANIMATED COUNTER ─── */
/* The stat-number starts clipped; JS adds .is-counting which triggers the slide-up */
.stat-number {
  overflow: hidden;
  /* clip the slide-up travel */
  display: block;
}

/* Inner value span created by JS */
.stat-number .counter-value {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.stat-number.is-counting .counter-value {
  opacity: 1;
  transform: translateY(0);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-frame {
  position: relative;
  width: clamp(300px, 40vw, 500px);
  aspect-ratio: 3/4;
}

.hero-image-bg {
  position: absolute;
  inset: -20px;
  border-radius: 60% 40% 55% 45% / 50% 50% 50% 50%;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.04));
  border: 1px solid rgba(201, 168, 76, 0.2);
  animation: morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {

  0%,
  100% {
    border-radius: 60% 40% 55% 45% / 50% 50% 50% 50%;
  }

  33% {
    border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
  }

  66% {
    border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
  }
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% 50% 45% 45% / 40% 40% 50% 50%;
  border: 3px solid rgba(201, 168, 76, 0.3);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(201, 168, 76, 0.12);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.45));
}

.hero-image-accent {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 80%;
  height: 80%;
  border: 2px solid rgba(201, 168, 76, 0.2);
  border-radius: 50% 50% 45% 45% / 40% 40% 50% 50%;
  z-index: 0;
}

/* Floating Cards — glassmorphism + independent levitation */
.hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.15);
  z-index: 2;
  min-width: 200px;
  border-left: 4px solid var(--gold);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* Click / press  — slight scale-down + shadow shrink */
.hero-floating-card:active {
  transform: scale(0.96) translateY(0) !important;
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.12);
}

html[data-lang="ar"] .hero-floating-card {
  border-left: none;
  border-right: 4px solid var(--gold);
}

.hero-floating-card i {
  color: var(--gold);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hero-floating-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.hero-floating-card small {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

html[data-lang="ar"] .hero-floating-card strong,
html[data-lang="ar"] .hero-floating-card small {
  font-family: var(--font-arabic);
}

/* Levitation keyframe — uses transform:translateY (safe: .fade-in-up has no CSS rule) */
@keyframes floatY {

  0%,
  100% {
    transform: translateY(0px);
  }

  40% {
    transform: translateY(-10px);
  }

  70% {
    transform: translateY(5px);
  }
}

.card-top {
  top: 5%;
  right: -10%;
  animation: floatY 6s ease-in-out infinite;
}

.card-bottom {
  bottom: 10%;
  left: -8%;
  animation: floatY 6s ease-in-out infinite;
  animation-delay: -1.5s;
  /* offset = async, independent drift */
}

html[data-lang="ar"] .card-top {
  right: auto;
  left: -10%;
}

html[data-lang="ar"] .card-bottom {
  left: auto;
  right: -8%;
}

/* Scroll hint — elastic bounce arrow */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.45);
  animation: scrollBounce 2.2s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4));
}

.scroll-hint i {
  font-size: 0.8rem;
}

/* Multi-stop elastic bounce — dips down, springs back */
@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.45;
  }

  30% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.75;
  }

  50% {
    transform: translateX(-50%) translateY(4px);
    opacity: 0.6;
  }

  65% {
    transform: translateX(-50%) translateY(9px);
    opacity: 0.8;
  }

  80% {
    transform: translateX(-50%) translateY(3px);
    opacity: 0.55;
  }
}

/* ─── ABOUT SECTION ─── */
.about-section {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

html[data-lang="ar"] .lead-text {
  font-family: var(--font-arabic);
}

.about-bio p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

html[data-lang="ar"] .about-bio p {
  font-family: var(--font-arabic);
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Info Cards */
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 42, 74, 0.06);
  display: flex;
  gap: 1.25rem;
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
}

.info-card-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

html[data-lang="ar"] .info-card-content h3 {
  font-family: var(--font-arabic);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.timeline-text {
  display: flex;
  flex-direction: column;
}

.timeline-text strong {
  font-size: 0.9rem;
  color: var(--navy);
  font-family: var(--font-sans);
}

html[data-lang="ar"] .timeline-text strong {
  font-family: var(--font-arabic);
}

.timeline-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

html[data-lang="ar"] .timeline-text span {
  font-family: var(--font-arabic);
}

/* Role List */
.role-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.role-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

html[data-lang="ar"] .role-list li {
  font-family: var(--font-arabic);
}

.role-list i {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

/* Humanitarian card */
.humanitarian-card {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, #fffdf5, var(--cream));
}

html[data-lang="ar"] .humanitarian-card {
  border-left: none;
  border-right: 4px solid var(--gold);
}

.humanitarian-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

html[data-lang="ar"] .humanitarian-card p {
  font-family: var(--font-arabic);
}

/* ─── TRAINING SECTION ─── */
.training-section {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.training-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.course-card {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.08); /* Adapting to cream background */
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-card:hover {
  background: var(--white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.3);
}

.course-card.featured {
  border: 2px solid #C9A84C;
  /* thick gold border — pops above siblings */
  background: var(--white);
  transform: scale(1.05);
  /* permanently 5% larger */
  animation: featuredPulse 3s ease-in-out infinite;
  z-index: 1;
  /* sit above neighbors visually */
}

/* Slow radiating gold shadow — no transform, just breathing glow */
@keyframes featuredPulse {

  0%,
  100% {
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.12), 0 8px 28px rgba(0, 0, 0, 0.18);
  }

  50% {
    box-shadow: 0 0 36px rgba(201, 168, 76, 0.30), 0 12px 36px rgba(0, 0, 0, 0.22);
  }
}

/* On hover: stop pulsing entirely, apply static lift & glow — readable at all times */
.course-card.featured:hover {
  animation: none;
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(201, 168, 76, 0.3);
}

.course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  overflow: hidden;
  /* clip the sheen sweep */
  background: radial-gradient(ellipse at 30% 50%, #F0D680 0%, #C9A84C 45%, #A8832E 100%);
  color: var(--navy-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: badgeGlow 3s ease-in-out infinite;
}

/* Warm radiating glow on badge */
@keyframes badgeGlow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 22px rgba(201, 168, 76, 0.75), 0 4px 12px rgba(0, 0, 0, 0.25);
  }
}

/* Sheen sweep — passes across badge every 6s */
.course-badge::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -80%;
  width: 50%;
  height: 140%;
  background: linear-gradient(105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.45) 50%,
      transparent 70%);
  transform: skewX(-15deg);
  animation: badgeSheen 6s ease-in-out infinite;
}

@keyframes badgeSheen {
  0% {
    left: -80%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  35% {
    left: 130%;
    opacity: 0;
  }

  100% {
    left: 130%;
    opacity: 0;
  }

  /* long pause before next sweep */
}

html[data-lang="ar"] .course-badge {
  right: auto;
  left: 1rem;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-arabic);
}

.course-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(27, 42, 74, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.4rem;
}

.course-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

html[data-lang="ar"] .course-tag {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-arabic);
}

.course-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.35;
}

html[data-lang="ar"] .course-title {
  font-family: var(--font-arabic);
}

.course-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

html[data-lang="ar"] .course-desc {
  font-family: var(--font-arabic);
}

.course-meta {
  display: flex;
  gap: 1rem;
  border-top: 1px solid rgba(27, 42, 74, 0.07);
  padding-top: 0.75rem;
  margin-top: auto;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

html[data-lang="ar"] .course-meta span {
  font-family: var(--font-arabic);
}

.course-meta i {
  color: var(--gold);
}

.course-cta {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  border-radius: 50px;
  padding: 0.55rem 1.2rem;
  transition: var(--transition);
  width: fit-content;
}

html[data-lang="ar"] .course-cta {
  font-family: var(--font-arabic);
}

.course-cta:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  transform: translateX(4px);
}

html[data-lang="ar"] .course-cta:hover {
  transform: translateX(-4px);
}

/* CTA card */
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  background: rgba(201, 168, 76, 0.07) !important;
  border: 2px dashed rgba(201, 168, 76, 0.3) !important;
}

.cta-card i {
  font-size: 2.5rem;
  color: var(--gold);
}

.cta-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy) !important;
}

html[data-lang="ar"] .cta-card h3 {
  font-family: var(--font-arabic);
}

.cta-card p {
  font-size: 0.9rem;
  color: var(--text-muted) !important;
}

html[data-lang="ar"] .cta-card p {
  font-family: var(--font-arabic);
}

/* ─── RESEARCH SECTION ─── */
.research-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}


/* ─── RESEARCH TIMELINE ─── */
.pub-timeline {
  position: relative;
  padding: 2rem 0 1rem;
}

/* Central glowing gold line */
.pub-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(201, 168, 76, 0.5) 10%,
      rgba(201, 168, 76, 0.5) 90%,
      transparent 100%);
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.25), 0 0 28px rgba(201, 168, 76, 0.12);
  z-index: 0;
}

/* Each timeline row */
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.tl-item:last-child {
  margin-bottom: 0;
}

/* Spacer fills the empty half of the row */
.tl-spacer {
  flex: 1;
}

/* The gold dot + its column */
.tl-connector {
  flex: 0 0 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 3px solid #C9A84C;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.5), 0 0 22px rgba(201, 168, 76, 0.25);
  flex-shrink: 0;
}

.tl-dot-gold {
  background: #C9A84C;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.7), 0 0 28px rgba(201, 168, 76, 0.35);
}

/* Glass card */
.tl-card {
  flex: 1;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.tl-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 168, 76, 0.3);
  transform: translateY(-5px);
}

/* Type badge (Book / Latest Research) */
.tl-card-type {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

html[data-lang="ar"] .tl-card-type {
  font-family: var(--font-arabic);
}

.tl-type-new {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-dim);
}

/* Large year display */
.tl-year {
  font-size: 3rem;
  font-family: var(--font-serif);
  color: var(--cream-dark);
  font-weight: 700;
  line-height: 1;
  margin-top: -0.25rem;
}

/* Left item: card on left, connector center, spacer right */
.tl-left {
  flex-direction: row;
}

/* Right item: spacer left, connector center, card right */
.tl-right {
  flex-direction: row;
}

/* RTL flip */
html[data-lang="ar"] .tl-left {
  flex-direction: row-reverse;
}

html[data-lang="ar"] .tl-right {
  flex-direction: row-reverse;
}

html[data-lang="ar"] .pub-timeline::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* ── Reuse existing pub-title, pub-desc, pub-meta styles exactly ── */
.pub-title {
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.45;
  font-family: var(--font-serif);
}

html[data-lang="ar"] .pub-title {
  font-family: var(--font-arabic);
}

.pub-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}

html[data-lang="ar"] .pub-desc {
  font-family: var(--font-arabic);
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: auto;
}

.pub-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

html[data-lang="ar"] .pub-meta span {
  font-family: var(--font-arabic);
}

.pub-meta i {
  color: var(--gold);
}

/* ── Mobile: collapse to left-edge single column ── */
@media (max-width: 768px) {
  .pub-timeline::before {
    left: 18px;
    transform: none;
  }

  html[data-lang="ar"] .pub-timeline::before {
    left: auto;
    right: 18px;
    transform: none;
  }

  .tl-item,
  .tl-left,
  .tl-right {
    flex-direction: row !important;
    align-items: flex-start;
  }

  .tl-spacer {
    display: none;
  }

  .tl-connector {
    flex: 0 0 44px;
    padding-top: 1.25rem;
  }

  .tl-card {
    padding: 1.5rem;
  }

  .tl-year {
    font-size: 2.2rem;
  }

  html[data-lang="ar"] .tl-item,
  html[data-lang="ar"] .tl-left,
  html[data-lang="ar"] .tl-right {
    flex-direction: row-reverse !important;
  }

  html[data-lang="ar"] .tl-connector {
    flex: 0 0 44px;
  }
}

.research-cta {
  text-align: center;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.research-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

html[data-lang="ar"] .research-cta p {
  font-family: var(--font-arabic);
}


.pub-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 42, 74, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.pub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}

.pub-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(27, 42, 74, 0.07);
  color: var(--navy);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

html[data-lang="ar"] .pub-type-badge {
  font-family: var(--font-arabic);
}

.new-badge {
  background: rgba(201, 168, 76, 0.12) !important;
  color: var(--gold-dim) !important;
}

.pub-year {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--cream-dark);
  font-weight: 700;
  line-height: 1;
  margin-top: -0.5rem;
}

.pub-title {
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.4;
  font-family: var(--font-serif);
}

html[data-lang="ar"] .pub-title {
  font-family: var(--font-arabic);
}

.pub-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

html[data-lang="ar"] .pub-desc {
  font-family: var(--font-arabic);
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid rgba(27, 42, 74, 0.07);
  padding-top: 1rem;
  margin-top: auto;
}

.pub-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

html[data-lang="ar"] .pub-meta span {
  font-family: var(--font-arabic);
}

.pub-meta i {
  color: var(--gold);
}

.research-cta {
  text-align: center;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.research-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

html[data-lang="ar"] .research-cta p {
  font-family: var(--font-arabic);
}

/* ─── GALLERY SECTION (Cream) ─── */
.gallery-section {
  background: var(--cream);
  position: relative;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.1);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-arabic);
}

.filter-btn:hover {
  background: rgba(27, 42, 74, 0.05);
  color: var(--navy);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
}

/* ── Filter Buttons Contextual Contrast (Dark/Navy Sections) ── */
.section-header.light ~ .gallery-filters .filter-btn,
.section.dark .filter-btn,
.section[style*="var(--navy)"] .filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}

.section-header.light ~ .gallery-filters .filter-btn:hover,
.section.dark .filter-btn:hover,
.section[style*="var(--navy)"] .filter-btn:hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--white);
  border-color: rgba(201, 168, 76, 0.3);
}

.section-header.light ~ .gallery-filters .filter-btn.active,
.section.dark .filter-btn.active,
.section[style*="var(--navy)"] .filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

/* ─── CONTACT SECTION (Navy) ─── */
.contact-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-card i {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-family: var(--font-sans);
  margin-bottom: 0.3rem;
}

html[data-lang="ar"] .contact-card h3 {
  font-family: var(--font-arabic);
  text-transform: none;
  letter-spacing: 0;
}

.contact-card a,
.contact-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

html[data-lang="ar"] .contact-card a,
html[data-lang="ar"] .contact-card p {
  font-family: var(--font-arabic);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  flex: 1;
  justify-content: center;
}

html[data-lang="ar"] .social-btn {
  font-family: var(--font-arabic);
}

.whatsapp-btn {
  background: #25D366;
  color: var(--white);
}

.whatsapp-btn:hover {
  background: #1EB858;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.linkedin-btn {
  background: #0A66C2;
  color: var(--white);
}

.linkedin-btn:hover {
  background: #0958a8;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.35);
}

.instagram-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
}

.instagram-btn:hover {
  background: linear-gradient(45deg, #e38222 0%, #d5572b 25%, #cb1632 50%, #bb1255 75%, #ab0777 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220, 39, 67, 0.35);
}

.contact-quote {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
}

html[data-lang="ar"] .contact-quote {
  border-left: none;
  border-right: 3px solid var(--gold);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.contact-quote blockquote p {
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.75;
}

html[data-lang="ar"] .contact-quote blockquote p {
  font-family: var(--font-arabic);
}

.contact-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* Contact Form */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

html[data-lang="ar"] .form-group label {
  font-family: var(--font-arabic);
  text-transform: none;
  letter-spacing: 0;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

html[data-lang="ar"] .form-group input,
html[data-lang="ar"] .form-group textarea,
html[data-lang="ar"] .form-group select {
  font-family: var(--font-arabic);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group select option {
  background: var(--navy);
  color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #e05050;
}

textarea {
  resize: vertical;
}

#form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

#form-status.success {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
}

#form-status.error-msg {
  background: rgba(224, 80, 80, 0.12);
  color: #e05050;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

html[data-lang="ar"] .footer-copy {
  font-family: var(--font-arabic);
}

/* ─── BACK TO TOP ─── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-dark);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
}

html[data-lang="ar"] #back-to-top {
  right: auto;
  left: 2rem;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.45);
}

/* ─── ANIMATIONS ─── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeInRight 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

html[data-lang="ar"] .fade-in-right {
  transform: translateX(-40px);
  animation-name: fadeInLeft;
}

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

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="0"] {
  animation-delay: 0ms;
}

[data-delay="100"] {
  animation-delay: 100ms;
}

[data-delay="200"] {
  animation-delay: 200ms;
}

[data-delay="300"] {
  animation-delay: 300ms;
}

[data-delay="400"] {
  animation-delay: 400ms;
}

[data-delay="500"] {
  animation-delay: 500ms;
}

[data-delay="600"] {
  animation-delay: 600ms;
}

/* Reveal delay helpers (for JS-driven class toggle) */
.reveal[data-delay="100"] {
  transition-delay: 100ms;
}

.reveal[data-delay="200"] {
  transition-delay: 200ms;
}

.reveal[data-delay="300"] {
  transition-delay: 300ms;
}

.reveal[data-delay="400"] {
  transition-delay: 400ms;
}

.reveal[data-delay="500"] {
  transition-delay: 500ms;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content {
    gap: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .publications-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  html[data-lang="ar"] .hero-content {
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-name {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    gap: 0.5rem;
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-floating-card {
    display: none;
  }

  .card-top,
  .card-bottom {
    display: none;
  }

  .hero-image-frame {
    width: clamp(220px, 65vw, 360px);
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .course-card.featured {
    transform: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .social-links {
    flex-direction: column;
  }
}

/* ============================================================
   STRICT FIX: Hero Floating Cards (Manual Override)
   Based on actual classes identified in HTML: .hero-floating-card, .card-top, .card-bottom
   ============================================================ */

/* 1. Define the Keyframes for gentle vertical floating.
   Using the 'translate' property instead of 'transform' to avoid conflict with fade-in animation. */
@keyframes strictFloatingTranslate {

  0%,
  100% {
    translate: 0 0px;
  }

  50% {
    translate: 0 -12px;
    /* Float up by 12px */
  }
}

/* 2. Apply styles to both floating cards using the base class found in HTML */
.hero-floating-card {
  /* Animation properties: slow, smooth, infinite */
  animation: strictFloatingTranslate 6s ease-in-out infinite !important;

  /* Premium Glassmorphism aesthetic against the dark navy background */
  background: rgba(255, 255, 255, 0.05) !important;
  /* Semi-transparent white */
  backdrop-filter: blur(12px) !important;
  /* High quality blur */
  -webkit-backdrop-filter: blur(12px) !important;
  /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  /* Subtle elegant border edge */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
  /* Dark deep shadow for depth */

  /* Ensure text inside remains highly legible */
  color: #FFFFFF !important;

  /* Smooth transition for active state */
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Ensure data-delay attributes don't override our animation (if applicable) */
.hero-floating-card[data-delay] {
  animation-fill-mode: both !important;
}

/* 3. Set up Asynchronous drift by applying delays to specific classes */
.hero-floating-card.card-top {
  animation-delay: 0s !important;
}

.hero-floating-card.card-bottom {
  animation-delay: 1.5s !important;
  /* 1.5s offset makes them move independently */
}

/* 4. Tactile Click/Press feedback (Scale down effect on click) */
.hero-floating-card:active {
  transform: scale(0.96) !important;
  /* Slightly shrink when clicked */
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.3) !important;
  /* Reduce shadow to match pressed state */
}

.hero-floating-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ─── 1. التأسيس المشترك لكل بطاقات الدورات ─── */
.course-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border-radius: 12px;
  /* تأكد من دوران الحواف */
}

/* ─── 2. حركة الرفع والتوهج عند التمرير (لكل البطاقات) ─── */
.course-card:hover {
  transform: translateY(-6px) !important;
  /* توهج ذهبي فخم وناعم يشبه توهج الأزرار */
  box-shadow: 0 12px 30px rgba(201, 168, 76, 0.25) !important;
}

/* ─── 3. نبض البطاقة المميزة (الأكثر طلباً) وهي مرتاحة ─── */
@keyframes goldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(201, 168, 76, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
  }
}

.course-card.featured {
  /* تمييز البطاقة بحد ذهبي خفيف عشان تبين أفخم */
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  animation: goldPulse 2.5s infinite !important;
}

/* ─── 4. اللمسة السحرية: تثبيت البطاقة المميزة عند التمرير للقراءة ─── */
.course-card.featured:hover {
  animation: none !important;
  /* إيقاف النبض فوراً */
  transform: translateY(-6px) scale(1.02) !important;
  /* رفع وتكبير خفيف جداً */
  box-shadow: 0 15px 35px rgba(201, 168, 76, 0.35) !important;
  /* توهج ثابت */
}

/* ─── إجبار البطاقة المميزة على التكبير والبروز ─── */
.course-card.featured {
  transform: scale(1.05) !important;
  /* تكبير دائم بنسبة 5% */
  z-index: 10 !important;
  /* إجبارها تطلع فوق البطاقات اللي جنبها عشان ما تنقص */
}

/* الحفاظ على الحجم الكبير مع الرفع عند التمرير */
.course-card.featured:hover {
  transform: scale(1.05) translateY(-6px) !important;
  /* دمج التكبير مع الرفع */
  z-index: 11 !important;
}

/* ============================================================
   تأثيرات الأزرار (التوهج الذهبي والفخامة)
   ============================================================ */

/* 1. التأسيس المشترك لكل الأزرار الأساسية */
.btn-primary {
  transition: all 0.3s ease !important;
  /* حركة سلسة جداً */
  position: relative;
}

/* 2. تفاعل التمرير (Hover): رفع خفيف + توهج ذهبي فخم */
.btn-primary:hover {
  transform: translateY(-4px) !important;
  /* رفع الزر للأعلى قليلاً */
  box-shadow: 0 12px 25px rgba(201, 168, 76, 0.35) !important;
  /* توهج ذهبي دافئ ومريح */
  /* إذا كان لون خلفية الزر كحلي، التوهج الذهبي رح يخليه يبرز بشكل خرافي */
}

/* 3. تفاعل النقر (Active): الزر ينضغط لتحت مثل الزر الحقيقي */
.btn-primary:active {
  transform: translateY(0) scale(0.97) !important;
  box-shadow: 0 5px 10px rgba(201, 168, 76, 0.2) !important;
}

/* ─── سلاسة روابط القائمة العلوية ─── */
.nav-link {
  transition: all 0.3s ease !important;
}

.nav-link:hover {
  transform: translateY(-2px) !important;
  /* رفعة خفيفة جداً */
  color: #C9A84C !important;
  /* لمعة ذهبية للنص */
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.3) !important;
}

/* ─── نبض زر "تواصل معي" في القائمة ─── */
@keyframes navButtonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(201, 168, 76, 0);
    transform: scale(1.02);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
    transform: scale(1);
  }
}

/* افترضت إن كلاس الزر اللي فوق اسمه .btn-contact أو .nav-cta، عدله إذا كان مختلف عندك */
.navbar .btn-primary {
  animation: navButtonPulse 3s infinite !important;
}

/* ─── تصميم المربعات الجانبية الطافية ─── */
.floating-socials {
  position: fixed;
  top: 50%;
  /* توسيط عمودي */
  right: 20px;
  /* بتقدر تغيرها لـ left إذا بدك اياهم عاليسار */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  /* عشان يضلوا فوق كل شي */
}

.social-box {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  font-size: 1.2rem;
  transition: all 0.3s ease !important;
}

/* تفاعل المربعات لما تحط الماوس عليها */
.social-box:hover {
  background: rgba(201, 168, 76, 0.15) !important;
  border-color: #C9A84C !important;
  color: #C9A84C !important;
  transform: translateX(-5px) scale(1.1) !important;
  /* المربع بيبرز لبرة وبيكبر شوي */
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.3) !important;
}

/* ─── لمعة ونبض زر "احجز استشارة" في القائمة ─── */
.nav-cta {
  position: relative;
  overflow: hidden;
  /* عشان اللمعة ما تطلع برا الزر */
  animation: ctaGlow 3s infinite !important;
  /* التوهج الخارجي */
}

/* التوهج الخارجي الذهبي (Pulse) */
@keyframes ctaGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(201, 168, 76, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
  }
}

/* اللمعة الزجاجية اللي بتمر من فوق الزر (Shine) */
.nav-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shineEffect 5s infinite;
}

@keyframes shineEffect {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  /* اللمعة بتمر بسرعة (20% من الوقت) */
  100% {
    left: 200%;
  }

  /* وبتستنى باقي الـ 5 ثواني عشان ما تكون مزعجة */
}

/* ─── الألوان العكسية تنطبق على كل مربع بشكل مستقل ─── */
.social-box.dark-mode {
  background: rgba(10, 25, 47, 0.08) !important;
  /* كحلي شفاف */
  border-color: rgba(10, 25, 47, 0.2) !important;
  color: #0a192f !important;
  /* أيقونة كحلية */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.social-box.dark-mode:hover {
  background: #0a192f !important;
  color: #C9A84C !important;
  border-color: #C9A84C !important;
}

/* ======================== GALLERY SECTION & MASONRY ======================== */
.gallery-section {
  padding-bottom: 80px;
}

/* ─── Filtering Menu ─── */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  color: #0A192F;
  /* Navy */
  border: 1px solid #0A192F;
  padding: 8px 24px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease !important;
}

/* التفاعل الفخم: يتحول كحلي والنص ذهبي */
.filter-btn:hover,
.filter-btn.active {
  background: #0A192F !important;
  color: #C9A84C !important;
  /* Gold */
  border-color: #0A192F !important;
  box-shadow: 0 8px 20px rgba(10, 25, 47, 0.2) !important;
  transform: translateY(-2px);
}

/* ─── Masonry Grid Layout ─── */
.masonry-grid {
  column-count: 3;
  column-gap: 20px;
}

/* Responsive Masonry */
@media (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transform-origin: center;
  transition: all 0.4s ease;
}

/* صنف الفلترة المخفي */
.masonry-item.hidden {
  display: none;
}

.masonry-img-wrap img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

/* تأثير مرور الماوس على الصورة (Navy Glass) */
.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #C9A84C;
  font-size: 2.5rem;
}

.masonry-item:hover .img-overlay {
  opacity: 1;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

/* ─── Lightbox Overlay (Glassmorphism) ─── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 25, 47, 0.85);
  /* Navy transparent */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
  color: #C9A84C;
  transform: rotate(90deg);
  /* حركة لطيفة عند إغلاق الصورة */
}

/* ─── حياة وتفاعل العناوين الصغيرة (Eyebrows) ─── */
.section-eyebrow {
  transition: all 0.3s ease !important;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.section-eyebrow:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(201, 168, 76, 0.1);
  /* خلفية ذهبية شفافة جداً */
  border-color: #C9A84C;
  box-shadow: 0 4px 10px rgba(201, 168, 76, 0.15);
}

/* ─── التفاعل الموحد لبطاقات "نبذة عني" و "التدريب" ─── */
/* 1. النبض والرفع الخفيف جداً للبوكس */
.info-card,
.course-card:not(.featured) {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.info-card:hover,
.course-card:not(.featured):hover {
  transform: translateY(-4px) !important;
  /* رفع أخف من البطاقة المميزة */
  box-shadow: 0 10px 25px rgba(10, 25, 47, 0.08) !important;
  /* ظل كحلي ناعم جداً */
}

/* 2. الأيقونات: حركتها وتغير لونها للذهبي (ستايل G1) */
.info-card-icon i,
.course-icon i {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  /* حركة فيها مرونة (Bounce) */
}

.info-card:hover .info-card-icon i,
.course-card:hover .course-icon i {
  color: #C9A84C !important;
  /* تحول للذهبي */
  transform: scale(1.25) rotate(5deg) !important;
  /* تكبير وميلان بسيط يعطي حياة */
}

/* ============================================================
   نظام الظهور السلس (Scroll Reveal 2.0)
   ============================================================ */

/* 1. حالة الإخفاء (فقط للعناصر اللي تحت الواجهة) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  /* مسحوبة لتحت */
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

/* 2. حالة الظهور (لما الجافاسكريبت يلقطها) */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 3. استرجاع حركة النبض والماوس للبطاقات (أولوية قصوى) */
/* هاد السطر بيجبر المتصفح يسمح للبطاقة ترتفع لما تحط الماوس عليها حتى لو كانت active */
.info-card.reveal.active:hover,
.course-card.reveal.active:hover,
.course-card.featured.reveal.active:hover {
  transform: translateY(-6px) scale(1.02) !important;
}

/* 4. تفعيل التأخير (Cascade) عشان يظهروا ورا بعض زي السلم */
.reveal[data-delay="100"] {
  transition-delay: 0.1s;
}

.reveal[data-delay="200"] {
  transition-delay: 0.2s;
}

.reveal[data-delay="300"] {
  transition-delay: 0.3s;
}

.reveal[data-delay="400"] {
  transition-delay: 0.4s;
}

.reveal[data-delay="500"] {
  transition-delay: 0.5s;
}

/* ─── فواصل الأقسام الناعمة (Fading Glow Divider) ─── */
.section-divider {
  height: 2px !important;
  width: 150px !important;
  /* طول الخط */
  margin: 15px auto 30px auto !important;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.8), transparent) !important;
  /* يتلاشى على الأطراف */
  border: none !important;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.4) !important;
  /* توهج ذهبي خفيف (Blur) */
}

/* إخفاء أي أشكال هندسية قاسية كانت موجودة جوا الفاصل القديم */
.section-divider span {
  display: none !important;
}

/* ============================================================
   ترقيات الخط الزمني (Timeline) وفصل الأقسام
   ============================================================ */

/* ─── 1. حياة ونبض نقاط الخط الزمني ─── */
@keyframes timelinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(201, 168, 76, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
  }
}

/* توحيد شكل النقاط وإضافة النبض المستمر */
.tl-dot,
.tl-dot-gold {
  animation: timelinePulse 2.5s infinite !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  background-color: #FAF8F5 !important;
  /* لون كريمي من جوا */
  border: 3px solid #C9A84C !important;
  /* إطار ذهبي */
}

/* تفاعل النقطة لما الماوس يمر على البحث (تكبر وتضوي ذهبي كامل) */
.tl-item:hover .tl-dot,
.tl-item:hover .tl-dot-gold {
  transform: scale(1.4) !important;
  background-color: #C9A84C !important;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.8) !important;
}

/* ─── 2. فصل قسم المعرض عن الأبحاث بأناقة ─── */
.gallery-section {
  padding-top: 80px !important;
  /* مساحة تنفس من فوق */
  padding-bottom: 80px !important;
  /* خط علوي ذهبي شفاف يفصل بين القسمين بنعومة */
  border-top: 1px solid rgba(201, 168, 76, 0.15) !important;
}

/* ─── زر الإرسال في قسم التواصل (تباين فخم على الفاتح) ─── */
.contact-section .btn-primary {
  background-color: #0A192F !important;
  /* لون الزر كحلي */
  color: #FAF8F5 !important;
  /* النص فاتح */
  border: 1px solid #0A192F !important;
}

.contact-section .btn-primary:hover {
  background-color: #C9A84C !important;
  /* يقلب ذهبي عند التمرير */
  border-color: #C9A84C !important;
  color: #0A192F !important;
  /* النص يصير كحلي */
  box-shadow: 0 10px 25px rgba(201, 168, 76, 0.4) !important;
  /* توهج ذهبي */
  transform: translateY(-4px) !important;
}

/* ─── أزرار فلترة المعرض (متناسقة مع الخلفية الفاتحة) ─── */
.gallery-filters .filter-btn {
  color: var(--navy) !important;
  border-color: rgba(10, 25, 47, 0.2) !important;
  background: transparent !important;
  transition: all 0.3s ease !important;
}

/* تفاعل التأشير (Hover) */
.gallery-filters .filter-btn:hover:not(.active) {
  background-color: var(--gold) !important;
  color: var(--white) !important;
  border-color: var(--gold) !important;
}

/* حالة التفعيل (Active) - تظل ذهبية بوضوح */
.gallery-filters .filter-btn.active {
  background-color: var(--gold) !important;
  color: var(--white) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3) !important;
}

/* ═══════════════════════════════════════════════
   VISION & MISSION SECTION
═══════════════════════════════════════════════ */
.vision-section {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(201, 168, 76, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.vision-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.vision-card:hover {
  border-color: rgba(201, 168, 76, 0.42);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
}

.vision-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.18), rgba(201, 168, 76, 0.06));
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: 1.35rem;
  flex-shrink: 0;
}

.vision-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

html[data-lang="ar"] .vision-card h3 {
  font-family: var(--font-arabic);
  font-size: 1.25rem;
}

.vision-card > p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.85;
}

html[data-lang="ar"] .vision-card > p {
  font-family: var(--font-arabic);
  line-height: 1.95;
}

/* Mission list */
.vision-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.vision-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.97rem;
  line-height: 1.7;
}

html[data-lang="ar"] .vision-list li {
  font-family: var(--font-arabic);
  line-height: 1.85;
}

.vision-list li i {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 0.2em;
  flex-shrink: 0;
}

.vision-list li span {
  flex: 1;
}

/* ─── VISION RESPONSIVE ─── */
@media (max-width: 768px) {
  .vision-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── FLOATING SOCIALS OVERRIDE ─── */
.floating-socials {
    /* Default (Light/Cream Section): Light Glass container, Dark Icons */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    
    /* The glass edge */
    border: 1px solid rgba(27, 42, 74, 0.1) !important;
    border-right: 1px solid rgba(27, 42, 74, 0.05) !important;
    border-bottom: 1px solid rgba(27, 42, 74, 0.05) !important;
    
    /* Floating shadow */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    
    /* Reset padding/shape if needed */
    border-radius: 40px !important;
    padding: 0.5rem !important;
}

.floating-socials a {
  background: transparent !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  color: var(--navy) !important;
}

.floating-socials a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-3px) !important;
}

/* ── ADAPTIVE CONTRAST (DARK MODE) ── */
.floating-socials.dark-mode {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01)) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

.floating-socials.dark-mode a {
    color: var(--white) !important;
}

.floating-socials.dark-mode a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ─── CATASTROPHIC TEXT CONTRAST FIX ─── */
.tl-card *,
.course-card[style*="var(--navy)"] *,
.pub-card[style*="var(--navy)"] *,
[class*="-card bg-navy"] *,
[style*="rgba(15, 23, 42"] * {
    color: var(--white) !important;
}

.tl-card p, .course-card[style*="var(--navy)"] p, .pub-card[style*="var(--navy)"] p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.tl-card i, .course-card[style*="var(--navy)"] i, .tl-card .course-tag {
    color: var(--gold) !important;
}