/* ===========================================
   ARXIV-STYLE FULL WIDTH ALIGNMENT SYSTEM
   =========================================== */

/* Remove all page side margins */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Header, body, and footer align with no gaps */
.arxiv-line {
    width: 100%;
    margin: 0;               /* No margin */
    padding: 0 10px;         /* Optional tiny gap like arXiv */
    box-sizing: border-box;
}

/* MAIN CONTENT AREA (like arXiv) */
.page-wrap {
    width: 100%;
    max-width: none;         /* No Bootstrap limits */
    margin: 0;
    padding: 20px 10px;      /* very small margins like arXiv */
    box-sizing: border-box;
    background: #ffffff;
}

/* TYPOGRAPHY Similar to arXiv */
h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}
h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
}
p, li {
    font-size: 15px;
    line-height: 1.45;
}

/* Keep header fixed alignment always */
.public-header nav,
.public-header .navbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

 /* ===== GLOBAL ARXIV-STYLE CANVAS (NO SIDE GAPS) ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent sideways scroll */
    font-family: Arial, sans-serif;
}

/* 100% WIDTH ALIGNMENT FOR HEADER + BODY + FOOTER */
.arxiv-line {
    width: 100%;
    margin: 0;
    padding: 0 10px;    /* Tiny gap like arXiv left/right */
    box-sizing: border-box;
    background: #ffffff;
}

/* Body Text Size (Edit this to change size) */
body {
    font-size: 14px !important;   /* change this number to scale font */
    line-height: 1.45;
    font-family: "Segoe UI", sans-serif;
}

/* Headings scaled down for balance */
h1 { font-size: 20px !important; font-weight: 700; }
h2 { font-size: 16px !important; font-weight: 600; }
h3 { font-size: 14px !important; font-weight: 600; }
p, li { font-size: inherit; } /* inherits from body */



/* BODY TEXT AREA */
.main-body {
    padding: 35px 10px 60px;
}

/* SCIENTIFIC TYPOGRAPHY SIMILAR TO ARXIV */
h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}
h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 28px;
}
p, li {
    font-size: 15px;
    line-height: 1.45;
}

/* Restore original header background */
.public-header {
    background:#0057d8 !important;
    color:white;
    padding: 0.4rem 0; /* smaller height */
}

/* Reduce menu text size */
.public-header .nav-link {
    font-size: 0.95rem; /* smaller than before */
    font-weight: 500;
    margin-right: 0.8rem;
}

/* Smaller logo spacing */
.public-header .navbar-brand img {
    height: 38px;
}
.public-header .navbar-brand span {
    font-size: 1.35rem;
}

/* Compact Search Field */
.navbar form input {
    height: 32px !important;
    font-size: 12px;
    padding: 0 10px;
}
.navbar form button {
    height: 32px !important;
    font-size: 12px;
    font-weight: 600;
    padding: 0 12px;
}

/* Smaller Action Buttons */
.btn-preprint,
.btn-published,
.btn-submit {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
}

/* FORCE Full Blue Header (No gaps, no breaks) */
.public-header {
    background: #0057d8 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Container inside header MUST be full width */
.public-header .container {
    max-width: 100% !important;
    padding: 0 10px !important;
}

/* Make Navigation Fonts Smaller */
.public-header .nav-link {
    font-size: 0.85rem !important;   /* smaller like arXiv */
    font-weight: 500;
    margin-right: 0.6rem;
}

/* Logo + Title size reduction */
.public-header .navbar-brand img {
    height: 36px;  /* smaller logo */
}
.public-header .navbar-brand span {
    font-size: 1.25rem; /* smaller text */
}

/* Compact Search Field */
.public-header input[type="text"] {
    height: 30px !important;
    font-size: 13px !important;
    padding: 0 8px !important;
}
.public-header button[type="submit"] {
    height: 30px !important;
    font-size: 13px !important;
    padding: 0 10px !important;
}

/* Compact Action Buttons (right side) */
.btn-preprint,
.btn-published,
.btn-submit {
    font-size: 13px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
}

.arxiv-search-box form {
  border: 1px solid #b5b5b5;
  padding: 4px;
  background: #ffffff;
}

.arxiv-search-box .form-select,
.arxiv-search-box .form-control {
  border-radius: 0 !important;
}

.arxiv-search-box .btn-primary {
  border-radius: 0 !important;
  background: #b20000 !important; /* arXiv red */
  border-color: #b20000 !important;
}

.arxiv-search-box .btn-primary:hover {
  background: #8a0000 !important;
  border-color: #8a0000 !important;
}


/* ===== Academic Search Bar (arXiv style) ===== */
.niko-search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.niko-search-form {
  display: flex;
  background: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
}

.niko-search-select {
  width: 200px;
  border: none;
  border-right: 1px solid #d3d3d3;
  padding: 10px;
  font-size: 14px;
  background: #f5f5f5;
}

.niko-search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 15px;
  outline: none !important;
}

