:root {
  --theme: #1c1c1c;
  --theme-hover: #16367d;
  --accent: #ca2015;
  --highlight: #ffb74d;
  --background-light: #f5f7fb;
  --text-primary: #1c1c1c;
  --text-muted: #444444;
  --border-color: #dddddd;

  --line-height-base: 1.6;
  --line-height-tight: 1.3;

  --radius: 6px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

body {
  font-size: var(--font-base);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: #ffffff;
}


    .top-bar {
      background: #f5f5f5;
      padding: 16px 24px;
    }

.search-header {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.search-header input {
  width: 100%;
  max-width: 500px;
  padding: 10px 0;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #1c1c1c;
  background: transparent;
  color: #1c1c1c;
  outline: none;
}

.search-header input::placeholder {
  color: var(--text-muted);
  font-size: 1rem;
}

.search-header button {
  padding: 10px 20px;
  background: #1c1c1c;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.search-header button:hover {
  border: 2px solid #1c1c1c;
  background-color: transparent;
  color: #1c1c1c;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 10px;
  padding: 24px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.search-filters select {
  padding: 10px 14px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-primary);
  min-width: 250px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.search-filters select:focus {
  border-color: var(--theme);
  outline: none;
}

.search-filters a#clearFilters {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.search-filters a#clearFilters:hover {
  color: var(--accent);
  text-decoration: underline;
}

.custom-dropdown {
  position: relative;
  min-width: 230px;
  font-size: 0.85rem;
}

.dropdown-selected {
  padding: 10px 14px;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  width: 230px;
  transition: border 0.3s ease;
}

.dropdown-selected::after {
  content: "▾";
  float: right;
  color: var(--text-muted);
  margin-left: 8px;
}

.dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  border-radius: 6px;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.dropdown-options div {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-options div:hover {
  background-color: var(--background-light);
}

.custom-dropdown.open .dropdown-options {
  display: block;
}

    .main {
      display: flex;
      max-width: 1200px;
      margin: 0 auto;
      padding: 10px 24px 20px 24px;
      gap: 24px;
    }

    .sidebar {
      width: 260px;
      flex-shrink: 0;
    }

    .content {
      flex: 1;
    }

    .results-header {
      display: flex;
      justify-content: space-between;
      margin-top: 12px; 
      font-size: 0.85rem;      
      color: #444;
    }

    .results-header-hr {
      border: none;
      border-top: 1px solid var(--border-color);
      margin: 5px 0;
    }
    
.pagination-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding: 0.5rem;
}

.pagination {
  display: flex;
}

.pagination a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--font-small);
}

.pagination a:last-child {
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.pagination a:first-child {
  border-bottom-left-radius: var(--radius);
  border-top-left-radius: var(--radius);
}

.pagination a.active {
  background-color: #ca2015;
  color: white;
  font-weight: bold;
  border: none;
}

.submission-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  padding: 10px;
}

.submission-links a {
  text-decoration: none;
  color: var(--text-theme); /* You already have text color variables */
  font-weight: 400;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.submission-links a:hover {
  text-decoration: underline;
  color: var(--theme); /* Optional: can stay same or darken slightly */
}

/* Expandable subsection (Preparing your manuscript) */
.submission-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.submission-section-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--text-theme);
  margin-top: 10px;
}

.submission-section-toggle:hover {
  text-decoration: underline;
}

.submission-sublist {
  display: none; /* Hide by default */
  flex-direction: column;
  padding-left: 15px;
  margin-top: 5px;
}

.submission-sublist a {
  font-size: 0.9rem;
}

/* When active (visible) */
.submission-sublist.active {
  display: flex;
}

/* Arrow styling for dropdown */
.toggle-arrow {
  margin-right: 5px;
  transition: transform 0.3s ease;
}

.toggle-arrow.open {
  transform: rotate(90deg);
}

.issue-main-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 30px;
  margin-top: 30px;
  color: var(--text-theme);
}

.issue-section-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  color: var(--text-theme);
}

.issue {
  margin-bottom: 20px;
  color: var(--text-theme);
}

.issue h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-theme);
}

.issue p {
  font-size: 1rem;
  color: var(--text-theme);
}

@media (max-width: 992px) {
  .issue-container {
    flex-direction: column;
  }

  .issue-column {
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }

  .issue-main-title {
    text-align: center;
    margin-top: 20px;
  }
}

.articles {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.articles:first-child {
  padding-top: 15px;
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article_type {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.ArticleUpper .h5 {
  font-size: 0.75rem; 
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.articles .p {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: var(--line-height-tight);
}

.articles .p:hover {
  text-decoration: underline;
}

.articles .p1 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.articles .p3 {
  font-size: 0.875rem; 
  color: var(--text-muted);
}


.abstract-details summary {
  cursor: pointer;
  font-size: 0.875rem; 
  font-weight: 500;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.abstract-text {
  margin-top: 0.5rem;
  font-size: 0.875rem; 
  line-height: var(--line-height-base);
  color: var(--text-muted);
}

.articles a:link,
.articles a:active,
.articles a:visited,
.articles a:hover,
.ArticleLower .p1 a,
.ArticleLower .p1 a:link,
.ArticleLower .p1 a:active,
.ArticleLower .p1 a:visited,
.ArticleLower .p1 a:hover {
    color: #000;
    background-color: transparent;
    text-decoration: none
}

.issue-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.issue-middle {
  flex: 1;
  max-width: 75%;
}

.issue-cover {
  text-align: center;
}

.issue-left {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-img {
  width: 10rem;         /* Fixed width */
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
  border: 1px solid #ccc;
}

.issue_links {
  display: flex;
  justify-content: center;
  gap: 2rem; /* Space between the links */
  flex-wrap: wrap;
}

.issue_links a {
  font-size: 0.9rem;
  color: var(--theme);
}

.issue_links a:hover {
  text-decoration: underline;
}
.article-search-bar {
  margin-bottom: 20px;
}

.article_type {
  color: #ca2015;
}

    @media (max-width: 800px) {
      .main {
        flex-direction: column;
      }

      .sidebar {
        width: 100%;
      }
    }