.list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 20px;
}

.wikethesa {
  font-family: var(--font-varela);
  font-weight: var(--font-weight-normal);
  font-style: normal;
  font-size: 65px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  color: var(--main-black);
  margin-bottom: 20px;
  text-shadow: 4px 4px 4px var(--black-border);
}

a {
  text-decoration: none !important;
}

.header {
  font-family: var(--font-varela);
  font-weight: var(--font-weight-normal);
  font-style: normal;
  font-size: 52px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  color: rgba(30, 30, 30, 1);
  text-shadow: 4px 4px 4px var(--black-border);
}

.header-div {
  	display:flex;
    text-align: center;
  	gap:20px;
}


/* מיכוון לכל השדות עם class search-input */
.search-container {
  position: relative;
  width: 100%;
  max-width: 400px; /* רוחב מקסימלי */
  margin-bottom: 10px;
}

.search-container img.search-img {
  position: absolute;
  left: 10px; /* האייקון יהיה בצד שמאל */
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none; /* לא מפריע ללחיצה על השדה */
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px; /* משמאל מקום לאייקון */
  font-size: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 24px; /* עיגול עדין כמו בגוגל */
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: #4285f4; /* כחול כמו בגוגל */
  box-shadow: 0 0 5px rgba(66, 133, 244, 0.5);
}

/* textarea AI */
textarea.search-input {
  resize: vertical; /* אפשר שינוי גובה */
  min-height: 40px;
}

/* הפילטרים */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin-bottom: 10px;
}

.styled-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 24px;
  border: 1px solid #d9d9d9;
  background-color: #fff;
  cursor: pointer;
  text-align: left;
}

.custom-select-dropdown {
  display: none; /* יופיע בלחיצה עם JS */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  z-index: 100;
}

.custom-select-dropdown .option {
  padding: 8px 12px;
  cursor: pointer;
}

.custom-select-dropdown .option:hover {
  background-color: #f1f1f1;
}

/* טווח שנים */
.year-range {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.year-input {
  padding: 8px 12px;
  border-radius: 24px;
  border: 1px solid #d9d9d9;
  width: 70px;
  font-size: 14px;
  outline: none;
}

.year-input:focus {
  border-color: #4285f4;
  box-shadow: 0 0 5px rgba(66, 133, 244, 0.5);
}


.loader, .loaderDown {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text, .loader-text-Down {
    font-size: 16px;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.submission-card {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 15px;
}

.submission-card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.submission-card .card-main-content {
    flex: 1;
}

.submission-card h3.title {
    font-size: 20px;
    margin: 0 0 5px;
}

.submission-card h3.title a {
    color: #1a0dab;
    text-decoration: none;
}

.submission-card h3.title a:hover {
    text-decoration: underline;
}

.submission-card .source-info {
    font-size: 14px;
    color: #006621;
    margin-bottom: 5px;
}

.submission-card .snippet {
    font-size: 14px;
    color: #545454;
    line-height: 1.5;
}

.Abstract-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* עד 3 שורות */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; /* חשוב כדי לאפשר ירידת שורה */
}

.submission-card .snippet strong {
    font-weight: bold;
    color: #000;
}

.submission-card .keywords-snippet {
    color: #777;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* שורה אחת בלבד */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.submission-card .submission-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.submission-card .icon-img {
    width: 24px;
    height: 24px;
}

.submission-card .download-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.submission-card .download-button:hover {
    background-color: #e0e0e0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
 
}

.pagination-container button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
      color:black;
}

.pagination-container button:hover:not(:disabled) {
    background-color: #f0f0f0;
    color:black;
}

.pagination-container button:disabled {
    background-color: #e9e9e9;
    cursor: not-allowed;
    color:black;
}
/* קונטיינר ללודר התחתון */
.loaderDown {
  display: none; /* נסתר כברירת מחדל */
  position: absolute; /* ממקם אותו יחסית לאלמנט האב שלו */
  bottom: -40px; /* ממוקם מתחת לתוכן הראשי */
  left: 50%; /* ממרכז אותו אופקית */
  transform: translateX(-50%); /* מתקן את המיקום כדי להיות בדיוק במרכז */
  text-align: center;
  margin-top: 20px;
}

/* סמל הטעינה (ספינר) */
.spinnerDown {
  border: 4px solid #f3f3f3; /* צבע אפור בהיר */
  border-top: 4px solid #3498db; /* צבע כחול */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite; /* אנימציית סיבוב */
  display: inline-block; /* מאפשר לו להופיע לצד הטקסט */
}

/* טקסט הלודר */
.loader-text-Down {
  display: inline-block;
  margin-right: 10px; /* רווח קטן בין הספינר לטקסט */
  font-size: 14px;
  color: #555;
  vertical-align: top;
  line-height: 20px; /* ליישור אנכי עם הספינר */
}

/* אנימציה לסיבוב הספינר */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: #777;
    padding: 50px 0;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    height: 80%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

.download-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px 15px;
    background-color: #0073e6;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}
.custom-select-dropdown label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-hebrew);
  font-size: 18px;
  margin-bottom: 6px;
}

.custom-select-wrapper.open .custom-select-dropdown {
  display: block;
}
#languageSelect,
#customSelectButton {
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-hebrew);
  cursor: pointer;
  min-width: 180px;
  direction: rtl;
  text-align: right;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23000" d="M2 0L0 2h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 0.5rem center;
  background-size: 10px;
  appearance: none;
  -webkit-appearance: none;
}
.custom-select-wrapper {
  position: relative;
  display: inline-block;
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  z-index: 10;
  min-width: 180px;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  direction: rtl;
}