@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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-10EC4, U+10EFC-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;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/cairo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  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;
}

:root {
  --primary: #0a1628;
  --primary-light: #142240;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --gold: #f59e0b;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; color: var(--accent-light); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; }
.brand { display: inline-flex; flex-direction: column; color: #fff; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 52px; width: auto; margin-left: 12px; }
.brand { flex-direction: row; align-items: center; }
.brand-name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .2px; white-space: nowrap; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: all .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: inline-block;
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s;
}
.main-nav a:hover { text-decoration: none; background: rgba(255,255,255,.1); color: #fff; }
.main-nav a.active { background: var(--accent); color: #fff; }

main.container { padding-top: 26px; padding-bottom: 48px; }

/* Page title */
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0 0 6px; color: var(--primary); font-size: 28px; font-weight: 800; }
.page-head p { margin: 0; color: var(--muted); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 55%, #1e3a8a 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 34px;
  margin-bottom: 26px;
  box-shadow: 0 12px 40px rgba(10,22,40,0.25);
}
.hero h1 { margin: 0 0 10px; font-size: 30px; font-weight: 800; }
.hero p { margin: 0; color: #cbd5e1; max-width: 780px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 12px 40px rgba(10,22,40,0.12); transform: translateY(-2px); border-color: #bfdbfe; }
.card .card-title { font-size: 17px; font-weight: 800; color: var(--primary); line-height: 1.5; }
.card .card-title a:hover { text-decoration: none; color: var(--accent); }
.card .meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.card .abstract {
  font-size: 14px; color: #475569;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.badge {
  display: inline-block; background: #eff6ff; color: var(--accent);
  border-radius: 9999px; padding: 3px 12px; font-size: 12.5px; font-weight: 700;
}
.badge.year { background: var(--primary); color: #fff; }
.btn-link {
  margin-top: auto; align-self: flex-start;
  background: var(--accent); color: #fff; padding: 7px 16px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
}
.btn-link:hover { background: var(--accent-light); color: #fff; text-decoration: none; }

/* Filters bar */
.filters {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 22px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
}
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); flex: 1 1 180px; }
.filters input, .filters select {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Cairo', Tahoma, Arial, sans-serif; font-size: 14px; background: #fff; color: var(--text);
}
.filters .filter-actions { display: flex; gap: 8px; }
.btn {
  padding: 9px 18px; border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-family: 'Cairo', Tahoma, Arial, sans-serif; font-size: 14px; font-weight: 700;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); }
.btn-ghost { background: #e2e8f0; color: var(--primary); }
.btn-ghost:hover { background: #cbd5e1; }

/* Pagination */
.pagination ul { display: flex; list-style: none; gap: 6px; margin: 24px 0 0; padding: 0; justify-content: center; flex-wrap: wrap; }
.pagination a {
  display: inline-block; min-width: 36px; text-align: center;
  padding: 7px 10px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--accent); font-weight: 700;
}
.pagination a.active, .pagination a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* Paper detail */
.paper-header { margin-bottom: 20px; }
.paper-header h1 { margin: 0 0 10px; color: var(--primary); font-size: 26px; font-weight: 800; line-height: 1.5; }
.paper-meta { color: var(--muted); font-size: 14.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.paper-authors { font-size: 16px; color: var(--accent); font-weight: 700; }
.paper-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.paper-section h2 { margin: 0 0 10px; font-size: 18px; color: var(--primary); font-weight: 800; }
.paper-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* About / info strips */
.info-strip {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 18px;
}
.info-strip h2 { margin: 0 0 8px; font-size: 18px; color: var(--primary); font-weight: 800; }
.info-strip p { margin: 0; color: #475569; }

/* Issues */
.issue-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.issue-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center;
}

/* Footer */
.site-footer { background: var(--primary); color: #cbd5e1; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; padding-top: 30px; padding-bottom: 26px; }
.site-footer h3 { color: #fff; font-size: 16px; margin: 0 0 10px; font-weight: 800; }
.site-footer p { margin: 0 0 6px; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #93c5fd; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 12px 0; font-size: 13px; text-align: center; }

@media (max-width: 720px) {
  .header-inner { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
  .brand { flex: 1; min-width: 0; }
  .brand-logo { height: 40px; margin-left: 8px; }
  .brand-name { font-size: 13px; white-space: nowrap; }
  .nav-toggle { display: inline-flex; }
  .main-nav { order: 3; width: 100%; }
  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav ul.nav-open { display: flex; }
  .main-nav ul li { width: 100%; }
  .main-nav a { display: block; padding: 10px 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 24px; }
  .grid { grid-template-columns: 1fr; }
}