.niko-search-btn {
  background: #0053a8;
  color: white;
  border: none;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.niko-search-btn:hover {
  background: #003f7f;
}

.niko-search-container{display:flex;justify-content:center}
.niko-search-form{display:flex;border:1px solid #ccc;border-radius:6px;max-width:900px;width:100%;overflow:hidden;background:white}
.niko-search-select{width:200px;padding:8px;font-size:14px;border:none;border-right:1px solid #ddd;background:#f7f7f7}
.niko-search-input{flex:1;border:none;padding:10px 14px;font-size:15px;outline:none}
.niko-search-btn{background:#0053a8;color:white;border:none;padding:10px 22px;font-weight:600}
.niko-search-btn:hover{background:#003f7f}

/* Journal Logo Size Control */
.journal-logo {
    width: 150px;         /* <--- Change this value to resize safely */
    height: auto;
    object-fit: contain;  /* keeps image clean, no stretching */
    border-radius: 6px;   /* optional smooth corners */
    margin-bottom: 6px;
}

/* Optional: space around the images */
.journal-logo-row .col-3 {
    padding: 10px 0;
}


/* ===============================
   CONTROL PUBLISHED COVER IMAGES
   =============================== */
.published-cover {
    max-width: 220px !important;  /* ðŸ‘ˆ change this number to resize safely */
    height: auto;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    border-radius: 6px;  /* optional smooth corners */
}

/* Optional center alignment of each item */
.published-item {
    text-align: center;
    margin-bottom: 25px;
}


/* ==========================================
   RESPONSIVE JOURNAL COVERS (Mobile Fix)
   ========================================== */

.published-cover {
    max-width: 160px;     /* Desktop size (auto scales smaller) */
    height: auto;
    object-fit: cover;
    margin: 10px auto;
    display: block;
    border-radius: 6px;
}

/* Desktop - 4 per row */
@media (min-width: 992px) {
  .journal-cover-col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Tablet - 2 per row */
@media (max-width: 991px) and (min-width: 576px) {
  .journal-cover-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Mobile - 1 per row (full width) */
@media (max-width: 575px) {
  .journal-cover-col {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }

  .published-cover {
    max-width: 70%;       /* nice size on mobile */
  }
}

/* ===========================================
   RESPONSIVE JOURNAL COVERS â€” FINAL VERSION
   =========================================== */

.journal-cover-img {
    width: 100%;
    max-width: 160px;   /* desktop size */
    height: auto;
    margin: 0 auto 8px;
    display: block;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.25s ease;
}

/* Hover effect for PC only (optional) */
@media (hover:hover) {
  .journal-cover-img:hover {
      transform: scale(1.05);
  }
}

/* Desktop layout - 4 per row */
@media (min-width: 992px) {
  .journal-cover-col {
      flex: 0 0 25%;
      max-width: 25%;
  }
}

/* Tablet - 2 per row */
@media (max-width: 991px) and (min-width: 576px) {
  .journal-cover-col {
      flex: 0 0 50%;
      max-width: 50%;
  }
}

/* Mobile - 1 per row */
@media (max-width: 575px) {
  .journal-cover-col {
      flex: 0 0 100%;
      max-width: 100%;
      margin-bottom: 20px;
      text-align: center;
  }
  .journal-cover-img {
      max-width: 70%;
  }
}

.journal-info {
    font-size: 0.85rem;
    line-height: 1.3;
}



/* ==========================================================
   NikoUArxive → viXra Style Conversion (Unified CSS Override)
   ========================================================== */

/* --- 1. Page Width to match viXra --- */
.container, .page-wrap, .public-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 20px !important;
}

/* --- 2. Main Font Family & Base Text Size (viXra standard) --- */
body, html {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

/* --- 3. Titles and Section Headings scaled down --- */
h1, .page-title {
    font-size: 20px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
}
h2 {
    font-size: 18px !important;
    font-weight: bold !important;
}
h3 {
    font-size: 16px !important;
    font-weight: bold !important;
}

/* --- 4. Paragraph / Body Text to match viXra compact spacing --- */
p, li, ul, ol {
    font-size: 14px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important; /* tighter like viXra */
}

/* --- 5. Reduce header height / padding to remove large banner feel --- */
.public-header, .navbar, .niko-header {
    padding: 4px 0 !important;
    height: auto !important;
}
.nav-link {
    font-size: 13px !important;
    padding: 4px 8px !important;
}

/* --- 6. Search bar compact like viXra --- */
.niko-search-container input,
.niko-search-container .btn {
    font-size: 13px !important;
    height: 34px !important;
    padding: 3px 8px !important;
}

/* --- 7. Compact category list like viXra --- */
.category-list a, .archive-listing a {
    padding: 2px 0 !important;
    margin: 0 !important;
    display: block;
}


/* === Remove journal page box & match About.php layout === */
.journal-container, .content-box {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}


/* ===== REMOVE JOURNAL BOX PANEL COMPLETELY ===== */

.bg-white, 
.shadow, 
.rounded-4, 
.px-4, .px-md-5, 
.py-4, .py-md-5,
.mb-5 {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Fix container width to match About page */
div[style*="max-width:1100px"] {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}


/* Home intro text spacing (match About page) */
.home-intro-box {
    background: white;
    border-radius: 8px;
    padding: 18px 26px;
    margin: 0 0 20px 0 !important; /* remove top gap */
    box-shadow: none !important;
}

/* ======================================
   GLOBAL TITLE FONT SIZE CONTROL
   Applies to ALL pages (Home, About, Policies, Journals, etc.)
   ====================================== */

h1, .page-title {
    font-size: 22px !important;
    font-weight: 700;
    color: #0a3c91; /* standard blue */
    margin-bottom: 12px;
}

h2 {
    font-size: 18px !important;
    font-weight: 700;
    color: #0a3c91;
    margin-top: 18px;
    margin-bottom: 8px;
}

h3 {
    font-size: 16px !important;
    font-weight: 600;
    color: #0a3c91;
    margin-top: 14px;
    margin-bottom: 6px;
}


/* ==============================================
   GLOBAL UNIFIED TITLE SYSTEM (APPLIES TO ALL PAGES NEW Bijan)
   ============================================== */
h1, .page-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0a3c91 !important;
    margin: 0 0 14px 0;
}

h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0a3c91 !important;
    margin: 22px 0 10px 0;
}

h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0a3c91 !important;
    margin: 18px 0 8px 0;
}

/* Remove Bootstrap / inline overrides */
.fw-bold.text-primary, 
.text-primary, 
.text-muted, 
[class*="text-"] {
    color: #0a3c91 !important;
    font-weight: 700 !important;
}


/* ============================
   NikoUArxive Header (Option A)
   Cosmic Academic Gradient
   ============================ */
.site-header {
    background: linear-gradient(90deg, #001B48, #0054D3, #00A7FF);
    padding: 18px 0;
    border-bottom: 3px solid #003e7d;
}

.site-header a,
.site-header .navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
}

.site-header .nav-link:hover {
    text-decoration: underline;
    color: #E2F2FF !important;
}

/* Make buttons match the new header */
.btn-preprint {
    background: white;
    color: #0054D3 !important;
    border-radius: 12px;
    padding: 6px 20px;
    font-weight: 600;
}

.btn-published {
    background: #29c26a;
    color: white !important;
    border-radius: 12px;
    padding: 6px 20px;
    font-weight: 600;
}

.btn-submit {
    background: #FFCC00;
    color: black !important;
    border-radius: 12px;
    padding: 6px 20px;
    font-weight: 600;
}

/* Logo circle cleanup */
.site-logo img {
    border-radius: 50%;
    background: white;
    padding: 6px;
    border: 2px solid #003c8c;
}

/* ===============================
   MOBILE RESPONSIVE FIX
   4 COVERS SIDE BY SIDE
   =============================== */
.journal-logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

/* force 2 per row on small screens & 4 on bigger */
.journal-cover-col {
    padding: 5px;
}

.journal-cover-col img.journal-cover-img {
    width: 100%;
    height: 230px;         /* same height */
    object-fit: cover;     /* keeps quality */
    border-radius: 6px;
    border: 2px solid #ccc;
}

/* Mobile screens (force 2 per row) */
@media (max-width: 600px) {
  .journal-cover-col {
    flex: 0 0 50%;         /* 2 in each row */
    max-width: 50%;
  }
}

/* Tablet and up (4 per row) */
@media (min-width: 601px) {
  .journal-cover-col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

table th a {
    color: #fff;
    text-decoration: none;
}
table th a:hover {
    text-decoration: underline;
}

