/* about-base.css — redesigned about page. Navy hero styled like Articles.php */
.ab *, .ab *::before, .ab *::after { box-sizing: border-box; }
.ab { font-family: 'Tajawal', sans-serif; background: #f6f8fa; color: var(--text-main); }
.ab .wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
html.dlg-open { overflow: hidden; }

/* ---------- Hero (same recipe as articles hero) ---------- */
.ab .hero { position: relative; overflow: hidden; background: #062141; color: #fff; padding: 140px 24px 70px; }
.ab .hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 22px 22px; }
.ab .orbs { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.ab .orb { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(26,122,122,.3), transparent 70%); filter: blur(50px); animation: abFloat 18s infinite ease-in-out; }
.ab .orb-1 { width: 500px; height: 500px; top: -160px; right: -120px; }
.ab .orb-2 { width: 360px; height: 360px; bottom: -100px; left: 3%; animation-delay: 7s; }
.ab .orb-3 { width: 240px; height: 240px; top: 40%; left: -60px; animation-delay: 14s; }
@keyframes abFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-34px) scale(1.1); } }
.ab .hero-inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; }
.ab .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700; padding: 6px 18px; border-radius: 999px; margin-bottom: 20px; }
.ab .hero-title { font-size: clamp(38px, 5vw, 50px); font-weight: 800; line-height: 1.25; letter-spacing: -.5px; margin: 0 0 16px; animation: abUp .6s ease-out; }
.ab .hero-title em { font-style: normal; color: #7fd8c6; }
.ab .hero-sub { font-size: 17px; line-height: 1.95; color: rgba(255,255,255,.72); margin: 0; max-width: 620px; animation: abUp .6s ease-out .15s backwards; }
@keyframes abUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* glass panel (like the articles filter column) */
.ab .glass { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; backdrop-filter: blur(12px); }
.ab .glass-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .5px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ab .glass-link { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 12px; color: #fff; text-decoration: none; transition: background .25s, transform .25s; }
.ab .glass-link:hover { background: rgba(255,255,255,.1); transform: translateX(-3px); }
.ab .glass-link .gi { width: 38px; height: 38px; border-radius: 11px; background: rgba(127,216,198,.16); display: grid; place-items: center; flex-shrink: 0; }
.ab .glass-link .gi i { color: #7fd8c6; font-size: 16px; }
.ab .glass-link b { font-size: 15px; display: block; }
.ab .glass-link small { font-size: 12.5px; color: rgba(255,255,255,.55); }
.ab .glass-link .arr { margin-inline-start: auto; font-size: 11px; color: rgba(255,255,255,.4); }

/* ---------- Palm + Sadu-style heritage decoration (original artwork) ---------- */
.ab .palm { color: #7fd8c6; display: block; }
.ab .sadu { height: 16px; background-repeat: repeat-x; background-size: 32px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 16 L8 2 L16 16 Z M16 16 L24 2 L32 16 Z' fill='rgba(127,216,198,0.55)'/%3E%3Cpath d='M8 16 L16 4 L24 16 Z' fill='rgba(26,122,122,0.9)'/%3E%3C/svg%3E"); }
.ab .sadu.light { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 16 L8 2 L16 16 Z M16 16 L24 2 L32 16 Z' fill='rgba(6,33,65,0.12)'/%3E%3Cpath d='M8 16 L16 4 L24 16 Z' fill='rgba(26,122,122,0.35)'/%3E%3C/svg%3E"); }
.ab .divider { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 auto; max-width: 420px; color: #1a7a7a; }
.ab .divider::before, .ab .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(6,33,65,.25)); }
.ab .divider::after { transform: scaleX(-1); }
.ab .divider svg { width: 26px; height: 34px; color: #1a7a7a; }

/* ---------- Section heads ---------- */
.ab .sec-head { text-align: center; margin-bottom: 38px; }
.ab .sec-head .kicker { display: inline-block; font-size: 13px; font-weight: 700; color: #085041; background: #e1f5ee; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
.ab .sec-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--primary); margin: 0 0 8px; }
.ab .sec-head p { color: var(--text-muted); font-size: 16.5px; margin: 0; }

/* ---------- Reveal ---------- */
.ab .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.ab .reveal.in { opacity: 1; transform: none; }
.ab .reveal.d1 { transition-delay: .1s; } .ab .reveal.d2 { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .ab .reveal { opacity: 1; transform: none; transition: none; } .ab .orb { animation: none; } .ab .hero-title, .ab .hero-sub { animation: none; } }

.ab .ic { width: 54px; height: 54px; border-radius: 16px; background: #e1f5ee; display: grid; place-items: center; flex-shrink: 0; transition: transform .3s; }
.ab .ic i { font-size: 22px; color: #085041; }

/* ---------- Avatars ---------- */
.ab .row-avatar, .ab .stack-av { position: relative; flex-shrink: 0; border-radius: 50%; }
.ab .row-avatar { width: 54px; height: 54px; }
.ab .row-avatar img, .ab .stack-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ab .is-mono { display: grid; place-items: center; background: linear-gradient(135deg, #062141, #0a4d4d); color: #fff; font-weight: 800; }
.ab .row-avatar.is-mono span { font-size: 22px; line-height: 1; }
.ab .stack-av { width: 38px; height: 38px; border: 2.5px solid #fff; margin-inline-start: -10px; box-shadow: 0 2px 6px rgba(6,33,65,.15); }
.ab .stack-av.is-mono span { font-size: 15px; }
.ab .avatar-stack { display: flex; align-items: center; padding-inline-start: 10px; }
.ab .stack-more { margin-inline-start: -10px; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; border: 2.5px solid #fff; background: #e1f5ee; color: #085041; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Team categories (cards) ---------- */
.ab .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.ab .cat-card { font: inherit; text-align: right; cursor: pointer; display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--border-color); border-radius: 22px;
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; touch-action: manipulation; }
.ab .cat-card:hover, .ab .cat-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #1a7a7a; outline: none; }
.ab .cat-card:hover .ic { transform: scale(1.08) rotate(-4deg); }
.ab .cat-top { display: flex; align-items: center; gap: 14px; }
.ab .cat-top h3 { font-size: 20px; font-weight: 800; color: var(--primary); margin: 0 0 3px; }
.ab .cat-top small { font-size: 13.5px; color: var(--text-muted); }
.ab .cat-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.ab .cat-open { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #085041; background: #e1f5ee; padding: 8px 16px; border-radius: 999px; transition: all .25s; }
.ab .cat-card:hover .cat-open { background: #062141; color: #fff; }

/* ---------- Dialog (pop-up list) ---------- */
dialog.team-dialog { border: 0; padding: 0; background: #fff; color: var(--text-main); font-family: 'Tajawal', sans-serif; direction: rtl; overflow: hidden;
  position: fixed; inset: 0; margin: auto; width: min(660px, calc(100vw - 24px)); height: fit-content; max-height: min(88vh, 780px); border-radius: 26px; box-shadow: 0 30px 80px rgba(4,24,41,.45); }
dialog.team-dialog[open] { display: flex; flex-direction: column; animation: dlgIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
dialog.team-dialog::backdrop { background: rgba(4,24,41,.62); backdrop-filter: blur(4px); }
.team-dialog .dlg-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; background: #062141; color: #fff; position: relative; }
.team-dialog .dlg-head::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, #1a7a7a, #7fd8c6, #1a7a7a); }
.team-dialog .dlg-head .ic { width: 46px; height: 46px; background: rgba(127,216,198,.16); border-radius: 14px; }
.team-dialog .dlg-head .ic i { color: #7fd8c6; font-size: 19px; }
.team-dialog .dlg-head h3 { font-size: 20px; font-weight: 800; margin: 0 0 2px; }
.team-dialog .dlg-head small { color: rgba(255,255,255,.65); font-size: 13px; }
.team-dialog .dlg-close { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; font-size: 16px; transition: background .2s, transform .2s; }
.team-dialog .dlg-close:hover { background: rgba(255,255,255,.24); transform: rotate(90deg); }
.team-dialog .dlg-body { padding: 8px 14px 16px; overflow-y: auto; flex: 1; min-height: 0; background: #fff; overscroll-behavior: contain; }
.team-dialog .member-list { list-style: none; margin: 0; padding: 0; }
.team-dialog .member-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 40px; gap: 4px 16px; align-items: center; padding: 16px 12px; border-radius: 14px; transition: background .2s; }
.team-dialog .member-row + .member-row { border-top: 1px solid rgba(6,33,65,.07); }
.team-dialog .member-row:hover { background: #f1f8f6; }
.team-dialog .row-main h3 { font-size: 17.5px; font-weight: 800; color: var(--primary); margin: 0 0 6px; }
.team-dialog .team-role { display: inline-block; font-size: 12.5px; font-weight: 700; color: #085041; background: #e1f5ee; padding: 3px 12px; border-radius: 999px; line-height: 1.6; }
.team-dialog .row-meta { grid-column: 2; grid-row: 2; }
.team-dialog .row-meta p { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin: 2px 0; }
.team-dialog .row-meta i { color: #1a7a7a; margin-top: 5px; font-size: 13px; width: 14px; text-align: center; flex-shrink: 0; }
.team-dialog .row-linkedin { grid-column: 3; grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #eaf2fb; color: #0a66c2; text-decoration: none; font-size: 15px; transition: all .2s; }
.team-dialog .row-linkedin:hover { background: #0a66c2; color: #fff; transform: translateY(-2px); }
.team-dialog .row-linkedin.is-empty { background: transparent; }
.team-dialog .sub-divider { display: flex; align-items: center; gap: 14px; margin: 14px 8px; }
.team-dialog .sub-divider::before, .team-dialog .sub-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.team-dialog .sub-divider span { font-weight: 700; font-size: 13.5px; color: #085041; background: #e1f5ee; padding: 5px 14px; border-radius: 999px; }
.ab .no-team { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.ab .no-team i { font-size: 48px; display: block; margin-bottom: 14px; }

@media (max-width: 700px) {
  .ab .wrap { padding: 0 16px; }
  .ab .hero { padding: 118px 18px 56px; }
  .ab .cat-grid { grid-template-columns: 1fr; }
}
