/*
 * ╔═══════════════════════════════════════════════════════════════╗
 * ║          ABOUT PAGE - CLEANED & COMPLIANT                     ║
 * ║              صفحة عن المدرسة - منظف 100%                     ║
 * ╚═══════════════════════════════════════════════════════════════╝
 * 
 * ✅ 100% متوافق مع دستور التصميم
 * ✅ صفر hardcoded colors - كل شيء عبر CSS Variables
 * ✅ صفر !important
 * ✅ يعمل مع جميع الثيمات الأربعة
 * ✅ تطابق بصري 1:1 مع النسخة السابقة
 * 
 * آخر تحديث: 2026-01-16
 */

/* صفحة عن المدرسة - تصميم حديث وإبداعي */

/* ========== المتغيرات العامة ========== */
:root {
  --about-text: var(--text-primary);
  --about-text-light: var(--text-secondary);
  --about-bg: var(--surface-0);
  --about-section-bg: var(--neutral-100);
  --about-border: rgba(var(--primary-color-rgb), 0.1);
  --about-shadow: 0 10px 30px rgba(var(--black-rgb), 0.1);
  --about-shadow-hover: 0 20px 60px rgba(var(--black-rgb), 0.15);
  --about-transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== قسم الهيرو الجديد - تصميم نظيف ========== */
/* توحيد مع page-hero - Background Architecture Audit */
.about-hero {
  position: relative;
  min-height: var(--hero-min-height-desktop);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

.about-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-inline: clamp(12px, 4vw, 24px);
  padding-block: 0;
  background: transparent;
}

.about-hero .hero-badge {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-white);
  padding: var(--hero-badge-padding);
  border-radius: var(--hero-badge-radius);
  font-size: var(--hero-badge-font-size);
  font-weight: var(--hero-badge-font-weight);
  margin-bottom: var(--hero-badge-margin-bottom);
}

.about-hero .hero-title {
  font-size: var(--hero-title-font-size);
  font-weight: var(--hero-title-font-weight);
  color: var(--about-text);
  margin-bottom: var(--hero-title-margin-bottom);
  line-height: var(--hero-title-line-height);
}

.about-hero .hero-heading {
  display: block;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--about-text-light);
  letter-spacing: 0.02em;
  margin-bottom: 0.15em;
}

.about-hero .hero-title-sub {
  display: block;
  background: linear-gradient(135deg, var(--primary-grad), var(--secondary-grad));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero .hero-subtitle {
  font-size: var(--hero-subtitle-font-size);
  color: var(--about-text-light);
  margin-bottom: 25px;
  line-height: var(--hero-subtitle-line-height);
}

/* زر Hero في صفحة About */
.about-hero .hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  color: var(--text-white);
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--about-transition);
}

@media (hover: hover) and (pointer: fine) {
  .about-hero .hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--black-rgb), 0.2);
  }
}

#about .about-hero .hero-btn i {
  color: var(--text-white);
}

/* حركة هيرو About موحّدة عبر hero-unified.css (transition-based، يُفعّل عبر .hero-revealed) */

/* ========== قسم المعلومات السريعة — شبكة بينتو ========== */
.quick-info {
  padding: 80px 0;
  background: var(--about-bg);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 50px;
}

.bento-item {
  background: var(--about-bg);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .bento-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  }

  .bento-item:hover .bento-accent {
    opacity: 1;
    width: 6px;
  }
}

.bento-accent {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-start-end-radius: 20px;
  border-end-end-radius: 20px;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  opacity: 0.6;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.bento-wide {
  grid-column: span 2;
}

.bento-body {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
}

.bento-body-vertical {
  flex-direction: column;
  text-align: center;
  padding: 30px 20px;
}

.bento-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 16px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  transition: transform 0.4s ease, background 0.3s ease, border-radius 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  .bento-item:hover .bento-icon {
    transform: scale(1.08);
    border-radius: 50%;
  }
}

.bento-body-vertical .bento-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  margin-bottom: 4px;
}

.bento-text {
  flex: 1;
  min-width: 0;
}

.bento-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--about-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.bento-body-vertical .bento-title {
  font-size: 1rem;
}

.bento-desc {
  color: var(--about-text-light);
  line-height: 1.6;
  font-size: 0.9rem;
  margin: 0;
}

