.articles-list-wrapper {
  max-width: 1327px;
  margin: 0 auto;
  padding: 0 24px;
}

.articles-list {
  display: flex;
  gap: 27px;
  flex-direction: column;
}

.filters-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 43px;
}

svg.hamburger {
  flex: 0 0 auto;     /* don’t grow, don’t shrink */
  width: 34px;
  height: 34px;
}

.filters-product-date-container {
  display: none;
}

.filters-open .filters-product-date-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filters-open .filters-wrapper {
  align-items: flex-start;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
  position: relative;
}

.filters-open .select-btn {
  width: 100%;
}

.filters-open #search-input {
  width: 100%;
}

/* ---------------------- SELECT DROPDOWNS ---------------------- */

.filter-select {
  position: relative;
}

.select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 185px;
  padding: 10px 14px;
  background: white;
  border: 1px solid #979999;
  border-radius: 8px;
  cursor: pointer;
}

.select-btn span {
  font-weight: 600;
  color: #494949;
}

.select-btn .chevron {
  width: 14px;
  transition: transform 0.2s ease;
}

/* Chevron flips when .open is applied */
.filter-select.open .chevron {
  transform: rotate(180deg);
}




/* .select-dropdown {
  position: absolute;
  top: 48px;
  width: 100%;
  background: white;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 8px 0;
  display: none;
} */

.filter-select.open .select-dropdown {
  display: block;
  width: 100%;
}

.select-dropdown .option {
  padding: 10px 14px;
  cursor: pointer;
}

.custom-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
  line-height: 1.5;
  margin-bottom: 16px;
  font-size: 15px;
}

/* Hide the real checkbox */
.custom-checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  opacity: 0;
}

/* Fake box */
.custom-checkbox .box {
  width: 18px;
  height: 18px;
  border: 1px solid #979999;
  border-radius: 4px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s;
}

/* When checked */
.custom-checkbox input:checked + .box {
  background-color: #ff8600;
  border-color: #ff8600;
}

/* PNG icon appears when checked */
.custom-checkbox input:checked + .box::after {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url("https://22106570.fs1.hubspotusercontent-na1.net/hubfs/22106570/Resources/research/checkmark.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.custom-checkbox input:checked ~ .label-text {
  color: #FF7A00;
}

.label-text {
  margin-left: 12px;
  font-weight: 300;
  line-height: 1.5;
}

/* --- OPEN STATE PANEL --- */
.select-dropdown {
  position: absolute;
  top: 44px;
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  padding: 20px;
  width: 185px;
  z-index: 10;
  border-left: 1px solid #979999;
  border-right: 1px solid #979999;
  border-bottom: 1px solid #979999;
  padding-bottom: 0;
}

.no-bottom-border {
  border-bottom: none !important; 
}

.filter-select.open .select-dropdown {
  display: flex;
}

/* Chevron rotation */
.filter-select.open .chevron {
  transform: rotate(180deg);
}

/* --- Product list --- */
.dropdown-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* --- Date range inputs --- */
.date-range {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.date-box label {
  font-size: 14px;
  color: #444;
}

.date-input {
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  font-size: 16px;
}

.year-picker-list {
    /* Position the list relative to the main dropdown */
  position: absolute;
  top: 0; /* Align to the top of the select-dropdown */
  left: 100%; /* Push it to the right of the select-dropdown */
  list-style: none;
  padding: 8px 0;
  margin-left: 8px;
  width: 102px; /* Width of the list */
  max-height: 100%; 
  overflow-y: auto;
    
  background-color: white;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  /* Hiding mechanism */
  display: none;
}

/* 2. Show the list when 'open' class is present */
.year-picker-list.open {
    display: block;
}

/* 3. Style the list items */
.year-picker-list li {
    padding: 5px 10px;
    cursor: pointer;
    text-align: center;
}

.year-picker-list li:hover {
    background-color: #f0f0f0;
}

/* ---------------------- SEARCH BAR ---------------------- */

.search-wrapper {
  position: relative;
  width: 100%;
}

#search-input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid #979999;
  border-radius: 8px;
  font-size: 15px;
}

#search-input::placeholder {
  color: #494949;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  transform: translateY(-50%);
  opacity: 0.6;
}

/* Tags Filters Applied */
/* Container Styles */
.selected-tags-container {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
  margin-top: 24px;
  margin
}

/* Tag Item Styles */
.selected-tag-item {
  align-items: center;
    background: transparent;
    border: 1px solid #ff7a00;
    border-radius: 7.41px;
    color: #ff7a00;
    display: inline-flex;
    font-size: 16px;
    height: 40.776px;
    padding: 0 18px;
    white-space: nowrap;
}

/* Tag Name Styles */
.selected-tag-item .tag-name {
  margin-right: 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--primary-color, #ff7a00);
}

