* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f7f9fb;
  color: #2B4257;
  line-height: 1.6;
}

.info-links li {
  margin-bottom: 8px;
}

/* FINAL NORMALIZATION — DO NOT REMOVE */
.journal-logo1 {
  justify-content: flex-start;
}

.stats {
  justify-content: stretch;
}

.info-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2f6f93;
  color: #fff;
  padding: 12px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: all .25s ease;
}

.info-links a:hover {
  background: #245b78;
  transform: translateX(3px);
}

.info-links i {
  font-size: 12px;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px
}

.main {
  padding: 28px 0
}

/* ---------------- HEADER ---------------- */
.new-header {
  width: 100%;
  background: white;
  border-bottom: 1px solid #e8eef5;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 50px
}

.header-nav {
  display: flex;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
}

.nav-item {
  position: relative;
  cursor: pointer;
  color: #2B4257;
}

.dropdown-menu {
  position: absolute;
  top: 25px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  border-radius: 10px;
  padding: 10px 0;
  /*width: 220px;*/
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #2B4257;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}

.header-auth {
  font-size: 14px;
  font-weight: 500
}

.header-auth a {
  color: #2B4257;
  text-decoration: none
}

/* -------------- SEARCH --------------- */
.search-wrapper {
  padding: 20px 0
}

.search-box {
  background: white;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, .10);
}

.search-box h1 {
  color: #102a43
}

.subtitle {
  color: #6d7d8b;
  margin-bottom: 14px
}

/* -------------- LAYOUT -------------- */
.content-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
}

/* -------------- SIDEBAR -------------- */
.improved-sidebar {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  position: sticky;
  top: 110px;
  height: fit-content;
}

.sidebar-block {
  border: 1px solid #e8eef5;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 8px;
}

/* -------------- JOURNAL CARD -------------- */
.journal-card2 {
  display: flex;
  padding: 25px;
  border-radius: 18px;
  color: #2B4257;
  background: white;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

.journal-left {
  width: 100%;
}

.journal-logo1 {
  display: flex;
  gap: 20px;
  /* justify-content: space-around; */
}

.journal-logo1 img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  /*background: #c5d1db;*/
  /*padding: 10px;*/
  border-radius: 12px;
}

.journal-title1 {
  font-size: 20px;
  font-weight: 700
}

.badge {
  padding: 3px 10px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 600
}

.abbr {
  opacity: .9;
  font-size: 14px;
}

.badge.oa {
  background: #ffe97a;
  color: #333;
}

.badge.indexed1 {
  background: #c5d1db;
  color: #0f6f70;
}

.meta-grp {
  margin-top: 10px;
  display: flex;
  gap: 20px;
}

.meta-line {
  font-size: 13px;
  opacity: .95;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 25px;
  margin-top: 12px;
  background: gainsboro;
  /* justify-content: space-around; */
  padding: 5px 10px;
  border-radius: 10px;
}

.stat .value {
  font-size: 18px;
  font-weight: 700;
}

.stat .label {
  display: block;
  font-size: 11px;
  opacity: .9;
}

.journal-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.btn1 {
  border-radius: 25px;
  padding: 10px 18px;
  border: 2px solid #fff;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: .2s ease;
  font-weight: 600;
  width: 127px;
}

.btn1.primary1 {
  background: #c5d1db;
  color: #0f3f3c;
  border: none;
}

.utility-icons1 {
  display: flex;
  justify-content: flex-end;
  gap: 20px
}

.icon1 {
  color: orange
}


/* Reset button */
.reset-btn {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid #d0d7de;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}

.reset-btn:hover {
  background: #f5f7fa;
}


.journal-card2:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 24px;
}

.sidebar-block a.active {
  background: #ebfaf5;
  color: #0d8e73;
  font-weight: 600;
  border-radius: 6px;
}

/* Loader */
.loader {
  margin: 30px auto;
  width: 50px;
  height: 50px;
  border: 6px solid #e3e3e3;
  border-top-color: #0da37f;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #111;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
  font-size: 14px;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
}

.toast.error {
  background: #d42f2f;
}

.toast.info {
  background: #0da37f;
}

/* Count + Filter Chips */
#resultHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

#countText {
  font-size: 14px;
  font-weight: 600;
}

.applied-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #eef6ff;
  border: 1px solid #cbdfff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 13px;
}

.filter-chip span {
  margin-right: 6px;
}

.filter-chip i {
  cursor: pointer;
}

/*search-bar*/
/* ONE ROW SEARCH BAR */
.search-bar-row {
  display: grid;
  grid-template-columns: 2.2fr repeat(4, 1fr) auto;
  gap: 12px;
  align-items: center;
  /*background: #ffffff;*/
  /*padding: 14px;*/
  border-radius: 14px;
  /*box-shadow: 0 10px 30px rgba(0,0,0,0.06);*/
}

/* Search input with icon */
/* Search input with icon */
.search-input-wrap {
  position: relative;
  height: 100%;
}