.bento-body-vertical .bento-desc {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ========== قسم التاريخ التفاعلي - تصميم مستوحى من Inbox ========== */
.history-section {
  padding: 100px 0;
  background: var(--about-section-bg);
  position: relative;
  overflow: hidden;
}

.history-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shine-1), transparent);
}

.history-floating-element {
  position: absolute;
  top: 15%;
  inset-inline-end: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.02;
  border-radius: 50%;
  animation: floatGentle 15s ease-in-out infinite;
}

.history-section::after {
  content: '';
  position: absolute;
  bottom: 20%;
  inset-inline-start: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
  opacity: 0.015;
  border-radius: 50%;
  animation: floatGentle 12s ease-in-out infinite reverse;
}

@keyframes floatGentle {

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

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-line {
  display: none;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: stretch;
  opacity: 0;
  transform: translateX(-80px);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:nth-child(even) {
  transform: translateX(80px);
}

.timeline-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }

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

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

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

.timeline-content {
  flex: 1;
  background: var(--surface-1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.1);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 0;
}

@media (hover: hover) and (pointer: fine) {
  .timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(var(--primary-color-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.4);
  }
}

.timeline-content-inner {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-2);
  min-width: 0;
}

.timeline-node {
  display: none;
}

.timeline-sidebar {
  flex-shrink: 0;
  width: 180px;
  padding: 20px;
  background: linear-gradient(135deg, var(--surface-1), var(--surface-2));
  border-inline-start: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
}

.timeline-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .timeline-content:hover .timeline-sidebar::before {
    opacity: 0.4;
  }

  .timeline-content:hover .timeline-icon-wrapper {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(var(--black-rgb), 0.2);
  }

  .timeline-content:hover .timeline-sidebar .timeline-date {
    background: var(--surface-0);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--black-rgb), 0.08);
  }

  .timeline-content:hover .timeline-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
  }
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-icon-wrapper {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(var(--black-rgb), 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.timeline-header-text {
  flex: 1;
  min-width: 0;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--neutral-500);
  white-space: nowrap;
  display: block;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.8;
}

.timeline-sidebar .timeline-date {
  font-size: 0.75rem;
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: background 0.3s ease, transform 0.3s ease;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin: 0;
  line-height: 1.4;
}

.timeline-description {
  color: var(--neutral-500);
  line-height: 1.65;
  margin: 0;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.timeline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
}

.timeline-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neutral-200), var(--neutral-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.02em;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* ========== قسم الرؤية والرسالة — ين-يانغ ========== */
.vision-mission {
  padding: 100px 0;
  background: var(--about-bg);
}

.yinyang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 60px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.yinyang-card {
  position: relative;
  padding: 50px 40px;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.yinyang-light {
  background: var(--about-bg);
}

.yinyang-dark {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.yinyang-bg-icon {
  position: absolute;
  bottom: -20px;
  inset-inline-start: -20px;
  font-size: 8rem;
  opacity: 0.05;
  color: var(--primary-color);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  line-height: 1;
}

.yinyang-dark .yinyang-bg-icon {
  color: #fff;
  opacity: 0.08;
  bottom: auto;
  top: -20px;
  inset-inline-start: auto;
  inset-inline-end: -20px;
}

.yinyang-card:hover .yinyang-bg-icon {
  opacity: 0.12;
  transform: scale(1.1);
}

.yinyang-body {
  position: relative;
  z-index: 1;
}

.yinyang-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
  color: #fff;
  transition: transform 0.4s ease, background 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.yinyang-icon-inverted {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.yinyang-card:hover .yinyang-icon {
  transform: scale(1.1);
}

.yinyang-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--about-text);
}

.yinyang-dark .yinyang-title {
  color: #fff;
}

.yinyang-desc {
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--about-text-light);
  margin: 0;
}

.yinyang-dark .yinyang-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ========== قسم القيم — خلايا نحل سداسية ========== */
.values-section {
  padding: 100px 0;
  background: var(--about-section-bg);
  position: relative;
  overflow: hidden;
}

.honeycomb-grid {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.honeycomb-row {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.honeycomb-row-bottom {
  margin-top: -40px;
}

.hex-cell {
  width: 260px;
  height: 290px;
  position: relative;
}

.hex-shape {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--about-bg);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  cursor: pointer;
}

.hex-shape::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0.06;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.hex-shape::after {
  content: '';
  position: absolute;
  inset: 3px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--about-bg);
  z-index: 1;
}

.hex-cell:hover .hex-shape {
  transform: scale(1.06);
}

.hex-cell:hover .hex-shape::before {
  opacity: 0.15;
}

.hex-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 25px;
  text-align: center;
}

