/* Taj Scientific & Research Journal - styles on top of the Taj University site stylesheet (assets/taj/css/taj.css).
   Same navy / gold identity as taj.edu.af, laid out like an online academic magazine. RTL, no framework. */

body { background: var(--white); }
.fa-num { font-feature-settings: "ss01"; }
bdi.ltr, .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Header additions ---------- */
.brand .tag small { display: block; font: 500 12.5px/1.4 var(--font-body); color: var(--muted); letter-spacing: .01em; }
.nav .nav-cta > a { background: var(--gold); color: var(--ink); font-weight: 700; border-radius: 4px; padding: 11px 18px; margin-inline-start: 10px; }
.nav .nav-cta > a:hover { background: #ddb04f; color: var(--ink); }
.nav > li.nav-cta { display: flex; align-items: center; }
/* the journal's own logo is a square with generous white margin: draw it larger and let the margin overlap */
.site-header .brand img { height: 84px; width: auto; margin: -10px -6px; }
.foot-brand img { height: 132px; width: auto; margin: -16px 0 -2px -8px; background: #fff; border-radius: 50%; padding: 4px; }
.auth-card .logo img { height: 104px; margin: -10px 0 -4px; }
@media (max-width: 640px) { .site-header .brand img { height: 64px; margin: -6px -4px; } }

/* ---------- Home hero (journal masthead) ---------- */
.mag-hero { background: var(--ink) var(--tile); color: #fff; position: relative; overflow: hidden; }
.mag-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(13,33,69,0) 35%, rgba(26,69,144,.5)); pointer-events: none; }
.mag-hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; padding: 72px 0 96px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: #f2cf84; letter-spacing: .02em; margin-bottom: 16px; }
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.mag-hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.3; margin: 0 0 8px; }
.mag-hero .en { font: 600 15px/1.6 "Montserrat", "Segoe UI", Arial, sans-serif; color: #9fb3d9; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 22px; direction: ltr; text-align: start; }
.mag-hero .lede { font-size: 18px; line-height: 2.05; color: #d5deef; max-width: 56ch; margin-bottom: 26px; }
.issn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.issn-row li { border: 1px solid rgba(255,255,255,.28); border-radius: 99px; padding: 4px 14px; font-size: 13.5px; color: #e8eefb; line-height: 1.7; }
.issn-row a { color: inherit; text-decoration: none; }
.issn-row b { color: #f2cf84; font-weight: 600; margin-inline-end: 6px; }
.mag-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.search { display: flex; max-width: 560px; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.search input { flex: 1; border: 0; padding: 15px 18px; font: 400 16px/1.5 var(--font-body); color: var(--text); min-width: 0; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 3px rgba(201,154,58,.55); }
.search button { border: 0; background: var(--gold); color: var(--ink); font: 700 15px/1 var(--font-body); padding: 0 26px; cursor: pointer; }
.search button:hover { background: #ddb04f; }

.cover-card { position: relative; justify-self: center; width: min(100%, 340px); }
.cover-card .sheet { position: relative; border-radius: 3px; overflow: hidden; aspect-ratio: 3 / 4; background: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.07), 0 0 0 9px rgba(201,154,58,.75), 0 30px 60px rgba(0,0,0,.45); transform: rotate(-1.6deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.cover-card:hover .sheet { transform: rotate(0deg) translateY(-4px); }
.cover-card img { width: 100%; height: 100%; object-fit: cover; }
.cover-card .cap { margin-top: 26px; text-align: center; color: #fff; font-weight: 700; font-size: 18px; line-height: 1.5; }
.cover-card .cap small { display: block; color: #b9c6df; font-weight: 400; font-size: 14px; }
.cover-card.empty-cover .sheet { display: grid; place-items: center; background: rgba(255,255,255,.06); color: #b9c6df; }

/* ---------- Section helpers ---------- */
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-row .sec-head { margin: 0; }
.link-more { font-weight: 700; color: var(--lapis); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-more:hover { color: var(--ink); }
.facts.mag .fact b { font-size: 36px; }

/* ---------- Article cards ---------- */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.articles.one { grid-template-columns: 1fr; gap: 18px; }
.acard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 22px; border-top: 4px solid var(--gold); transition: box-shadow .2s, transform .2s; }
.acard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.acard .no { position: absolute; inset-inline-end: 22px; top: -16px; background: var(--ink); color: #fff; font: 700 14px/1 var(--font-body); min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 99px; padding: 0 8px; box-shadow: 0 4px 10px rgba(13,33,69,.25); }
.acard .meta { font-size: 13.5px; color: var(--glass); font-weight: 500; margin-bottom: 8px; line-height: 1.6; }
.acard h3 { font-size: 21px; line-height: 1.7; margin: 0 0 10px; font-weight: 700; }
.acard h3 a { color: var(--ink); text-decoration: none; }
.acard h3 a:hover { color: var(--lapis); }
.acard .by { color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0 0 14px; }
.acard .by a.orcid, .byline a.orcid { display: inline-flex; vertical-align: middle; margin-inline-end: 4px; }
.acard .by a.orcid img, .byline a.orcid img { width: 17px; height: 17px; display: inline-block; }
.acard .by .au + .au::before, .byline .au + .au::before { content: "،"; margin-inline-end: 6px; color: var(--muted); }
.acard .foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.stats span::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; margin-inline-end: 6px; }
.acard .acts { display: flex; gap: 8px; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 4px; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.doi-chip { display: inline-block; font-size: 12.5px; direction: ltr; unicode-bidi: isolate; color: var(--lapis); background: var(--glass-soft); border-radius: 99px; padding: 1px 10px; text-decoration: none; margin-bottom: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doi-chip:hover { background: #cfe6ea; color: var(--ink); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }
.card.top { border-top: 4px solid var(--gold); }
.card h3 { font-size: 24px; margin-bottom: 16px; }
dl.info { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 22px; }
dl.info dt { color: var(--muted); font-size: 14.5px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
dl.info dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-weight: 500; line-height: 1.8; }
dl.info dt:last-of-type, dl.info dd:last-of-type { border-bottom: 0; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.person { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; border-inline-start: 4px solid var(--gold); }
.person small { color: var(--muted); display: block; font-size: 13px; line-height: 1.5; }
.person b { color: var(--ink); font-size: 17px; line-height: 1.6; }
.marks { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.marks img { height: 44px; width: auto; object-fit: contain; filter: grayscale(.15); }
.board table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.board th { background: var(--ink); color: #fff; text-align: start; padding: 10px 14px; font-weight: 700; }
.board td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
.board tbody tr:nth-child(even) { background: #f8fafc; }
.board .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Archive / issues ---------- */
.issues { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.issue { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.issue .sheet { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; background: var(--paper); box-shadow: 0 1px 2px rgba(13,33,69,.08), 0 14px 28px rgba(13,33,69,.14); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.issue:hover .sheet { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(13,33,69,.1), 0 22px 36px rgba(13,33,69,.2); }
.issue .sheet img { width: 100%; height: 100%; object-fit: cover; }
.issue .body { padding: 16px 4px 0; border-top: 4px solid var(--gold); margin-top: 18px; }
.issue h3 { font-size: 20px; margin: 0 0 2px; }
.issue p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.issue .now { display: inline-block; background: var(--gold); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 0 10px; border-radius: 99px; margin-inline-start: 6px; vertical-align: middle; }

.issue-hero .wrap { display: grid; grid-template-columns: 170px 1fr; gap: 40px; align-items: center; }
.issue-hero .thumb { border-radius: 3px; overflow: hidden; aspect-ratio: 3/4; box-shadow: 0 0 0 6px rgba(255,255,255,.07), 0 0 0 7px rgba(201,154,58,.7), 0 18px 36px rgba(0,0,0,.4); background: rgba(255,255,255,.06); }
.issue-hero .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Article page ---------- */
.article-hero h1 { max-width: 34ch; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.6; }
.byline { color: #e8eefb; font-size: 17px; line-height: 2; margin: 8px 0 18px; }
.byline .au a { color: #fff; }
.byline a.orcid img { width: 20px; height: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill { border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 3px 14px; font-size: 13.5px; color: #e8eefb; text-decoration: none; line-height: 1.8; }
.tag-pill.doi { direction: ltr; unicode-bidi: isolate; color: #f2cf84; border-color: rgba(242,207,132,.5); }
.article-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.article-main h2 { font-size: 26px; margin: 0 0 14px; position: relative; }
.article-main h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--gold); margin-bottom: 12px; }
.abstract { font-size: 17.5px; line-height: 2.15; color: var(--text); margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { background: var(--glass-soft); color: var(--ink); border-radius: 99px; padding: 3px 16px; font-size: 15px; line-height: 1.9; text-decoration: none; }
.chip:hover { background: #cfe6ea; }
.refs { padding-inline-start: 1.6em; margin: 0 0 20px; font-size: 15.5px; line-height: 2; color: #2b3547; }
.refs li { margin-bottom: 8px; padding-inline-start: 4px; }
.refs li::marker { color: var(--gold-deep); font-weight: 700; }
.article-aside { position: sticky; top: 104px; display: grid; gap: 20px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; }
.aside-card h3 { font-size: 18px; margin-bottom: 12px; }
.aside-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.aside-card .btn:last-child { margin-bottom: 0; }
.aside-cover { border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4; margin-bottom: 16px; background: var(--paper); }
.aside-cover img { width: 100%; height: 100%; object-fit: cover; }
.cite-box { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; font-size: 14px; line-height: 1.95; color: #2b3547; margin: 0 0 12px; word-break: break-word; }
.copy-btn { width: 100%; }
.copied { color: #1d5b33; font-weight: 700; }

/* ---------- Static pages with scanned documents ---------- */
.doc-pages { display: grid; gap: 22px; justify-items: center; }
.doc-pages img { width: min(100%, 860px); height: auto; border-radius: 3px; box-shadow: 0 1px 2px rgba(13,33,69,.08), 0 14px 30px rgba(13,33,69,.12); background: #fff; }
.calls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.call { text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; border-top: 4px solid var(--gold); }
.call:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.call img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.call h3 { font-size: 19px; margin: 0; padding: 16px 20px; }

/* ---------- Forms / notices ---------- */
.notice { padding: 14px 18px; border-radius: 4px; font-weight: 500; line-height: 1.8; margin-bottom: 22px; }
.notice.success { background: #e5f4ea; color: #1d5b33; border: 1px solid #b9dfc7; }
.notice.danger { background: #fbe9e6; color: #8a2b1f; border: 1px solid #efc3bc; }
.notice.warning { background: var(--gold-soft); color: #5b4a1e; border: 1px solid #ecd9a8; }
.form select { font: 400 16px/1.7 var(--font-body); padding: 12px 14px; border: 1px solid #b8c3d4; border-radius: 4px; background: #fff; width: 100%; }
.form small { color: var(--muted); font-weight: 400; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 46px; line-height: 1.9; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; box-shadow: 0 0 0 3px var(--gold-soft); }
.video-card video { width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- PDF reader ---------- */
.reader { margin: 0; background: #1b2438; min-height: 100vh; display: flex; flex-direction: column; }
.reader-bar { background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 22px; flex-wrap: wrap; border-bottom: 3px solid var(--gold); }
.reader-bar h1 { color: #fff; font: 700 16px/1.6 var(--font-body); margin: 0; flex: 1; min-width: 200px; }
.reader-bar a { color: inherit; }
.reader object { flex: 1; width: 100%; min-height: calc(100vh - 62px); border: 0; background: #fff; }

/* ---------- Auth pages ---------- */
.auth-page { min-height: 100vh; background: var(--ink) var(--tile); display: grid; place-items: center; padding: 28px 16px; }
.auth-card { background: #fff; width: min(100%, 440px); border-radius: var(--radius); border-top: 5px solid var(--gold); padding: 34px 34px 30px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.auth-card .logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-card .logo img { width: auto; }
.auth-card h1 { font-size: 24px; text-align: center; margin-bottom: 4px; }
.auth-card .sub-t { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.auth-card .form input { direction: ltr; text-align: start; }
.auth-card .form input[type=checkbox] { width: auto; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-card .alt { text-align: center; margin-top: 18px; font-size: 14.5px; }
.auth-card .linkbtn { background: none; border: 0; color: var(--lapis); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.auth-card .terms { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; }
.auth-back { margin-top: 18px; text-align: center; }
.auth-back a { color: #b9c6df; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .mag-hero .wrap { grid-template-columns: 1fr; gap: 44px; padding: 48px 0 72px; }
  .cover-card { width: min(100%, 280px); order: -1; }
  .articles { grid-template-columns: 1fr; }
  .issues { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .article-wrap { grid-template-columns: 1fr; gap: 36px; }
  .article-aside { position: static; }
  .calls { grid-template-columns: repeat(2, 1fr); }
  .nav .nav-cta > a { margin: 10px 0 0; text-align: center; justify-content: center; }
  .nav > li.nav-cta { display: block; }
}
@media (max-width: 640px) {
  .issues { grid-template-columns: 1fr 1fr; gap: 18px; }
  .calls { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .issue-hero .wrap { grid-template-columns: 110px 1fr; gap: 20px; }
  dl.info { grid-template-columns: 1fr; }
  dl.info dt { padding-bottom: 0; border: 0; }
  .card { padding: 24px 20px; }
  .acard { padding: 24px 20px 20px; }
  .search button { padding: 0 18px; }
  .auth-card { padding: 28px 22px; }
}
@media print {
  .search, .article-aside .btn, .mag-hero .cta, .nav-cta { display: none; }
  .article-wrap { grid-template-columns: 1fr; }
}

/* ---------- Author area (/account) ---------- */
.acct-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 82px; z-index: 40; }
.acct-nav .wrap { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.acct-nav a, .acct-nav .out button { display: inline-block; padding: 15px 16px; color: var(--text); text-decoration: none; font: 500 15px/1.4 var(--font-body); border: 0; background: none; cursor: pointer; }
.acct-nav a:hover, .acct-nav .out button:hover { color: var(--lapis); }
.acct-nav a.on { color: var(--lapis); box-shadow: inset 0 -3px 0 var(--gold); font-weight: 700; }
.acct-nav a.staff { color: var(--gold-deep); font-weight: 700; }
.acct-nav .out { margin: 0; margin-inline-start: auto; }
.wrap.narrow { width: min(100% - 40px, 760px); }
.acct-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.who-card { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.who-card h2 { font-size: 26px; margin: 0 0 4px; }
.who-card p { margin: 0; color: var(--muted); }
.avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--gold-soft), 0 0 0 5px var(--gold); flex: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.data-table th { background: var(--ink); color: #fff; text-align: start; padding: 12px 16px; font-weight: 700; white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.data-table tbody tr:hover { background: var(--glass-soft); }
.pill { display: inline-block; border-radius: 99px; padding: 1px 12px; font-size: 13.5px; font-weight: 500; }
.pill.warn { background: var(--gold-soft); color: #7a5a14; }
.pill.ok { background: #e5f4ea; color: #1d5b33; }
@media (max-width: 1060px) { .acct-grid { grid-template-columns: 1fr; } .acct-nav { top: 72px; } }
@media (max-width: 640px) { .acct-nav a, .acct-nav .out button { padding: 12px 10px; font-size: 14px; } .who-card { flex-direction: column; align-items: flex-start; } }
