/* latin */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/cairo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/cairo-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
:root {
  color-scheme: light;
  --brand-blue: #2F428B;
  --brand-blue-deep: #202E68;
  --brand-blue-soft: #EDF0FA;
  --navy: var(--brand-blue);
  --deep: #0b1c30;
  --ink: #172e47;
  --muted: #505e6b;
  --paper: #faf7f0;
  --gold: #e6c483;
  --line: #e2d9ca;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
:focus-visible { outline: 2px solid #7b568e; outline-offset: 4px; }
.hero :focus-visible, footer :focus-visible { outline-color: var(--gold); }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; padding: 10px; background: white; z-index: 2; }
.top { background: var(--paper); }
.header { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.3; }
.brand img { border-radius: 9px; border: 1px solid #e7e1d6; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.04rem; }
.brand small { color: var(--muted); margin-top: 5px; font-size: .81rem; }
.hero { background: radial-gradient(ellipse at 18% 25%, #253955, transparent 62%), var(--navy); color: #fff8eb; border-block-end: 3px solid #bd995d; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; min-height: 474px; gap: clamp(35px, 7vw, 110px); padding-block: 40px; }
.hero-kicker, .kicker { font-weight: 600; color: #76561f; font-size: .91rem; }
.hero-kicker { color: var(--gold); display: flex; align-items: center; gap: 12px; }
.hero-kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-weight: 800; }
h1 { font-size: clamp(3rem, 6vw, 5.45rem); line-height: 1.34; margin-block: 7px 15px; }
.hero-description { color: #e0e5eb; font-size: 1.08rem; line-height: 1.8; max-width: 395px; margin-bottom: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 18px; min-height: 46px; font-weight: 700; font-size: .91rem; text-decoration: none; }
.archive { padding-block: 56px 66px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
h2 { font-size: clamp(1.85rem, 4vw, 3.15rem); line-height: 1.45; margin-block: 4px 0; }
.archive-note { margin-block: 9px 19px; color: var(--muted); line-height: 1.85; }
.archive-note a { color: var(--ink); text-underline-offset: 4px; }
.search { display: flex; align-items: center; gap: 9px; width: min(290px, 100%); padding-inline: 12px; border: 1px solid #d9d0c0; background: #fffdf9; color: var(--muted); }
.search input { width: 100%; min-width: 0; font-size: .94rem; min-height: 44px; border: 0; color: var(--ink); background: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.filters button { border: 1px solid #d9d0c0; color: var(--ink); background: transparent; border-radius: 3px; padding: 7px 14px; cursor: pointer; min-height: 42px; }
.filters button:hover { background: #ece4d7; }
.filters button[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 23px; }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: #fffdf9; }
.card-art { display: flex; align-items: center; justify-content: center; padding: 12px; background: #e7d9bd; height: 229px; overflow: hidden; }
.card-art.greek { background: #e4d6ba; }
.card-art.hebrew { background: #d5dfe3; }
.card-art.arabic { background: #ead8cf; }
.card-art.history { background: #c9c0a9; }
.card-art img { width: auto; max-width: 100%; height: 100%; object-fit: contain; box-shadow: 0 4px 14px #1717222b; transition: transform .18s ease; }
.card-art:hover img { transform: scale(1.025); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 19px; }
.meta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 13px; flex-wrap: wrap; font-size: .79rem; color: var(--muted); }
.meta span { color: #795820; font-weight: 700; }
h3 { font-size: 1.42rem; margin-block: 8px 5px; line-height: 1.6; }
.card-body > p:not(.meta) { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.source { font-size: .86rem; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.card-body > .source, .card-links { margin-top: auto; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.empty { padding: 20px; border: 1px solid var(--line); }
.about { border-block-start: 1px solid var(--line); background: #f0eadf; }
.about-inner { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: center; padding-block: 45px; }
.about-inner > div > p:not(.kicker) { max-width: 665px; font-size: 1.05rem; line-height: 1.9; margin-block: 9px 19px; color: var(--muted); }
.about-inner img { width: min(190px, 24vw); height: auto; border: 1px solid var(--line); }
@media (max-width: 830px) {
  .wrap { width: min(100% - 44px, 1160px); }
  .hero-inner { min-height: 390px; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 32px); }
  .header { padding-block: 10px; gap: 10px; flex-wrap: wrap; }
  .brand img { width: 44px; height: 44px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 27px; gap: 22px; }
  h1 { font-size: clamp(2.35rem, 10vw, 3.7rem); }
  .archive { padding-block: 35px 44px; }
  .section-header { display: grid; gap: 11px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .about-inner { grid-template-columns: 1fr; gap: 18px; }
  .about-inner img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.header-actions, .socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.header-actions { gap: 8px; }
.icon-button, .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 10px;
  border: 1px solid #dbd7ce;
  border-radius: 10px;
  background: #fffdf9;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: .83rem;
  transition: background-color .2s ease, border-color .2s ease;
}
.icon-button:hover, .socials a:hover {
  background: #eaf2f9;
  border-color: #a9bfd1;
}
.header-actions .socials { margin-inline-end: 5px; }
.header-actions .socials a { border-color: transparent; background: transparent; }
.header-actions .socials a:hover { background: #eaf2f9; }
.search:focus-within { box-shadow: 0 0 0 3px #aac4d56e; border-color: #526f8c; }
.search input:focus { outline: none; }
#search-box { scroll-margin-block: 30px; }

.hero {
  isolation: isolate;
  background: radial-gradient(ellipse at 18% 20%, #315b7a, transparent 55%), linear-gradient(145deg, #152e4c, #0b1c30 74%);
}
.hero-inner { position: relative; }
.hero-copy { animation: hero-enter .62s cubic-bezier(.19,.75,.36,1) both; }
  background: linear-gradient(137deg, #e4f7ff38, #e4f7ff08 42%, #b6e8ff25);
  box-shadow: 0 18px 44px #05152468;
  animation: hero-enter .75s .1s cubic-bezier(.19,.75,.36,1) both;
}
:lang(en) .hero { background: radial-gradient(ellipse at 82% 20%, #315b7a, transparent 55%), linear-gradient(215deg, #152e4c, #0b1c30 74%); }
:lang(en) h1 { font-size: clamp(2.35rem, 5.6vw, 4.65rem); }
.crystal-button {
  isolation: isolate;
  position: relative;
  gap: 15px;
  min-height: 52px;
  padding: 7px 14px;
  overflow: hidden;
  border: 1px solid #eef9ffcb;
  border-radius: 13px;
  background: linear-gradient(124deg, #f0fbff 2%, #9cc9e4 46%, #f0debb 100%);
  color: #102940;
  box-shadow: inset 0 1px 2px #fff9, 0 9px 24px #07162669;
  transition: transform .25s ease, box-shadow .25s ease;
}
.crystal-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60% auto -60% -50%;
  width: 35%;
  transform: translateX(-90%) skewX(-27deg);
  background: linear-gradient(90deg, transparent, #fff9, transparent);
}
.crystal-button:hover::before { animation: crystal-shine .68s ease both; }
.crystal-button:hover { transform: translateY(-3px); box-shadow: 0 13px 32px #8cd6ff46; }
.crystal-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  border: 1px solid #fff9;
  background: linear-gradient(145deg, #fff9, #91b8d37d);
}
[dir="rtl"] .crystal-icon svg { transform: scaleX(-1); }
.card { transition: border-color .22s ease, box-shadow .22s ease; }
.card:hover, .card:focus-within { border-color: #b8b0a3; box-shadow: 0 8px 26px #152d4613; }
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes crystal-shine {
  to { transform: translateX(500%) skewX(-27deg); }
}
@media (max-width: 650px) {
  .header-actions { gap: 5px; }
  .header-actions .socials { display: none; }
  .brand strong { font-size: .93rem; }
  .brand small { font-size: .73rem; }
}
@media (max-width: 420px) {
  .header-actions { margin-inline-start: auto; }
  .hero-inner { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .crystal-button:hover { transform: none; }
}

/* Main sections: reference-inspired navy and antique-gold image cards */
.main-section-cards { padding-block: 62px 58px; }
.main-section-heading { text-align:center; margin:0 auto 26px; max-width:760px; }
.main-section-heading .kicker { color:#a17d3d; }
.main-section-heading p:last-child { color:var(--muted); line-height:1.8; margin-top:6px; }
.main-page-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.main-page-card { position:relative; display:flex; flex-direction:column; align-items:center; padding:0 0 20px; overflow:hidden; border:1px solid #e3d8c4; border-radius:24px; background:linear-gradient(145deg,#fff 5%,#faf7f0 100%); box-shadow:0 9px 24px #102e4e16; text-decoration:none; transition:transform .25s ease,box-shadow .25s ease; }
.main-page-card:hover { transform:translateY(-6px); box-shadow:0 18px 34px #102e4e25; }
.main-page-picture { position:relative; display:block; width:100%; aspect-ratio:1.48; border:2px solid #d4ad5d; border-bottom-width:5px; border-radius:22px 22px 18px 18px; overflow:visible; background:#f4efe5; }
.main-page-picture>img { width:100%; height:100%; object-fit:cover; border-radius:20px 20px 14px 14px; }
.main-page-icon { position:absolute; left:50%; bottom:-32px; transform:translateX(-50%); display:grid; place-items:center; width:66px; height:66px; border:4px solid #e5c16e; border-radius:50%; color:#fff; background:linear-gradient(145deg,#153f68,#0c2947); box-shadow:0 4px 10px #102e4e30; }
.main-page-title { min-height:60px; display:grid; place-items:end center; padding:34px 12px 0; color:#103252; text-align:center; font-size:1.25rem; line-height:1.4; font-weight:800; }
.main-page-description { display:none; }
.tree-hero-grid>img { object-fit:contain !important; background:#fffdf8; }
.tree-card { border-radius:16px; }
.tree-card--compact { min-height:unset; }
.library-video-link { display:grid; grid-template-columns:170px 1fr auto; align-items:center; gap:18px; padding:14px; border:1px solid var(--line); border-radius:18px; background:#fffdf9; color:var(--ink); text-decoration:none; box-shadow:0 8px 22px #102e4e0f; }
.library-video-link img { width:170px; aspect-ratio:1.48; object-fit:cover; border:2px solid #d4ad5d; border-radius:13px; }
.library-video-link span:nth-child(2) { display:grid; gap:6px; }
.library-video-link small { color:var(--muted); }
@media(max-width:900px){.main-page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:560px){.main-section-cards{padding-block:38px}.main-page-grid{gap:12px}.main-page-card{border-radius:17px;padding-bottom:13px}.main-page-picture{border-radius:16px}.main-page-picture>img{border-radius:14px 14px 10px 10px}.main-page-icon{width:52px;height:52px;bottom:-25px}.main-page-title{font-size:1rem;min-height:52px;padding:29px 8px 0}.library-video-link{grid-template-columns:95px 1fr;gap:12px}.library-video-link img{width:95px}.library-video-link .tree-card-more{grid-column:2}}
.publication-card .card-body { gap:7px; }
.publication-card .news-actions { gap:2px 14px; }


/* Persistent Facebook and Alhoda shortcuts */
.floating-social-cta { position:fixed; z-index:1100; inset-inline-end:16px; bottom:calc(18px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:12px; }
.floating-social-link { position:relative; display:grid; place-items:center; width:54px; height:54px; border-radius:50%; color:#fff; border:1px solid #e2bd69; background:linear-gradient(145deg,#1d4d75,#102d4a); box-shadow:0 8px 22px #071c3155,inset 0 1px #ffffff55; text-decoration:none; transition:transform .2s ease,box-shadow .2s ease; }
.floating-social-link::before { content:""; position:absolute; inset:-11px; z-index:-1; border-radius:50%; opacity:.48; background:repeating-conic-gradient(from 0deg,transparent 0deg 9deg,#d5b566 9deg 10deg,transparent 10deg 18deg); -webkit-mask:radial-gradient(circle,transparent 0 54%,#000 56% 68%,transparent 71%); mask:radial-gradient(circle,transparent 0 54%,#000 56% 68%,transparent 71%); animation:social-rays 9s linear infinite,social-rays-pulse 3.2s ease-in-out infinite; }
.floating-social-link:hover { transform:translateY(-3px) scale(1.04); box-shadow:0 12px 28px #071c3170,inset 0 1px #ffffff70; }
.floating-social-link svg { width:24px; height:24px; fill:currentColor; }
.floating-alhoda { color:#f8e7bb; background:linear-gradient(145deg,#173d61,#0d2945); }
.floating-alhoda .huda-letter { font:700 5px Cairo, sans-serif; fill:#f1d48b; stroke:none; }
.footer-alhoda-link svg { width:21px; height:21px; fill:currentColor; }
.footer-alhoda-link .huda-letter { font:700 5px Cairo, sans-serif; fill:#f1d48b; stroke:none; }
.footer-alhoda-link { color:#173c60!important; }
@keyframes social-rays { to { transform:rotate(360deg); } }
@keyframes social-rays-pulse { 0%,100% {opacity:.3} 50% {opacity:.63} }
@media(max-width:560px) { .floating-social-cta { inset-inline-end:12px; bottom:calc(18px + env(safe-area-inset-bottom)); gap:10px; } .floating-social-link { width:49px;height:49px; } }
@media(prefers-reduced-motion:reduce) { .floating-social-link,.floating-social-link::before { transition:none; animation:none; } }
