/* ===============================
   🌐 GENERAL (ستايل أكاديمي نظيف)
================================= */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap');

body {
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    background-color: #f3f4f6;
    color: #222; /* نص غامق للمحتوى */
    line-height: 1.8;
}

/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}


/* ===== Header ===== */
header {
  background: #1f5f8b;
  color: white;
  padding: 15px 30px;
}

header .top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header nav {
  margin-top: 10px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

header nav a:hover {
  background: rgba(255,255,255,0.2);
}

/* ===== Layout ===== */
.container {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 20px;
  padding: 20px;
}

/* ===== Current Issue Card ===== */
.issue {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.issue img {
  width: 180px;
  border-radius: 10px;
}

.issue h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.issue p {
  margin-bottom: 8px;
  color: #555;
}

.issue a {
  color: #1f5f8b;
  text-decoration: none;
}

/* ===== Sidebar ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Button */
button {
  background: #1f5f8b;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #174a6c;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  .issue {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .issue img {
    width: 100%;
    max-width: 250px;
  }
}

/* ===== Articles Section ===== */
.articles {
    padding: 25px;
    border-radius: 6px;
}

/* عنوان القسم */
.articles h2 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* كل مقال */
.article-item {
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

/* عنوان المقال */
.article-item h3 {
    font-size: 16px;
    color: #0b5e8a;
    margin-bottom: 8px;
    line-height: 1.6;
    text-align: justify; /* 🔥 */
}

/* DOI */
.article-item .doi {
    font-size: 14px;
    margin-bottom: 6px;
    text-align: justify; /* 🔥 */
}

.article-item .doi a {
    color: #0b5e8a;
    text-decoration: none;
}

.article-item .doi a:hover {
    text-decoration: underline;
}

/* المؤلف */
.article-item .author {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
    text-align: justify; /* 🔥 */
}

/* صف الأزرار والتاريخ */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* زر PDF */
.article-item .pdf-btn {
    border: 1px solid #0b5e8a;
    color: #0b5e8a;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

.article-item .pdf-btn:hover {
    background: #0b5e8a;
    color: white;
}

/* التاريخ */
.article-item .date {
    font-size: 13px;
    color: #777;
}

/* ===== خلي كل النصوص justify بشكل عام ===== */
p, li {
    text-align: justify;
}