:root {
  --bg-dark: #0f1116;
  --bg-card: #1a1c24;
  --text-light: #ffffff;
  --text-muted: #b6b8c1;
  --accent: #008cff;
  --accent-hover: #0066cc;
  --radius: 16px;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Navbar */
header {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
header img {
  height: 38px;
  width: auto;
  margin-right: 10px;
}
header .logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-light);
}
.menu-btn {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100%;
  background: #11131a;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  z-index: 999;
  padding-top: 70px;
}
.side-menu.open {
  right: 0;
}
.side-menu a {
  display: block;
  color: var(--text-light);
  padding: 14px 24px;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}
.side-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  background: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTBzo7ZHiApTlHO-dO1MxDsIXXi1Hgzo38fz1zFCHNHcg&s=10") center/cover no-repeat;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 70px;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}
.hero p {
  color: #dcdcdc;
  font-size: 1rem;
  margin-bottom: 20px;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
  box-shadow: 0 5px 15px rgba(0, 140, 255, 0.3);
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Main Content */
.container {
  max-width: 850px;
  margin: 50px auto;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 30px;
}
h2 {
  color: var(--accent);
  font-size: 1.3rem;
  margin: 25px 0 12px;
}
p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.note {
  background: rgba(0,140,255,0.1);
  border-left: 4px solid var(--accent);
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin: 16px 0;
  color: var(--text-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #1c1e27;
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  padding: 12px;
  text-align: left;
}
th {
  background: #222531;
  color: var(--accent);
}
td {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

/* Footer */
footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 60px;
}
footer img {
  height: 60px;
  margin-bottom: 15px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .btn { width: 80%; display: inline-block; }
}
/* Article images styling - add once to style.css */
.article-img {
  display: block;
  margin: 28px auto;         /* مسافة فوق وتحت */
  max-width: 760px;          /* أقصى عرض */
  width: 100%;               /* يتجاوب مع الشاشات الصغيرة */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
  object-fit: cover;
}

/* Figure caption */
.article-figure {
  text-align: center;
  margin: 12px 0 24px;
  color: #b8c1d1;
  font-size: 14px;
}

/* Responsive tweak for very small screens */
@media (max-width: 480px) {
  .article-img { max-width: 100%; margin: 20px auto; border-radius: 8px; }
  .article-figure { font-size: 13px; }
}