.hex-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.4rem;
  color: #fff;
  transition: transform 0.4s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hex-cell:hover .hex-icon {
  transform: scale(1.15);
}

.hex-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--about-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.hex-desc {
  color: var(--about-text-light);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
  max-width: 180px;
}

/* ========== العناوين المشتركة ========== */
#about .section-header {
  text-align: center;
  margin-bottom: 60px;
}

#about .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--about-text);
  margin-bottom: 20px;
  position: relative;
}

#about .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

#about .section-subtitle {
  font-size: 1.2rem;
  color: var(--about-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* تابلت وضيق: بينتو عمودين، هوامش منطقية */
@media (max-width: 992px) {
  .quick-info {
    padding: 56px 0 64px;
  }

  #about section:not(.about-hero) .container {
    padding-inline: clamp(12px, 4vw, 24px);
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 36px;
  }

  .bento-wide {
    grid-column: span 2;
  }
}

/* ========== الاستجابة للأجهزة المحمولة ========== */
@media (max-width: 768px) {
  .about-hero {
    padding: var(--hero-padding-tablet);
    min-height: var(--hero-min-height-tablet);
  }

  .about-hero .hero-title {
    font-size: var(--hero-title-font-size-tablet);
  }

  .bento-body {
    padding: 22px 20px;
    gap: 16px;
  }

  .bento-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.3rem;
  }

  .bento-title {
    font-size: 1rem;
  }

  .bento-desc {
    font-size: 0.82rem;
  }

  .history-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .yinyang-grid {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .yinyang-card {
    padding: 40px 30px;
  }

  .yinyang-title {
    font-size: 1.5rem;
  }

  .yinyang-desc {
    font-size: 0.95rem;
  }

  .honeycomb-row {
    gap: 12px;
  }

  .hex-cell {
    width: 220px;
    height: 250px;
  }

  .honeycomb-row-bottom {
    margin-top: -32px;
  }

  .hex-desc {
    font-size: 0.75rem;
    max-width: 150px;
  }

  /* تخطيط قسم الإنجازات (orbit) يُعرَّف بعد القواعد المطلقة في الملف — انظر أسفل قسم achievements-section */
  /* تخطيط «تواصلوا معنا» (social-hub) يُعرَّف بعد القواعد الأساسية — انظر أسفل قسم contact-section */

  /* Timeline Inbox - Tablet */
  .timeline-container {
    padding: 20px 15px;
  }

  .timeline-content {
    flex-direction: column;
  }

  .timeline-sidebar {
    width: 100%;
    border-inline-start: none;
    border-block-start: 2px solid var(--border-color);
    padding: 16px 20px;
    flex-direction: row;
    justify-content: space-between;
  }

  .timeline-sidebar::before {
    width: 100%;
    height: 2px;
    top: 0;
    inset-inline-start: 0;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  }

  .timeline-content-inner {
    padding: 18px 20px;
  }

  .timeline-icon-wrapper {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .timeline-title {
    font-size: 1.05rem;
  }

  .timeline-description {
    font-size: 0.88rem;
  }

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

  .yinyang-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .honeycomb-grid {
    gap: 10px;
  }

  .honeycomb-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .honeycomb-row-bottom {
    margin-top: -25px;
  }

  .hex-cell {
    width: 180px;
    height: 205px;
  }

  .hex-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .hex-title {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }

  .hex-desc {
    font-size: 0.7rem;
    max-width: 130px;
  }

  .section-title {
    font-size: 2rem;
  }

  .back-to-home {
    padding: 50px clamp(12px, 4vw, 20px) 70px;
  }

  .back-btn {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .back-btn i {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .about-hero .hero-title {
    font-size: 2rem;
  }

  .about-hero {
    padding: 60px 0 40px;
    min-height: 45vh;
  }

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

  .bento-wide {
    grid-column: span 1;
  }

  .bento-body-vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
  }

  .bento-body-vertical .bento-icon {
    margin-bottom: 0;
  }

  .history-section {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .yinyang-card {
    padding: 35px 22px;
  }

  .yinyang-title {
    font-size: 1.3rem;
    margin-bottom: 14px;
  }

  .yinyang-desc {
    font-size: 0.88rem;
  }

  .yinyang-bg-icon {
    font-size: 5rem;
  }

  .honeycomb-row-top,
  .honeycomb-row-bottom {
    flex-direction: column;
    align-items: center;
  }

  .honeycomb-row-bottom {
    margin-top: 10px;
  }

  .hex-cell {
    width: 240px;
    height: 270px;
  }

  .hex-content {
    padding: 35px 20px;
  }

  /* Timeline Inbox - Mobile */
  .timeline-container {
    padding: 15px 10px;
  }

  .timeline-sidebar {
    padding: 14px 18px;
    flex-direction: row;
    justify-content: space-between;
    border-block-start: 2px solid var(--border-color);
  }

  .timeline-sidebar::before {
    width: 100%;
    height: 2px;
  }

  .timeline-number {
    font-size: 2rem;
  }

  .timeline-content-inner {
    padding: 15px;
  }

  .timeline-icon-wrapper {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .timeline-date {
    font-size: 0.75rem;
  }

  .timeline-title {
    font-size: 1rem;
  }

  .timeline-description {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .timeline-tag {
    padding: 2px 8px;
    font-size: 0.65rem;
  }

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

  .history-section {
    padding: 70px 0;
  }

  .follower-count,
  .contact-info {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .hashtags {
    gap: 10px;
  }

  .hashtag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 380px) {
  .hex-cell {
    width: 220px;
    height: 250px;
  }

  .orbit-card-inner {
    max-width: 280px;
    padding: 18px 14px;
  }
}

/* ========== قسم الإنجازات والفعاليات — بطاقات مدارية ========== */
.achievements-section {
  padding: 100px 0;
  background: var(--about-bg);
  position: relative;
  overflow: hidden;
}

.achievements-floating-element-1 {
  position: absolute;
  top: 10%;
  left: -50px;
  width: 200px;
  height: 200px;
  background: var(--primary-color);
  opacity: 0.03;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}

.achievements-floating-element-2 {
  position: absolute;
  bottom: 20%;
  right: -80px;
  width: 300px;
  height: 300px;
  background: var(--secondary-color);
  opacity: 0.03;
  border-radius: 50%;
  animation: float 12s ease-in-out infinite reverse;
}

.intro-text {
  text-align: center;
  font-size: 1.2rem;
  color: var(--about-text-light);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.orbit-system {
  position: relative;
  width: 100%;
  max-width: 820px;
  height: 620px;
  margin: 0 auto 50px;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed var(--primary-color);
  opacity: 0.12;
}

.orbit-ring-1 {
  width: 280px;
  height: 280px;
  animation: orbit-pulse 4s ease-in-out infinite;
}

.orbit-ring-2 {
  width: 460px;
  height: 460px;
  border-color: var(--secondary-color);
  animation: orbit-pulse 6s ease-in-out infinite reverse;
}

@keyframes orbit-pulse {
  0%, 100% { opacity: 0.08; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.18; transform: translate(-50%, -50%) scale(1.03); }
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 3;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.orbit-center i {
  font-size: 2rem;
}

.orbit-card {
  position: absolute;
  z-index: 2;
}

.orbit-card-connector {
  position: absolute;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
  opacity: 0.2;
  z-index: -1;
}

.orbit-card-inner {
  background: var(--about-bg);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  width: 210px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.orbit-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.orbit-card:hover .orbit-card-inner {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.orbit-card:hover .orbit-card-inner::before {
  opacity: 1;
}

.orbit-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.3rem;
  color: #fff;
  transition: transform 0.4s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.orbit-card:hover .orbit-card-icon {
  transform: scale(1.12);
}

.orbit-card-inner h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--about-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.orbit-card-inner p {
  color: var(--about-text-light);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

/* --- مواقع البطاقات الأربع --- */
.orbit-card-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-card-1 .orbit-card-connector {
  width: 2px;
  height: 80px;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--primary-color));
}

.orbit-card-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.orbit-card-2 .orbit-card-connector {
  width: 70px;
  height: 2px;
  top: 50%;
  left: -70px;
  transform: translateY(-50%);
  background: linear-gradient(to left, transparent, var(--primary-color));
}

.orbit-card-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-card-3 .orbit-card-connector {
  width: 2px;
  height: 80px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to top, transparent, var(--primary-color));
}

.orbit-card-4 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.orbit-card-4 .orbit-card-connector {
  width: 70px;
  height: 2px;
  top: 50%;
  right: -70px;
  transform: translateY(-50%);
  background: linear-gradient(to right, transparent, var(--primary-color));
}

/*
 * الجوال والتابلت الضيق: القواعد المطلقة للمدار كانت تفوز على media السابقة (لأنها لاحقة في الملف).
 * هنا: دائرة الكأس في الأعلى ثم بطاقات متتابعة بعرض كامل — بدون تداخل نصوص.
 */
@media (max-width: 992px) {
  .achievements-section {
    padding: 56px 0 72px;
  }

  .achievements-section .intro-text {
    margin-bottom: 28px;
    padding-inline: clamp(8px, 3vw, 16px);
    font-size: 1.05rem;
  }

  .achievements-section .orbit-system {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    height: auto;
    min-height: 0;
    margin: 0 auto 36px;
    max-width: 100%;
    padding-inline: clamp(4px, 2vw, 12px);
  }

  .achievements-section .orbit-ring {
    display: none;
  }

  .achievements-section .orbit-center {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    align-self: center;
    order: -1;
    width: 92px;
    height: 92px;
    margin-block-end: 4px;
    flex-shrink: 0;
    z-index: 2;
  }

  .achievements-section .orbit-center i {
    font-size: 1.65rem;
  }

  .achievements-section .orbit-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    flex-shrink: 0;
    z-index: 1;
  }

  .achievements-section .orbit-card-connector {
    display: none !important;
  }

  .achievements-section .orbit-card-inner {
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
    padding: 18px 16px;
    text-align: center;
  }

  .achievements-section .orbit-card-inner h4 {
    margin-bottom: 10px;
    line-height: 1.45;
  }

  .achievements-section .orbit-card-inner p {
    line-height: 1.6;
    font-size: 0.875rem;
  }

  .achievements-section .hashtags {
    margin-top: 28px;
    padding-inline: clamp(4px, 2vw, 12px);
  }
}

@media (max-width: 480px) {
  .achievements-section .orbit-system {
    gap: 12px;
  }

  .achievements-section .orbit-center {
    width: 84px;
    height: 84px;
  }

  .achievements-section .orbit-center i {
    font-size: 1.5rem;
  }

  .achievements-section .orbit-card-inner {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .achievements-section .orbit-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
    margin-bottom: 10px;
  }
}

.hashtags {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hashtag {
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--about-transition);
}

.hashtag:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* ========== قسم التواصل — Social Hub ========== */
.contact-section {
  padding: 100px 0;
  background: var(--about-section-bg);
  position: relative;
}

.contact-floating-element {
  position: absolute;
  top: 20%;
  inset-inline-end: -100px;
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  opacity: 0.03;
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.social-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 60px;
  align-items: stretch;
}

.hub-main {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 24px;
  padding: 45px 35px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 320px;
}

.hub-main-bg {
  position: absolute;
  bottom: -30px;
  left: -30px;
  font-size: 12rem;
  color: #fff;
  opacity: 0.06;
  pointer-events: none;
  line-height: 1;
}

.hub-main-body {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hub-main-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

.hub-main:hover .hub-main-icon {
  transform: scale(1.1);
}

.hub-main-body h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hub-main-desc {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 16px;
}

.hub-main-location {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(5px);
}

.hub-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hub-main-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--primary-color);
}

.hub-socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--about-bg);
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  flex: 1;
}

.hub-social-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 18px 18px 0;
  transition: width 0.3s ease;
}

.hub-twitter::before { background: var(--brand-twitter); }
.hub-instagram::before { background: linear-gradient(to bottom, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.hub-whatsapp::before { background: var(--brand-whatsapp); }

.hub-social-card:hover::before {
  width: 6px;
}

.hub-social-card:hover {
  transform: translateX(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.hub-social-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  transition: transform 0.4s ease;
}

.hub-twitter .hub-social-icon { background: var(--brand-twitter); }
.hub-instagram .hub-social-icon { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.hub-whatsapp .hub-social-icon { background: var(--brand-whatsapp); }

.hub-social-card:hover .hub-social-icon {
  transform: scale(1.1);
}

.hub-social-info {
  flex: 1;
  min-width: 0;
}

.hub-social-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--about-text);
  margin: 0 0 4px;
}

.hub-social-info p {
  font-size: 0.82rem;
  color: var(--about-text-light);
  margin: 0 0 6px;
  line-height: 1.4;
}

.hub-social-arrow {
  font-size: 0.85rem;
  color: var(--about-text-light);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hub-social-card:hover .hub-social-arrow {
  opacity: 1;
  transform: translateX(0);
}

/*
 * «تواصلوا معنا» — عمود واحد للجوال والتابلت الضيق.
 * القواعد السابقة في @media 768 كانت قبل grid الثنائي فلا تُطبَّق؛ هذا المقطع يأتي بعد القاعدة الأساسية.
 */
@media (max-width: 992px) {
  .contact-section {
    padding: 56px 0 72px;
  }

  .contact-section .section-header {
    padding-inline: clamp(4px, 2vw, 12px);
  }

  .contact-section .section-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 36ch;
    margin-inline: auto;
  }

  .contact-section .social-hub {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
    align-items: stretch;
    width: 100%;
  }

  .contact-section .hub-main {
    min-height: 0;
    padding: 28px 22px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border-radius: 20px;
  }

  .contact-section .hub-main-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-section .hub-main-icon {
    margin-inline: auto;
    margin-bottom: 16px;
  }

  .contact-section .hub-main-bg {
    font-size: clamp(5.5rem, 26vw, 8.5rem);
    bottom: -20px;
    left: -12px;
  }

  .contact-section .hub-main-body h3 {
    font-size: 1.45rem;
  }

  .contact-section .hub-main-desc {
    font-size: 0.95rem;
    max-width: 28em;
  }

  .contact-section .hub-main-location {
    margin-inline: auto;
  }

  .contact-section .hub-main-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    min-height: 48px;
    padding: 14px 22px;
    box-sizing: border-box;
  }

  .contact-section .hub-socials {
    gap: 12px;
    width: 100%;
  }

  .contact-section .hub-social-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 16px 18px;
    min-height: 56px;
    align-items: center;
    border-radius: 16px;
  }

  .contact-section .hub-social-card::before {
    top: 0;
    left: auto;
    right: auto;
    inset-inline-end: 0;
    border-start-end-radius: 16px;
    border-end-end-radius: 16px;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
  }

  .contact-section .hub-social-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.25rem;
  }

  .contact-section .hub-social-info {
    text-align: start;
  }

  .contact-section .hub-social-info h4 {
    font-size: 1rem;
  }

  .contact-section .hub-social-info p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .contact-section .hub-social-arrow {
    opacity: 0.55;
    transform: none;
    flex-shrink: 0;
  }

  /* على اللمس: بدون إزاحة أفقية تتعارض مع RTL وتسبب «لزقة» بصرية */
  .contact-section .hub-social-card:hover {
    transform: none;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  }

  .contact-section .hub-social-card:hover::before {
    width: 4px;
  }

  .contact-section .hub-social-card:hover .hub-social-icon {
    transform: none;
  }

  .contact-section .hub-social-card:hover .hub-social-arrow {
    opacity: 0.85;
    transform: none;
  }

  .contact-section .hub-main:hover .hub-main-icon {
    transform: none;
  }

  .contact-section .hub-main-btn:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 992px) and (hover: hover) and (pointer: fine) {
  .contact-section .hub-social-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
  }

  .contact-section .hub-main:hover .hub-main-icon {
    transform: scale(1.06);
  }

  .contact-section .hub-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 48px 0 64px;
  }

  .contact-section .hub-main {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .contact-section .hub-main-body h3 {
    font-size: 1.28rem;
  }

  .contact-section .hub-main-desc {
    font-size: 0.9rem;
  }

  .contact-section .hub-main-btn {
    max-width: none;
    font-size: 0.92rem;
  }

  .contact-section .hub-social-card {
    padding: 14px 16px;
    gap: 14px;
    min-height: 52px;
  }

  .contact-section .hub-social-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.15rem;
    border-radius: 12px;
  }

  .contact-section .hub-social-info h4 {
    font-size: 0.95rem;
  }

  .contact-section .hub-social-info p {
    font-size: 0.78rem;
  }
}