/* Remove Icon Styles */
.selected-tag-item .tag-remove-icon {
  cursor: pointer;
  color: var(--primary-color, #ff7a00);
  font-size: 20px;
  line-height: 1;
}

/* Clear All Button Styles */
.clear-all-btn {
  background: none;
  border: none;
  padding: 0;
  border-bottom: 1px solid var(--primary-color, #ff7a00);
  font-size: 16px;
  font-weight: 400;
  color: var(--primary-color, #ff7a00);
  cursor: pointer;
}

.article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  gap: 16px;
  padding: 24px;
  background: #F9F9F9;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.article-card:hover {
  background: #ECECEC;
}

.article-icon-wrapper {
    width: 40px; 
    height: 40px; 
    flex-shrink: 0; 
}

.article-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image fits without distortion */
}

.article-text-content {
  flex-grow: 1; /* Takes up remaining space */
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.article-text-content > div {
    margin-left: 0;
/*     margin-top: 5px;  */
}

/* Target the tags specifically if they are appearing too far left/right */
.article-tags {
  /* Ensure the tag container itself has no padding/margin pushing it inward */
  padding-left: 0; 
/*   margin-top: auto; */
}

.article-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-icon {
  flex-shrink: 0.5;
}

/* Icon */
.article-icon img {
  width: 80px;
  height: auto;
}

.article-content {
  display: block;
  margin-left: 56px;
}

/* Title */
.article-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Text elements */
.article-authors,
.article-journal,
.article-date {
  font-size: 15px;
  color: #333;
  line-height: 1.4;
/*   margin-bottom: 4px; */
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Tag container */
.article-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Tag pill style */
.article-tags .tag {
  background: #e6e6e6;
  padding: 2px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: #444;
}

.total_publications{
  color: #494949;
  font-size: 16px;
  margin-bottom: 24px;
}

/* Container for all pagination elements */
.custom-pagination-wrapper {
  display: flex;
  justify-content: center; /* Center the entire pagination group */
  align-items: center;
  margin-top: 30px; /* Space above the footer/next content */
  padding: 30px 0 50px 0px;
}

/* Base style for all links (Previous, Next, and Page Numbers) */
.pagination-dots{
  padding: 2px 10px !important;
}

.pagination-dots,
.custom-pagination-wrapper button {
  display: block;
  padding: 2px 11px;
  margin: 0 4px;
  text-decoration: none;
  border: 1px solid #ccc; /* Light grey border */
  border-radius: 4px; /* Rounded corners */
  color: #333; /* Dark text color */
  font-size: 16px;
  transition: all 0.3s ease;
  background: #F6F6F6;
}

/* Hover effect for all links */
.custom-pagination-wrapper button:hover:not(.active) {
  background-color: #f0f0f0; /* Light background on hover */
  border-color: #aaa;
}

/* Specific style for the active (current) page number */
.custom-pagination-wrapper button.page-number.active {
  background-color: #F6F6F6;
  color: #FF7A00;
  font-weight: bold;
  cursor: default; /* Change cursor to indicate it's not clickable */
}

/* Style for the Previous and Next buttons */
.custom-pagination-wrapper .prev-button,
.custom-pagination-wrapper .next-button {
/*   min-width: 80px; /* Ensure buttons have a minimum width */ */
  font-weight: 500;
  background: #F6F6F6;
  padding: 11px 13px;
}

/* Ensure the image inside the button scales correctly based on W 5.56 / H 10 ratio */
.custom-pagination-wrapper .prev-button img,
.custom-pagination-wrapper .next-button img {
  height: 10px;
  padding: 0px;
}

.half-width {
  width: 50%;
  transition: transform 0.3s ease;
}

/* ===== Breakpoints ===== */

@media (min-width: 768px) {
  svg.hamburger {
    display: none;
  }
  
  .search-wrapper {
    width: 344px;
  }
  
  .filters-product-date-container {
    display: flex;
    gap: 2rem;
  }
  
  .total_publications {
  }
  
  .article-card {
    flex-direction: row;
  }

  .article-icon img {
    width: 120px;
    height: 60px;
  }

  .article-content {
    margin-left: 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
/*   .filters-wrapper {
    margin: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  } */
  
  .article-title {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .total_publications {
  }
  
  .article-card {
  }

  .article-tags {
/*     margin-top: auto; */
    margin-left: 40px;
  }
  
  .filters-wrapper {
    margin-bottom: 43px;
  }
  
  .selected-tags-container {
    margin-top: -20px;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 20px;
  }
  
  .article-title {
    font-size: 20px;
  }
}

/* Mobile – stacked layout, auto height */
/*
@media (max-width: 640px) {
  .article-card {
    margin: 20px 16px;
    flex-direction: column;
    height: auto;
  }

  .article-icon img {
    width: 36px;
    height: 36px;
  }
}
*/
