/* ================================================================
   COMPUTER SCIENCE JOURNAL — styles.css
   Complete stylesheet for all pages
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Asul:wght@400;700&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f8f8;
  color: #192a3d;
  font-size: 16px;
  line-height: 1.8;
}
a { text-decoration: none; color: #d74e09; transition: color .2s; }
a:hover { color: #1559ed; text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'Asul', 'Segoe UI', sans-serif;
  font-weight: 700; color: #192a3d;
  line-height: 1.3; margin-bottom: .75rem;
}
p { margin-bottom: 1rem; }

/* ── HEADER / NAVBAR ──────────────────────────────────────────── */
#navbar { width: 100%; position: sticky; top: 0; z-index: 100; }

.header-top {
  background-color: #041121;
  background-image: url('https://computerscience.ac/wp-content/uploads/Blue-Futuristic-Technology-LinkedIn-Banner-scaled.png');
  background-size: cover;
  background-position: center;
  padding: 20px 0;
  min-height: 120px;
  display: flex;
  align-items: center;
}
.header-brand-inner { max-width: 1290px; margin: 0 auto; padding: 0 24px; }
.site-title-link {
  font-family: 'Asul', sans-serif;
  font-size: 2.4rem; font-weight: 400;
  color: #e1e8ed; display: block; line-height: 1.2;
  text-shadow: 1px 1px 4px rgba(0,0,0,.5);
}
.site-title-link:hover { color: #e1e8ed; text-decoration: none; }
.site-desc { font-size: 14px; color: #e1e8ed; margin-bottom: 0; }
.site-desc a { color: #e1e8ed; text-decoration: underline; }
.site-desc a:hover { color: #da8c3d; }

/* Nav bar */
.main-nav {
  background-color: #041121;
  border-top: 1px solid rgba(255,255,255,.1);
}
.nav-inner {
  max-width: 1290px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links { display: flex; align-items: center; flex-wrap: wrap; }
.nav-links a.nav-link {
  display: block; padding: 14px 15px;
  font-family: 'Asul', sans-serif;
  font-size: 15px; font-weight: 700;
  color: #e1e8ed; white-space: nowrap;
  transition: color .2s;
}
.nav-links a.nav-link:hover,
.nav-links a.nav-link.active { color: #da8c3d; text-decoration: none; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu {
  position: absolute; left: 0; top: 100%;
  background: #0a1f38; min-width: 220px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 20px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
  z-index: 200;
}
.nav-dropdown-menu ul { padding: 8px 0; }
.nav-dropdown-menu a {
  display: block; padding: 9px 18px;
  font-size: 14px; font-family: 'Asul', sans-serif; font-weight: 700;
  color: #e1e8ed;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  transition: color .2s;
}
.nav-dropdown-menu a:hover { color: #da8c3d; text-decoration: none; }
.nav-dropdown-menu li:last-child a { border-bottom: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px; padding: 6px 12px;
  font-size: 20px; background: transparent; color: #e1e8ed;
}
.nav-mobile-menu {
  display: none; background: #0a1f38;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 8px 24px 16px;
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu a {
  display: block; color: #e1e8ed; font-size: 14px;
  padding: 9px 0; font-family: 'Asul', sans-serif; font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s;
}
.nav-mobile-menu a:hover { color: #da8c3d; text-decoration: none; }

@media (max-width: 767px) {
  .nav-hamburger { display: block; }
  .nav-links { display: none; }
  .site-title-link { font-size: 1.6rem; }
}

/* ── FOOTER ───────────────────────────────────────────────────── */
#footer { background: #f2f5f7; padding: 48px 24px 0; }
.footer-inner {
  max-width: 1290px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-brand h2 { font-size: 18px; color: #192a3d; margin-bottom: 12px; }
.footer-brand p  { font-size: 14px; color: #3A4F66; line-height: 1.6; }
.footer-col h3   { font-size: 15px; color: #192a3d; margin-bottom: 12px; }
.footer-col li   { margin-bottom: 8px; }
.footer-col a    { font-size: 14px; color: #3A4F66; }
.footer-col a:hover { color: #2872fa; text-decoration: underline; }
.footer-bar {
  max-width: 1290px; margin: 0 auto;
  padding: 20px 0; border-top: 1px solid #e1e8ed;
  display: flex; justify-content: space-between;
  font-size: 13px; color: #3A4F66;
}
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bar   { flex-direction: column; gap: 6px; }
}

/* ── SHARED PAGE LAYOUT ───────────────────────────────────────── */
main { min-height: 60vh; }
.content-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }

/* White card */
.card {
  background: #fff; border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,.07);
  padding: 32px; margin-bottom: 28px;
}
.card h4  { font-size: 18px; margin-bottom: 12px; }
.card p, .card li { font-size: 15px; color: #3A4F66; line-height: 1.8; }
.card ul  { padding-left: 20px; list-style: disc; }
.card ul li { margin-bottom: 6px; }

/* Info boxes */
.info-box {
  background: #eaf2ff; border-left: 4px solid #2872fa;
  padding: 14px 18px; border-radius: 0 6px 6px 0;
  margin: 18px 0; font-size: 15px; line-height: 1.6;
}
.highlight-box {
  background: #fff8e1; border-left: 4px solid #da8c3d;
  padding: 14px 18px; border-radius: 0 6px 6px 0;
  margin: 18px 0; font-size: 15px;
}

/* Generic table */
.plain-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.plain-table th {
  background: #041121; color: #fff;
  font-family: 'Asul', sans-serif;
  font-size: 14px; padding: 11px 14px; text-align: left;
}
.plain-table td { padding: 11px 14px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.plain-table tr:nth-child(even) { background: #f9fafb; }

/* ── HOME PAGE ────────────────────────────────────────────────── */
.home-top-bar {
  background: #041121; color: #e1e8ed;
  text-align: center; padding: 18px 24px;
  font-size: 15px; font-weight: 600;
}
.home-top-bar a { color: #da8c3d; }
.home-top-bar a:hover { color: #fff; }

.csj-info-box {
  background: #fff; border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  padding: 30px; margin-bottom: 28px;
}
.csj-info-box h2   { font-size: 24px; margin-bottom: 4px; }
.csj-sub-label     { color: #3A4F66; font-size: 14px; margin-bottom: 20px; }
.csj-grid          { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.csj-table         { width: 100%; border-collapse: collapse; }
.csj-table tr      { border-bottom: 1px solid #e1e8ed; }
.csj-table td      { padding: 10px 6px; font-size: 14px; vertical-align: top; }
.csj-label         { font-weight: 600; width: 45%; color: #3A4F66; }
.csj-badge         { display: inline-block; background: #eaf2ff; color: #2872fa; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.csj-note          { background: #f9fafb; border-left: 4px solid #2872fa; padding: 14px 16px; margin-top: 20px; font-size: 14px; color: #3A4F66; line-height: 1.6; }
@media (max-width: 640px) { .csj-grid { grid-template-columns: 1fr; } }

/* ── ARCHIVES PAGE ────────────────────────────────────────────── */
.archives-content {
  max-width: 960px; margin: 0 auto; padding: 32px 28px;
}
.archives-content > h1 {
  font-size: 28px; font-weight: 700;
  color: #192a3d; margin-bottom: 8px;
  font-family: 'Asul', sans-serif;
}
.archives-intro {
  font-size: 15px; color: #3A4F66;
  margin-bottom: 28px; line-height: 1.7;
}

/* Volume group block */
.volume-group {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.volume-title {
  font-size: 17px; font-weight: 700;
  color: #fff;
  background: #041121;
  margin: 0; padding: 14px 20px;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Asul', sans-serif;
}

/* Issue list inside volume */
.volume-issues { padding: 6px 0 10px 0; }
.volume-issues li {
  border-bottom: 1px solid #f3f4f6;
}
.volume-issues li:last-child { border-bottom: none; }
.volume-issues a {
  display: block;
  padding: 10px 22px;
  color: #1559ed; font-size: 15px; font-weight: 500;
  transition: background .15s, color .15s;
}
.volume-issues a:hover {
  background: #f0f4ff;
  color: #d74e09;
  text-decoration: none;
  padding-left: 28px;
}
.current-tag {
  color: #da8c3d;
  font-size: 13px;
}

/* ── ARTICLES / CURRENT ISSUE PAGE ───────────────────────────── */
.articles-content {
  max-width: 960px; margin: 0 auto; padding: 28px 28px 40px;
}

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #1559ed; font-size: 14px; font-weight: 600;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid #c7d7f5;
  border-radius: 20px;
  background: #f0f4ff;
  transition: background .2s, color .2s;
}
.back-link:hover {
  background: #1559ed; color: #fff;
  text-decoration: none;
}

/* Issue banner */
.issue-banner {
  background: linear-gradient(135deg, #041121 0%, #0a2a4a 100%);
  color: #fff; border-radius: 10px;
  padding: 24px 28px; margin-bottom: 28px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.issue-banner h1 {
  font-family: 'Asul', sans-serif;
  font-size: 22px; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.issue-banner p { font-size: 14px; color: rgba(255,255,255,.8); margin: 0; }
.current-badge {
  background: #da8c3d; color: #fff;
  padding: 7px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  flex-shrink: 0;
}

/* Article count */
.article-count {
  font-size: 14px; color: #3A4F66;
  margin-bottom: 18px;
  padding: 8px 14px;
  background: #f0f4ff;
  border-radius: 4px;
  display: inline-block;
}

/* Article card */
.article-item {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 18px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: box-shadow .2s, border-color .2s;
}
.article-item:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  border-color: #c7d7f5;
}

/* Serial number bubble */
.article-serial {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: #041121; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  font-family: 'Asul', sans-serif;
  margin-top: 2px;
}

/* Article body */
.article-body { flex: 1; min-width: 0; }
.article-title-link {
  display: block;
  font-size: 16px; font-weight: 700;
  color: #041121; line-height: 1.45;
  margin-bottom: 8px;
  transition: color .2s;
}
.article-title-link:hover { color: #d74e09; text-decoration: underline; }

.article-authors {
  font-size: 14px; color: #3A4F66;
  margin-bottom: 8px;
}
.article-abstract {
  font-size: 13.5px; color: #3A4F66;
  line-height: 1.65; margin-bottom: 8px;
  background: #f4f8ff; border-left: 3px solid #2872fa;
  padding: 8px 12px; border-radius: 0 4px 4px 0;
}
.article-citation {
  font-size: 12.5px; color: #555;
  font-style: italic; margin-bottom: 10px;
}
.article-meta-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: #666;
  margin-bottom: 12px;
}
.article-pages  { color: #555; }
.article-doi    { color: #555; }
.article-doi a  { color: #d74e09; font-weight: 600; }
.article-doi a:hover { color: #1559ed; }

/* Action buttons */
.article-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-pdf {
  display: inline-flex; align-items: center; gap: 5px;
  background: #c0392b; color: #fff;
  padding: 6px 16px; border-radius: 5px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .2s;
  border: none;
}
.btn-pdf:hover { background: #a93226; color: #fff; text-decoration: none; }
.btn-doi {
  display: inline-flex; align-items: center; gap: 5px;
  background: #eaf2ff; color: #2872fa;
  padding: 6px 16px; border-radius: 5px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .2s, color .2s;
  border: 1px solid #c7d7f5;
}
.btn-doi:hover { background: #2872fa; color: #fff; text-decoration: none; }

/* No articles placeholder */
.no-articles {
  text-align: center; padding: 48px 24px;
  background: #fff; border: 1px dashed #d1d5db;
  border-radius: 8px; color: #666;
}
.no-articles p { margin-bottom: 8px; font-size: 15px; }
.no-articles a { color: #d74e09; font-weight: 600; }

/* Bottom nav */
.bottom-nav { margin-top: 28px; }

/* ── OTHER PAGES ──────────────────────────────────────────────── */

/* Page banner (used on about, indexing etc) */
.page-banner {
  background-color: #041121; color: #fff;
  text-align: center; padding: 48px 24px;
}
.page-banner h1 { font-size: 32px; color: #fff; margin-bottom: 8px; }
.page-banner p  { color: #e1e8ed; max-width: 650px; margin: 0 auto; font-size: 14px; }

/* Indexing grid */
.indexing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.indexing-card {
  background: #fff; border: 1px solid #e1e8ed;
  border-radius: 8px; padding: 24px;
}
.indexing-card h3  { font-size: 20px; color: #2872fa; margin-bottom: 10px; }
.indexing-card p   { font-size: 14px; color: #3A4F66; line-height: 1.7; }
@media (max-width: 640px) { .indexing-grid { grid-template-columns: 1fr; } }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team-card {
  background: #ecf5ff; border: 1px solid #cdddf7;
  border-radius: 12px; text-align: center; padding: 28px 16px;
}
.team-card .role {
  font-size: 11px; letter-spacing: 2px; font-weight: 700;
  color: #2872fa; text-transform: uppercase; margin-bottom: 8px;
}
.team-card h3        { font-size: 17px; margin-bottom: 4px; }
.team-card .institution { font-size: 13px; color: #3A4F66; margin-bottom: 2px; }
.team-card .country     { font-size: 13px; color: #3A4F66; font-weight: 600; }
@media (max-width: 767px)  { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2,1fr); } }

/* Contact */
.contact-section {
  background: #fff; border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,.07);
  padding: 32px; margin-bottom: 24px;
}
.contact-section h3 {
  font-size: 20px; color: #192a3d; margin-bottom: 16px;
  border-bottom: 2px solid #e1e8ed; padding-bottom: 10px;
}
.contact-row     { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-icon    { font-size: 20px; }
.contact-info-text p    { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.contact-info-text span { font-size: 14px; color: #3A4F66; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group       { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; border: 1px solid #e1e8ed; border-radius: 6px;
  padding: 10px 14px; font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #2872fa; }
.form-group textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  width: 100%; background: #2872fa; color: #fff;
  border: none; border-radius: 6px; padding: 13px;
  font-size: 15px; font-weight: 700; transition: background .2s;
}
.btn-submit:hover { background: #1559ed; }
@media (max-width: 640px) { .contact-form-grid { grid-template-columns: 1fr; } }

/* ── RESPONSIVE FIXES ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .article-item { flex-direction: column; gap: 12px; }
  .article-serial { width: 30px; height: 30px; font-size: 12px; }
  .issue-banner { padding: 18px; }
  .issue-banner h1 { font-size: 18px; }
  .archives-content,
  .articles-content { padding: 20px 16px; }
  .article-actions { flex-direction: column; }
  .btn-pdf, .btn-doi { width: 100%; justify-content: center; }
}