/* ========== زر العودة للرئيسية ========== */
.back-to-home {
  padding: 60px 0 80px;
  background: linear-gradient(to bottom, var(--about-bg) 0%, var(--about-section-bg) 100%);
  text-align: center;
  position: relative;
}

.back-to-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--primary-color-rgb), 0.2), transparent);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.25);
}

.back-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transition: left 0.4s ease;
  z-index: 1;
}

.back-btn i,
.back-btn span {
  position: relative;
  z-index: 2;
}

.back-btn i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .back-btn:hover::before {
    left: 0;
  }

  .back-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(var(--primary-color-rgb), 0.4);
  }

  .back-btn:hover i {
    transform: scale(1.1) rotate(-5deg);
  }
}

/* إلغاء حركة زر الرجوع على اللمس حتى لا يبقى «عالقاً» */
@media (hover: none), (pointer: coarse) {
  .back-btn:hover::before {
    left: -100%;
  }

  .back-btn:hover {
    transform: none;
    box-shadow: none;
  }

  .back-btn:hover i {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero .hero-badge,
  .about-hero .hero-title,
  .about-hero .hero-subtitle,
  .about-hero .hero-btn {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .history-floating-element,
  .history-section::after,
  .contact-floating-element {
    animation: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item.animate-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease;
  }

  .fade-in,
  .slide-left,
  .slide-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease;
  }

  .bento-item,
  .bento-icon,
  .hex-shape,
  .hex-icon,
  .orbit-card-inner,
  .orbit-card-icon,
  .yinyang-card,
  .yinyang-icon,
  .yinyang-bg-icon {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  }

  .timeline-content {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
}

/* ========== تأثيرات الحركة ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--about-transition);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: var(--about-transition);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: var(--about-transition);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * DARK MODE — About Page (body.theme-night)
 * القيم صريحة بالـ hex لضمان التطبيق بغض النظر عن cascade المتغيرات.
 * الألوان مأخوذة من نظام الثيمات: surface-0=#312e81, surface-1=#1e1b4b
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ─── متغيرات الصفحة لوضع الليل ─────────────────────────────────────────── */
body.theme-night #about {
  --about-bg:           #312e81;
  --about-section-bg:   #1e1b4b;
  --about-text:         #e2e8f0;
  --about-text-light:   #94a3b8;
  --about-border:       rgba(255, 255, 255, 0.12);
  --about-card-bg:      rgba(255, 255, 255, 0.06);
  --about-card-hover:   rgba(255, 255, 255, 0.10);
  --about-shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.4);
  --about-shadow-md:    0 4px 20px rgba(0, 0, 0, 0.45);
  --about-shadow-lg:    0 8px 40px rgba(0, 0, 0, 0.55);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
/* Hero يستخدم gradient مضمّن — يعمل في كلا الوضعين */

/* ─── Quick Info (Bento Grid) ────────────────────────────────────────────── */
body.theme-night .quick-info {
  background: #312e81;
}

body.theme-night .bento-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

body.theme-night .bento-item:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

body.theme-night .bento-item h3,
body.theme-night .bento-item h4,
body.theme-night .bento-item .info-title,
body.theme-night .bento-item .info-label {
  color: #e2e8f0;
}

body.theme-night .bento-item p,
body.theme-night .bento-item .info-desc,
body.theme-night .bento-item .info-description {
  color: #94a3b8;
}

/* ─── History / Timeline ─────────────────────────────────────────────────── */
body.theme-night .history-section {
  background: #1e1b4b;
}

body.theme-night .timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.theme-night .timeline-content:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.25);
}

