/*
Theme Name: مجلة رصين
Theme URI: http://localhost/raseen
Description: قالب مجلة رصين للبحوث والدراسات
Version: 2.0
Text Domain: raseen
*/

/* ===== VARIABLES ===== */
:root {
  --red:     #6f091e;
  --red2:    #8f1a30;
  --red3:    #4d0615;
  --gold:    #C8974A;
  --gold2:   #E0B870;
  --bg:      #FFFFFF;
  --bg2:     #FBF7F4;
  --bg3:     #F5EDE6;
  --text:    #1A0A0E;
  --text2:   #5C3040;
  --border:  #E5D0C0;
  --shadow:  0 2px 12px rgba(123,28,44,.08);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Tajawal', 'Cairo', 'Noto Naskh Arabic', Arial, sans-serif;
  background: var(--bg2);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  font-size: 14px;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== NAVIGATION ===== */
#main-nav {
  background: #fff;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.nav-home-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  margin-left: 4px;
  white-space: nowrap;
}
.nav-home-btn:hover { background: var(--red3); color: #fff !important; }
#main-nav ul, #main-nav .nav-links { display: flex; flex: 1; flex-wrap: nowrap; align-items: center; }
#main-nav ul li, #main-nav .nav-links li { position: relative; }
#main-nav ul li a, #main-nav .nav-links li a {
  display: block;
  padding: 12px 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
  white-space: nowrap;
}
#main-nav ul li a:hover, #main-nav .nav-links li a:hover { color: var(--red); }
/* Dropdown */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
}
.nav-dropdown-toggle:hover { color: var(--red); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 0 0 8px 8px;
  min-width: 160px;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  z-index: 200;
}
.nav-dropdown-wrap:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--bg3);
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--bg2); color: var(--red); }

.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  background: var(--bg2);
  margin-right: auto;
  white-space: nowrap;
  text-decoration: none;
}
.nav-search-btn:hover { border-color: var(--red); color: var(--red); }

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #fff 60%, var(--bg3) 100%);
  border-bottom: 3px solid var(--border);
  padding: 24px 20px 0;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
}
.hero-text { flex: 1; }
.hero-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--red);
  line-height: 1.2;
  font-family: 'Cairo', serif;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-size: 16px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 4px;
}
.hero-img {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 0 20px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-left: 1px solid var(--border);
  flex: 1;
}
.stat-item:last-child { border-left: none; }
.stat-icon {
  width: 38px;
  height: 38px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.stat-num { font-size: 18px; font-weight: 900; color: var(--red); display: block; line-height: 1.1; }
.stat-label { font-size: 11px; color: var(--text2); }

/* ===== SEARCH BAR ===== */
.search-bar-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}
.search-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}
.search-bar-inner input {
  flex: 1;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 8px 8px 0;
  font-family: inherit;
  font-size: 14px;
  direction: rtl;
  outline: none;
  background: var(--bg2);
}
.search-bar-inner input:focus { border-color: var(--red); background: #fff; }
.search-bar-inner button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px 0 0 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.search-bar-inner button:hover { background: var(--red3); }

/* ===== NEWS TICKER ===== */
.news-ticker-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
}
.news-ticker-label {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 1;
}
.news-ticker-logo {
  background: #fff;
  height: 100%;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
}
.news-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.news-ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 20s linear infinite;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.news-ticker-content:hover { animation-play-state: paused; }
.ticker-sep { color: var(--gold); font-size: 12px; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== LAYOUT ===== */
.site-wrapper { max-width: 1200px; margin: 0 auto; padding: 20px; }
.three-col { display: grid; grid-template-columns: 220px 1fr 220px; gap: 18px; }

/* ===== WIDGET BOX ===== */
.widget-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.widget-title {
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
}
.widget-title svg { flex-shrink: 0; opacity: .85; }
.widget-box ul { padding: 6px 0; }
.widget-box ul li { border-bottom: 1px solid var(--bg3); }
.widget-box ul li:last-child { border-bottom: none; }
.widget-box ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.widget-box ul li a:hover { background: var(--bg2); color: var(--red); }
.widget-box ul li a .li-icon {
  width: 22px;
  height: 22px;
  background: var(--bg3);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  color: var(--red);
}

/* ===== SIDEBAR LEFT ===== */
.sidebar-left .logo-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  padding: 18px 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.logo-box-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.logo-box-name { font-size: 15px; font-weight: 900; color: var(--red); }
.logo-box-sub { font-size: 11px; color: var(--text2); margin-top: 2px; }

/* Editorial board sidebar */
.eb-chief {
  padding: 10px 14px;
  border-bottom: 1px solid var(--bg3);
}
.eb-chief-role { font-size: 10px; color: var(--gold); font-weight: 800; display: block; margin-bottom: 1px; }
.eb-chief-name { font-size: 13px; color: var(--red); font-weight: 900; display: block; }
.eb-chief-uni { font-size: 11px; color: var(--text2); }

.eb-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--bg3);
}
.eb-member:last-of-type { border-bottom: none; }
.eb-avatar {
  width: 32px;
  height: 32px;
  background: var(--bg3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.eb-info { flex: 1; min-width: 0; }
.eb-name { font-size: 12px; font-weight: 700; color: var(--text); display: block; }
.eb-uni-small { font-size: 10px; color: var(--text2); display: block; }

.btn-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 28px);
  margin: 10px 14px 12px;
  padding: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .2s;
}
.btn-view-all:hover { background: var(--bg3); color: var(--red); }