.search-input-wrap input {
  width: 100%;
  height: 100%;
  padding: 12px 14px 12px 42px;
  /* Adjusted padding for icon */
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  font-size: 14.5px;
  color: #334155;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: #0da37f;
  background: white;
  box-shadow: 0 4px 12px rgba(13, 163, 127, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  /* Move to left */
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-input-wrap input:focus+.search-icon {
  color: #0da37f;
}

/* Dropdowns */
.search-bar-row select {
  width: 100%;
  padding: 12px 34px 12px 14px;
  /* More right padding for arrow */
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 14.5px;
  color: #334155;
  background-color: #f8fafc;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.search-bar-row select:hover {
  border-color: #cbd5e1;
  background-color: white;
}

.search-bar-row select:focus {
  outline: none;
  border-color: #0da37f;
  background-color: white;
  box-shadow: 0 4px 12px rgba(13, 163, 127, 0.1);
}

/* Reset button */
.reset-btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  font-weight: 600;
  color: #64748b;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.reset-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: #666;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
  z-index: 999;
}

.back-to-top:hover {
  background-color: #555;
  transform: translateY(-2px);
}

.back-to-top i {
  pointer-events: none;
}


/* Responsive */
@media(max-width:900px) {
  .content-layout {
    grid-template-columns: 1fr
  }
}

/* ================================
   RESPONSIVE — DESKTOP LARGE
   ================================ */
@media (max-width:1200px) {
  .container {
    max-width: 1000px;
  }

  .journal-logo1 img {
    width: 160px;
    height: 160px;
  }

  .stats {
    gap: 18px;
  }

  .search-bar-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


/* ================================
   LAPTOP / TABLET LANDSCAPE
   ================================ */
@media(max-width:992px) {

  .journal-logo1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .journal-right {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-top: 10px;
  }

  .meta-grp {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  /* Header */
  .header-container {
    gap: 20px;
  }

  .header-nav {
    gap: 18px;
  }

  /* Content layout */
  .content-layout {
    grid-template-columns: 1fr;
  }

  /* Sidebar becomes normal block */
  .improved-sidebar {
    position: relative;
    top: auto;
    width: 100%;
  }

  .wrap-btn {
    width: 90%;
  }

  /* Card */
  .journal-card2 {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .journal-right {
    width: 100%;
    align-items: flex-start;
    text-align: left;
    margin-top: 10px;
    flex-direction: row;
    gap: 20px;
  }

  .btn1 {
    width: 100%;
    text-align: center;
  }

  .utility-icons1 {
    justify-content: flex-start;
  }

  /* for sidebar dropdown*/

  .improved-sidebar h3,
  .improved-sidebar h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
  }

  /* Add dropdown arrow */
  .improved-sidebar h3::after,
  .improved-sidebar h4::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: 0.3s;
  }

  /* When open rotate arrow */
  .improved-sidebar h3.open::after,
  .improved-sidebar h4.open::after {
    transform: rotate(180deg);
  }

  /* Collapsed by default */
  .sidebar-block {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding: 0px;
  }

  /* Expanded */
  .sidebar-block.open {
    max-height: 400px;
    overflow-y: scroll;
  }
}


/* ================================
   TABLET / BIG MOBILE
   ================================ */
@media(max-width:768px) {

  .journal-card2 {
    padding: 20px;
  }

  .journal-logo1 img {
    width: 90px;
    height: 90px;
  }

  .journal-subtitle1 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .wrap-btn {
    width: 90%;
  }

  .stat {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Header */
  .header-container {
    flex-wrap: wrap;
  }

  .header-logo img {
    height: 38px;
  }

  /* Hide desktop nav — can later replace with hamburger */
  .header-nav {
    display: none;
  }

  .header-auth {
    margin-left: auto;
  }

  /* Search */
  .search-box {
    padding: 20px;
  }

  /* Sidebar */
  .improved-sidebar {
    padding: 18px;
  }

  /* Card adjustments */
  .journal-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .journal-logo1 img {
    width: 100px;
    height: 100px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }

  .journal-right {
    width: 100%;
    /* flex-direction: column; */
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .btn1 {
    width: 100%;
    text-align: center;
  }

  .stat {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .search-bar-row {
    grid-template-columns: 1fr;
  }
}


/* ================================
   MOBILE (IPHONES / SMALL DEVICES)
   ================================ */
@media(max-width:576px) {
  .journal-logo1 {
    gap: 14px;
  }

  .journal-title1 {
    font-size: 17px;
    line-height: 1.35;
  }

  .journal-right {
    width: 100%;
    /* flex-direction: column; */
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .wrap-btn {
    width: 90%;
  }

  .btn1 {
    width: 100%;
    text-align: center;
  }

  .utility-icons1 {
    justify-content: flex-start;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 14px;
  }

  /* Header Compact */
  .header-container {
    padding: 10px 14px;
  }

  .header-auth {
    font-size: 13px;
  }

  /* Search */
  .search-box h1 {
    font-size: 20px;
  }

  /* Sidebar */
  .sidebar-block {
    padding: 0px;
  }

  /* Card */
  .journal-card2 {
    padding: 18px;
    gap: 18px;
  }

  .journal-title1 {
    font-size: 18px;
  }

  .journal-logo1 img {
    width: 120px;
    height: 120px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .btn1 {
    width: 100%;
  }

  .utility-icons1 {
    gap: 14px;
  }
}


/* ================================
   VERY SMALL PHONES
   ================================ */
@media(max-width:400px) {


  .stat .value {
    font-size: 16px;
  }

  .journal-card2 {
    padding: 14px;
  }

  .journal-logo1 img {
    width: 100px;
    height: 100px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    display: flex;
    gap: 10px;
    align-items: center;
  }

}