.top-journal {
  .swiper-container {
    padding: 20px 0 60px;
  }

  .card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: $primaryColor;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .card-content {
    padding: 20px;
  }
  .carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .card-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: $secondaryFont;

    &:hover {
      text-decoration: underline;
    }
  }

  .card-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .author-name {
    font-size: 15px;
    font-weight: 400;
    color: $textColor;
    font-family: $secondaryFont;

    span {
      color: $blackColor;
    }
  }

  .publish-date {
    font-size: 13px;
    color: #999;
  }

  /* Swiper Navigation */
  .swiper-button-next,
  .swiper-button-prev {
    color: $primaryColor;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .swiper-wrapper {
    padding: 12px 0;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
  }

  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    background: white;
    transform: scale(1.1);
  }

  .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 12px;
    height: 12px;
  }

  .swiper-pagination-bullet-active {
    background: $primaryColor;
  }
}

.journal-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  // box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  min-height: 330px;
  border: 1px solid rgb(226 232 240 / var(--tw-border-opacity, 1));
  .card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f6f6f6;
    &:hover img {
      transform: scale(1.05);
    }
    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      transition: transform 0.5s ease;
    }
  }

  .card-content {
    padding: 20px;
  }

  .card-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: $secondaryFont;

    &:hover {
      text-decoration: underline;
    }
  }

  .card-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .author-name {
    font-size: 15px;
    font-weight: 400;
    color: $textColor;
    font-family: $secondaryFont;

    span {
      color: $blackColor;
    }
  }

  .publish-date {
    font-size: 13px;
    color: #999;
  }
}

.journal-search-container{
  background-color: #fff;
  border-radius: 12px;
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  .search-container{
      display: flex;
  align-items: center;
  gap: 10px;

   .journal-search-input{
    width: 100%;
    position: relative;
    .year-filter{
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      .form-select{
        font-size: 14px;
        &:focus{
          box-shadow: none;
        }
      }
    }
    input{
      width: 100%;
      height: 50px;
       border-radius: 10px;
       border: 1px solid #c3c3c39e;
       padding: 0 15px;
       font-size: 16px;    
       &::placeholder{
        font-size: 16px;
       }   
    }
  }
  .search-button{
    height: 50px;
    padding: 0 30px;
    background-color: $primaryColor;
    border-radius: 10px;
    font-family: $secondaryFont;
    color: #fff;
    &:hover{
      background-color: #3b4dc3; 
    }
  }
  }

  p{
    font-size: 14px !important;
    color: $textColor !important;
    text-align: start !important;
    padding-top: 10px !important;
  }
 
} 

.journal-section-header{
  padding: 90px 0 140px 0 !important;
}

.journal-overview{
  margin-top: -65px;
  position: relative;
  z-index: 2;

  .overview-item{
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    width: 100%;
    @include custom-shade;
    text-align: center;
    h4{
      font-size: 38px;
      font-weight: 600;
      font-family: $secondaryFont;
    }
      h5{
      font-size: 28px;
      font-weight: 600;
      font-family: $secondaryFont;
    }
    p{
      font-size: 18px;
      color: $textColor;
      font-weight: 400;
      margin-top: 20px;
    }
  }
}



.journal-list {
  background: white;
  border-radius: 14px;
  // overflow: hidden;
  @include custom-shade;
  box-shadow: none;
  // margin-top: 50px;
  position: relative; 
}

.journal-chapter-item {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid #c3c3c35d;
  transition: background-color 0.2s ease; 
}
 
.journal-chapter-item:last-child {
  border-bottom: none;
}

.journal-chapter-item .journal-content {
  flex: 1; 
  padding-right: 20px;
}

.journal-chapter-item .journal-title {
  font-size: 18px; 
  font-weight: 500;
  color: #343333;
  margin: 0 0 8px 0;
  font-family: $secondaryFont;
  &:hover{
    text-decoration: underline;
  }
}

.journal-chapter-item .journal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 16px;
}

.journal-chapter-item .meta-item {
  display: flex;
  align-items: center;
  color: #6e6e6e;
  font-size: 16px;
}

.journal-chapter-item .meta-item i {
  margin-right: 6px;
  color: $primaryColor;
  font-size: 12px;
}

.journal-chapter-item .journal-abstract {
  font-size: 16px;
  color: #696e75;
  font-weight: 300;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-chapter-item .journal-stats {
  display: flex;
  gap: 15px;
}

.journal-chapter-item .stat-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--light-gray);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 15px;
  color: #555;
}

.journal-chapter-item .stat-badge i {
  margin-right: 6px;
  font-size: 13px;
}

.journal-chapter-item .journal-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 150px;

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: $secondaryFont ;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
  }

  .btn-primary {
    background-color: $primaryColor;
    color: white;
  }

  .btn-primary:hover {
    background-color: #043a70;
    transform: translateY(-1px);
  }

  .btn-outline {
    background-color: transparent;
    color: $primaryColor;
    border: 1px solid $primaryColor;
  }

  .btn-outline:hover {
    background-color: rgba(5, 70, 139, 0.05);
  }

  .btn i {
    margin-right: 6px;
    font-size: 12px;
  }
}


.journal-sticky{
  position: sticky;
  top: 110px; 
  z-index: 10;
}

.journal-single-container{
  margin-bottom: 30px;
}