/* ISSN */
.issn-box { padding: 12px 14px; }
.issn-box strong { display: block; font-size: 13px; color: var(--red); font-weight: 800; margin-bottom: 4px; }
.issn-box span { font-size: 18px; font-weight: 900; color: var(--text); letter-spacing: 1px; }

/* Announcements */
.announce-list { padding: 8px 14px; }
.announce-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--border);
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}
.announce-item:last-child { border-bottom: none; }
.announce-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex-shrink: 0; margin-top: 5px; }

/* ===== ISSUE COVER ===== */
.issue-cover-wrap {
  text-align: center;
  margin-bottom: 16px;
}
.issue-cover-img {
  width: 75%;
  height: auto;
  display: inline-block;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(123,28,44,.15);
}

/* ===== MAIN CONTENT ===== */
.main-content { min-width: 0; }

/* Issue Header */
.issue-top {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.issue-top-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 12px;
  line-height: 1.5;
  text-align: center;
}
.issue-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.issue-top-date { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 5px; }
.btn-dl-issue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 7px;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.btn-dl-issue:hover { background: var(--red3); color: #fff; }
button.btn-dl-issue { border: none; cursor: pointer; font-family: inherit; }

/* Articles */
.articles-list { display: flex; flex-direction: column; gap: 10px; }
.article-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s;
}
.article-item:hover { box-shadow: 0 4px 16px rgba(123,28,44,.12); border-color: var(--red2); }
.article-doc-icon {
  width: 38px;
  height: 46px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--red);
}
.article-body { flex: 1; min-width: 0; }
.article-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 5px;
}
.article-item-author {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text2);
}
.btn-dl-article {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s;
}
.btn-dl-article:hover { background: var(--red); color: #fff; }

.btn-view-all-articles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
  font-family: inherit;
  border: none;
  cursor: pointer;
}
.btn-view-all-articles:hover { background: var(--red3); color: #fff; }

/* ===== SUBMIT ARTICLE BOX ===== */
.submit-article-box {
  background: linear-gradient(145deg, var(--red3) 0%, var(--red) 60%, #C0392B 100%);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(123,28,44,.25);
  position: relative;
  overflow: hidden;
}
.submit-article-box::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.submit-article-box::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.submit-article-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
  position: relative;
  z-index: 1;
}
.submit-article-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.submit-article-desc {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.submit-article-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--red3);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  transition: all .2s;
  position: relative;
  z-index: 1;
  word-break: break-all;
}
.submit-article-btn:hover {
  background: var(--bg3);
  color: var(--red3);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

/* ===== RIGHT SIDEBAR ===== */
.journal-card {
  background: linear-gradient(160deg, var(--red3) 0%, var(--red) 100%);
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(123,28,44,.2);
}
.journal-card-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  padding: 6px;
}
.journal-card-name { font-size: 18px; font-weight: 900; color: #fff; line-height: 1.2; }
.journal-card-sub { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 3px; }

.sidebar-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bg3);
}
.sidebar-info-item:last-child { border-bottom: none; }
.sidebar-info-icon {
  width: 32px;
  height: 32px;
  background: var(--bg3);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--red);
  border: 1px solid var(--border);
}
.sidebar-info-text { flex: 1; min-width: 0; }
.sidebar-info-label { font-size: 12px; font-weight: 800; color: var(--red); display: block; margin-bottom: 2px; }
.sidebar-info-value { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--red3), var(--red));
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 4px solid var(--gold);
  margin-bottom: 30px;
}
.page-hero h1 { font-size: 24px; font-weight: 800; }