body.theme-night .timeline-content-inner {
  background: transparent;
}

body.theme-night .timeline-sidebar {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.10);
}

body.theme-night .timeline-sidebar .timeline-date {
  background: rgba(30, 27, 75, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

body.theme-night .timeline-content:hover .timeline-sidebar .timeline-date {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

body.theme-night .timeline-title,
body.theme-night .timeline-content h3,
body.theme-night .timeline-content h4 {
  color: #e2e8f0;
}

body.theme-night .timeline-description,
body.theme-night .timeline-content p {
  color: #94a3b8;
}

body.theme-night .timeline-date {
  color: #94a3b8;
}

/* الرقم الكبير — بديل المتغيرات الرمادية غير المرئية */
body.theme-night .timeline-number {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.40));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-night .timeline-content:hover .timeline-number {
  background: linear-gradient(135deg, #8b5cf6, #c026d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Vision / Mission (Yin-Yang) ────────────────────────────────────────── */
body.theme-night .vision-mission {
  background: #312e81;
}

body.theme-night .yinyang-grid {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

/* البطاقة الفاتحة تحتاج خلفية متمايزة عن background البطاقة الأرجوانية */
body.theme-night .yinyang-light {
  background: rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

body.theme-night .yinyang-light .yinyang-title,
body.theme-night .yinyang-light h3,
body.theme-night .yinyang-light h2 {
  color: #e2e8f0;
}

body.theme-night .yinyang-light .yinyang-desc,
body.theme-night .yinyang-light p {
  color: #94a3b8;
}

body.theme-night .yinyang-dark .yinyang-title,
body.theme-night .yinyang-dark h3,
body.theme-night .yinyang-dark h2 {
  color: #f1f5f9;
}

body.theme-night .yinyang-dark .yinyang-desc,
body.theme-night .yinyang-dark p {
  color: #cbd5e1;
}

/* ─── Values (Hexagons) ──────────────────────────────────────────────────── */
body.theme-night .values-section {
  background: #1e1b4b;
}

/* خلفية الـ hex-shape: رفع طفيف + حافة gradient مضاءة */
body.theme-night .hex-shape {
  background: rgba(255, 255, 255, 0.07);
}

/* الطبقة الداخلية (::after) تطابق لون القسم لإظهار حافة gradient */
body.theme-night .hex-shape::after {
  background: #1e1b4b;
}

/* تقوية gradient border */
body.theme-night .hex-shape::before {
  opacity: 0.25;
}

body.theme-night .hex-cell:hover .hex-shape {
  background: rgba(255, 255, 255, 0.12);
}

body.theme-night .hex-cell:hover .hex-shape::before {
  opacity: 0.45;
}

body.theme-night .hex-content h3,
body.theme-night .hex-content .hex-title {
  color: #e2e8f0;
}

body.theme-night .hex-content p,
body.theme-night .hex-content .hex-desc {
  color: #94a3b8;
}

/* ─── Achievements (Orbit) ───────────────────────────────────────────────── */
body.theme-night .achievements-section {
  background: #312e81;
}

body.theme-night .orbit-card-inner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

body.theme-night .orbit-card:hover .orbit-card-inner {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.30);
}

body.theme-night .orbit-card-inner h3,
body.theme-night .orbit-card-inner h4,
body.theme-night .orbit-card-inner .card-title {
  color: #e2e8f0;
}

body.theme-night .orbit-card-inner p,
body.theme-night .orbit-card-inner .card-desc {
  color: #94a3b8;
}

body.theme-night .orbit-ring {
  opacity: 0.18;
}

body.theme-night .hashtag {
  background: rgba(124, 58, 237, 0.20);
  border: 1px solid rgba(139, 92, 246, 0.40);
  color: #a78bfa;
}

body.theme-night .hashtag:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

/* ─── Contact / Social Hub ───────────────────────────────────────────────── */
body.theme-night .contact-section {
  background: #1e1b4b;
}

body.theme-night .hub-main-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

body.theme-night .hub-social-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.40);
}

body.theme-night .hub-social-card:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

body.theme-night .hub-social-info h4 {
  color: #e2e8f0;
}

body.theme-night .hub-social-info p {
  color: #94a3b8;
}

/* ─── Section Headers (نصوص عامة للعناوين والبادجات) ────────────────────── */
body.theme-night #about .section-title {
  color: #e2e8f0;
}

body.theme-night #about .section-subtitle {
  color: #94a3b8;
}

body.theme-night #about .section-badge {
  color: #a78bfa;
}

/* ─── الظلال العامة في الوضع الليلي ──────────────────────────────────────── */
body.theme-night #about .row > [class*="col-"] > *:not([class*="hero"]) {
  /* تجنب الـ outline البيضاء حول العناصر */
  outline: none;
}