/* Custom Styles for JASE Journal Clone */

:root {
  --primary-blue: #1d3cc4;
  --secondary-blue: #1f3db2;
  --light-blue: #4e4ed3;
  --bg-gray: #f8f9fa;
  --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px;
  background-color: var(--bg-gray) !important;
  color: #333;
}

/* Typography overrides */
.ltr_font, p, td, input, button, select, li {
  font-family: Calibri, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Times New Roman', Times, serif;
}

a, .btn-link {
  color: var(--secondary-blue) !important;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #0b228a !important;
  text-decoration: underline;
}

/* Topbar */
#topbar {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-size: 12px;
}

#topbar a {
  color: #6c757d !important;
}

#topbar a:hover {
  color: var(--primary-blue) !important;
}

/* Header & Brandbar */
.brandBar {
  background: var(--primary-blue) !important;
  min-height: 100px;
  display: flex;
  align-items: center;
  padding: 10px 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.hdr_logo img {
  max-height: 80px;
  background: white;
  padding: 5px;
  border-radius: 4px;
}

#ju_header_title_m {
  font-size: 26px !important;
  color: #ffffff !important;
  font-weight: bold;
  margin: 0;
}

#ReleasePeriod {
  color: #ffffff !important;
  font-size: 15px;
  margin: 0;
  text-align: right;
}

/* Main Container Layout */
#journal, #generalPage {
  background-color: #ffffff !important;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding-top: 20px;
  padding-bottom: 20px;
  border-radius: 4px;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Sidebar Accordions */
.main-menu {
  background: var(--primary-blue) !important;
  color: white !important;
  border-radius: 0 !important;
  border: none !important;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  padding: 12px 15px;
}

.main-menu:after {
  filter: brightness(0) invert(1);
}

.accordion-item {
  border-radius: 0 !important;
  border: none !important;
  margin-bottom: 5px;
}

.list-group-item-action {
  font-family: Calibri, Arial, sans-serif;
  font-size: 13px;
  padding: 8px 15px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.list-group-item-action:hover {
  background-color: #f1f3f9;
  border-left-color: var(--primary-blue);
}

.list-group-item-action a {
  color: #333 !important;
}

.list-group-item-action a:hover {
  text-decoration: none;
}

/* Search Box */
#dv_home_search {
  border: 1px solid #ddd;
}
.searchBox input {
  font-size: 13px;
}

/* Volume archives button styling */
.article_new .accordion-button {
  background-color: #f8f9fa !important;
  color: #333 !important;
  font-size: 13px;
  border: 1px solid #ddd !important;
}

.article_new .accordion-button:not(.collapsed) {
  background-color: #e9ecef !important;
  box-shadow: none;
}

/* Facts Table */
#fact_figure table {
  font-size: 12px;
  margin-top: 15px;
}
#fact_figure table a {
  color: #2939cf !important;
  font-weight: 500;
}

/* Main Area Elements */
.aboutJournal {
  position: relative;
  margin-bottom: 20px;
}

.aboutJournal img {
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  width: 100%;
}

.journalDescription {
  background: #f8f9fa;
  border-left: 4px solid var(--primary-blue);
  padding: 15px;
  margin-top: 15px;
  font-size: 14px;
  border-radius: 0 4px 4px 0;
}

.journalDescription a {
  color: #df1717 !important;
  font-weight: bold;
}

/* Tabs */
.modern-tabs .nav-tabs {
  border-bottom: 2px solid var(--primary-blue);
}

.modern-tabs .nav-link {
  border: none !important;
  color: #333 !important;
  border-radius: 4px 4px 0 0 !important;
  padding: 10px 20px;
  font-size: 15px;
}

.modern-tabs .nav-link.active {
  background-color: var(--primary-blue) !important;
  color: white !important;
}

/* Articles */
.article-summary {
  padding: 15px;
  background-color: #fcfcfc;
  margin-bottom: 15px;
  border: 1px solid #eef0f5;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.article-summary img {
  border-radius: 4px;
  max-width: 100px;
  border: 1px solid #eee;
  transition: transform 0.2s;
}

.article-summary img:hover {
  transform: scale(1.05);
}

.list-article-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

.article-type {
  background-color: #e9ecef;
  border-radius: 12px;
  font-size: 11px;
  padding: 2px 8px;
  color: #495057;
  font-weight: 500;
  display: inline-block;
}

.article-type a {
  color: #495057 !important;
}

/* Abstract and expandable text */
.text-container {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin-top: 8px;
}

.abstract-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more_btn {
  font-size: 12px;
  color: var(--primary-blue) !important;
  padding: 0;
  border: none;
  background: none;
  font-weight: bold;
  margin-bottom: 10px;
  cursor: pointer;
}

.more_btn:hover {
  text-decoration: underline;
}

.lis-item {
  list-style: none;
  font-size: 13px;
  margin-right: 15px;
}

.pdf_link {
  color: #dc3545 !important;
  font-weight: bold;
}

/* Right Sidebar: Journal Info Cards */
.journalInfo {
  box-shadow: var(--card-shadow);
  border: 1px solid #eef0f5 !important;
  border-radius: 4px !important;
}

.journalInfo .card-header {
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #eef0f5 !important;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.journalDetail li {
  font-size: 13px;
  border: none !important;
  padding: 8px 10px !important;
}

.journalDetail strong {
  color: #555;
}

.guideBox {
  border: 1px solid #eef0f5;
  border-radius: 4px;
  padding: 10px;
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.guideBox:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.guideBox h5 {
  font-size: 12px;
  margin-top: 8px;
  margin-bottom: 0;
}

.guideBox img {
  max-height: 50px;
  object-fit: contain;
}

/* Keywords cloud */
#wordcloud {
  border-radius: 4px;
  min-height: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  line-height: 1.8;
}

.wordcloud-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.wordcloud-tag:hover {
  background-color: #e9ecef;
  transform: scale(1.1);
  cursor: pointer;
}

/* Footer */
#footer {
  background: var(--light-blue) !important;
  color: #ffffff !important;
  padding-top: 30px;
  padding-bottom: 20px;
  font-family: Calibri, Arial, sans-serif;
}

#footer a {
  color: #ffffff !important;
  font-size: 13px;
}

#footer h5 {
  font-family: 'Times New Roman', Times, serif;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

#footer .list-group-item {
  padding: 5px 0 !important;
}

#footer .footer-posts li {
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  padding-bottom: 8px;
}

#footer .footer-posts a {
  display: block;
  font-weight: 500;
}

#footer .footer-posts small {
  opacity: 0.7;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  margin-top: 25px;
  font-size: 12px;
  text-align: center;
  opacity: 0.8;
}

/* Back to Top button */
#back-to-up {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background-color: var(--primary-blue) !important;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: opacity 0.3s, visibility 0.3s;
}

#back-to-up:hover {
  background-color: var(--secondary-blue) !important;
}

/* Social icons list */
.social_icon a {
  color: white !important;
  opacity: 0.9;
}
.social_icon a:hover {
  opacity: 1;
}

/* Custom spacing and responsive tweaks */
@media (max-width: 768px) {
  #ju_header_title_m {
    font-size: 20px !important;
  }
  #ReleasePeriod {
    text-align: left;
    margin-top: 10px;
  }
}
