/* ============================
   الأساسيات
   ============================ */
:root {
  --color-main: #0f6b63;
  --color-main-dark: #064841;
  --color-light: #f5f7f8;
  --color-dark: #111111;
  --color-muted: #8c959e;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
main {
    display: block;
    unicode-bidi: isolate;
}

body {
  margin: 0;
  background-color: #ffffff;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;          /* يمنع التمرير الأفقي لو شيء طلع برّا بالغلط */
}

/* حاوية عامة للمحتوى */
.page-wrapper,
.main-container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 0;
}

@media (min-width: 992px) {
  .page-wrapper,
  .main-container {
    padding-inline: 0;
  }
}

/* ============================
   شريط اللغة
   ============================ */


/* ============================
   شريط علوي
   ============================ */
.top-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 900;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.75)
  );
  backdrop-filter: blur(8px);
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-main);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-text span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-main-dark);
}

.top-nav nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
}
.top-nav a {
  text-decoration: none;
  color: var(--color-dark);
  position: relative;
}
.top-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.25s ease;
}
.top-nav a:hover::after {
  transform: scaleX(1);
}

/* ============================
   الأقسام العامة
   ============================ */
.section {
  min-height: 80vh;
  padding: 20px;
  display: flex;
  align-items:flex-start;
  justify-content: center;
}

.section-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  margin-top: 10vh;
}

.section-title {
  margin-bottom: 32px;
}
.section-title h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-main-dark);
}
.section-tag {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================
   الغلاف
   ============================ */
.section-cover {
  background: var(--color-main);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cover-content {
  text-align: center;
}

.logo-big {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.logo-symbol {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 700;
}
.logo-title span {
  display: block;
  font-size: 18px;
  letter-spacing: 0.12em;
}
.cover-text {
  font-size: 14px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.9;
}
.cover-text .year {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  letter-spacing: 0.5em;
}

/* ============================
   الأقسام البصرية بالصور
   ============================ */
.section-image {
  position: relative;
  color: #fff;
  padding: 0;
}

.section-img-track {
  background-image: url("images/track.jpg"); /* استبدلها بالصورة الحقيقية من البروفايل */
  background-size: cover;
  background-position: center;
}
.section-img-runner {
  background-image: url("images/runner.jpg");
  background-size: cover;
  background-position: center;
}
.section-img-rowing {
  background-image: url("images/rowing.jpg");
  background-size: cover;
  background-position: center;
}

.section-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.2)
  );
}

.section-image .overlay-card {
  position: relative;
  z-index: 1;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  font-size: 26px;
  font-weight: 700;
}
.section-image .overlay-card.small {
  font-size: 20px;
}

.section-image {
  justify-content: flex-start;
  padding: 96px;
}

/* ============================
   قسم الاقتباس
   ============================ */
.section-quote {
  background: #ffffff;
}
.quote-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-main), var(--color-main-dark));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 42%;
  background: rgba(255, 255, 255, 0.07);
  right: -80px;
  bottom: -120px;
}
.quote-card h2 {
  margin: 0;
  font-size: 30px;
}

/* ============================
   تخطيط عمودين
   ============================ */
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.text-block h2 {
  font-size: 24px;
  margin-bottom: 16px;
}
.text-block p {
  line-height: 1.9;
  margin: 0 0 8px;
  font-size: 15px;
}

/* ============================
   الهيكل التنظيمي
   ============================ */
.section-structure {
  background: #f9fbfb;
}
.org-chart {
  border-radius: var(--radius-lg);
  border: 1px solid #dde5e7;
  padding: 24px 16px;
  background: #ffffff;
}
.org-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.org-row-multi {
  gap: 8px;
}
.org-node {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-main);
  font-size: 13px;
  white-space: nowrap;
}
.org-node.main {
  background: var(--color-main);
  color: #fff;
  font-weight: 600;
}
.org-node.small {
  font-size: 12px;
}

/* ============================
   القيم
   ============================ */
.section-values {
  background: #ffffff;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.value-item {
  padding: 18px 18px 20px;
  background: #f9fbfb;
  border-radius: var(--radius-md);
  border: 1px solid #e3ecee;
}
.value-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--color-main-dark);
}
.value-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

/* ============================
   الأهداف
   ============================ */
.section-goals {
  background: #fdfefe;
}
.goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.goals-list li {
  position: relative;
  padding-inline-start: 20px;
  margin-bottom: 10px;
  font-size: 15px;
}
body.lang-en .goals-list.lang-en li {
  padding-inline-start: 20px;
}
.goals-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  inset-inline-start: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-main);
}

/* ============================
   الفريق
   ============================ */
.section-team {
  background: #ffffff;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.team-item {
  padding: 20px 18px;
  border-radius: 24px;
  background: #f6faf9;
  border: 1px solid #dde9e7;
  text-align: center;
}
.team-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-main-dark);
}
.team-label {
  font-size: 13px;
  color: var(--color-muted);
}
.team-title {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
}

/* ============================
   التذييل
   ============================ */
.section-footer {
  min-height: auto;
  padding: 32px 24px 40px;
  background: #0d1316;
  color: #d7dde2;
}
.footer-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo .logo-symbol {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.footer-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

/* ============================
   استجابة الشاشات الصغيرة
   ============================ */
@media (max-width: 768px) {
  .top-nav {
    height: 60px;
    padding-inline: 12px;
  }
  .top-nav nav {
    display: none;
  }
  .section {
    padding: 80px 16px 40px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .section-image {
    padding: 80px 24px 40px;
    justify-content: center;
  }
}