/* ===== PAGE CONTENT ===== */
.page-content-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }
.entry-content h2 { color: var(--red); border-right: 4px solid var(--gold); padding-right: 12px; margin: 20px 0 10px; font-size: 17px; }
.entry-content p { margin-bottom: 14px; line-height: 1.9; }
.entry-content ul { padding-right: 20px; margin-bottom: 14px; }
.entry-content ul li { margin-bottom: 6px; }

/* ===== SINGLE POST ===== */
.post-meta-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 18px;
}
.share-box { margin-top: 30px; padding: 16px 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; border-right: 4px solid var(--red); }
.share-label { font-size: 14px; font-weight: 700; color: var(--red); display: block; margin-bottom: 12px; }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; transition: opacity .2s; }
.share-btn:hover { opacity: .85; color: #fff; }
.share-wa { background: #25D366; } .share-tw { background: #000; } .share-fb { background: #1877F2; } .share-em { background: var(--red); }

/* ===== ARTICLE DOWNLOAD (single) ===== */
.article-meta-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; }
.article-meta-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dotted var(--border); font-size: 14px; }
.article-meta-row:last-child { border-bottom: none; }
.meta-label { font-weight: 700; color: var(--gold); min-width: 70px; font-size: 13px; }
.article-download-wrap { margin: 24px 0; text-align: center; }
.btn-download-pdf {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--red3), var(--red));
  color: #fff; font-size: 16px; font-weight: 700; padding: 14px 32px;
  border-radius: 8px; text-decoration: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(123,28,44,.25);
}
.btn-download-pdf:hover { opacity: .88; transform: translateY(-2px); color: #fff; }

/* ===== RESEARCHERS ===== */
.board-section { margin-bottom: 40px; }
.board-section-title { font-size: 16px; font-weight: 800; color: var(--red); border-right: 4px solid var(--gold); padding-right: 12px; margin-bottom: 16px; }
.researchers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.researcher-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; border-top: 3px solid var(--red); }
.researcher-avatar { min-width: 50px; height: 50px; background: linear-gradient(135deg, var(--red3), var(--red)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.researcher-info strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.researcher-role { font-size: 11px; background: var(--red); color: #fff; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 6px; }
.researcher-info p { font-size: 12px; color: var(--text2); margin: 0; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--red3);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  margin-top: 30px;
  border-top: 3px solid var(--gold);
}
.footer-socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.footer-soc {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
  transition: background .2s;
  text-decoration: none;
}
.footer-soc:hover { background: rgba(255,255,255,.25); color: #fff; }
.footer-divider { font-size: 18px; color: var(--gold); margin: 8px 0 10px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.5); }

/* ===== PDF VIEWER MODAL ===== */
#raseenPdfModal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 99999;
  flex-direction: column;
}
.pdf-modal-header {
  background: linear-gradient(135deg, var(--red3), var(--red));
  padding: 12px 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
#raseenPdfTitle { color: #fff; font-size: 13px; font-weight: 700; flex: 1; line-height: 1.4; }
.pdf-btn-download {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--red);
  font-size: 12px; font-weight: 800; padding: 7px 16px; border-radius: 6px; text-decoration: none;
}
.pdf-btn-download:hover { background: var(--bg3); color: var(--red); }
.pdf-btn-close {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 6px;
  cursor: pointer; font-family: inherit;
}
.pdf-btn-close:hover { background: rgba(255,255,255,.25); }
#raseenPdfFrame { flex: 1; width: 100%; border: none; background: #525659; }

/* ===== NEWSLETTER ===== */
.newsletter-section { background: linear-gradient(135deg, var(--red3), var(--red)); padding: 30px 20px; }
.newsletter-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.newsletter-text h2 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.newsletter-text p { color: rgba(255,255,255,.85); font-size: 13px; margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { padding: 10px 16px; border: none; border-radius: 8px; font-family: inherit; font-size: 14px; direction: rtl; min-width: 200px; }
.newsletter-form button { padding: 10px 24px; background: #fff; color: var(--red); border: none; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.sub-msg { padding: 12px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.sub-msg.success { background: rgba(255,255,255,.25); color: #fff; }
.sub-msg.info { background: rgba(255,255,255,.15); color: #fff; }
.sub-msg.error { background: rgba(220,38,38,.2); color: #fff; }

/* ===== CONTACT ===== */
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 30px; max-width: 600px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--text2); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 14px; margin-bottom: 16px; background: var(--bg2); direction: rtl; }
.contact-form textarea { height: 120px; resize: vertical; }
.btn-submit { background: var(--red); color: #fff; border: none; padding: 12px 30px; border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-submit:hover { background: var(--red3); }

/* ===== PAGINATION ===== */
.articles-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
}
.articles-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.articles-pagination .page-numbers:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(123,28,44,.2);
  transform: translateY(-1px);
}
.articles-pagination .page-numbers.current {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(123,28,44,.25);
}
.articles-pagination .page-numbers.dots {
  background: none;
  border: none;
  box-shadow: none;
  cursor: default;
  color: var(--text2);
}
.articles-pagination .next,
.articles-pagination .prev {
  background: var(--bg2);
  font-size: 13px;
  padding: 0 16px;
  border-color: var(--border);
  color: var(--red);
  font-weight: 800;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  /* Layout */
  .three-col { grid-template-columns: 1fr; }
  .sidebar-left { order: 3; }
  .sidebar-right { order: 2; }
  .main-content { order: 1; }

  /* Hero */
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .hero-title { font-size: 28px; }
  .hero-img { width: 90px; height: 90px; align-self: center; }

  /* Stats */
  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex: 1 1 calc(50% - 1px); padding: 10px 14px; }

  /* Nav */
  #main-nav .nav-inner { flex-wrap: wrap; overflow-x: auto; }
  #main-nav .nav-links { flex-wrap: wrap; }
  .nav-search-btn { margin-right: 0; }
}

@media (max-width: 600px) {
  /* Nav */
  .nav-inner { padding: 0 8px; gap: 0; }
  .nav-home-btn { padding: 8px 12px; font-size: 12px; }
  #main-nav ul li a, #main-nav .nav-links li a { padding: 8px 10px; font-size: 12px; }
  .nav-dropdown-toggle { padding: 8px 10px; font-size: 12px; }
  .nav-search-btn { display: none; }

  /* Hero */
  .hero-section { padding: 16px 14px 0; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
  .hero-img { width: 75px; height: 75px; }

  /* Stats */
  .stat-item { flex: 1 1 calc(50% - 1px); padding: 8px 10px; }
  .stat-num { font-size: 15px; }

  /* Search */
  .search-bar-wrap { padding: 10px 14px; }

  /* Wrapper */
  .site-wrapper { padding: 12px 10px; }

  /* Article items */
  .article-item { flex-wrap: wrap; gap: 8px; }
  .article-doc-icon { display: none; }
  .btn-dl-article { width: 100%; justify-content: center; }

  /* Issue top */
  .issue-top-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-dl-issue { width: 100%; justify-content: center; }

  /* Page hero */
  .page-hero h1 { font-size: 18px; }

  /* Researchers grid */
  .researchers-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-socials { gap: 8px; }

  /* PDF modal */
  #raseenPdfModal .pdf-modal-header { flex-direction: column; align-items: flex-start; }
  .pdf-modal-actions { width: 100%; justify-content: space-between; }
}
