.navitem:not(.submit) {
  display: none !important;
}


#data-listview-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
}
.niryo-materials-display img {
  width: 120px;
  margin: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 calc(25% - 20px);
    max-width: 280px;
    min-width: 220px;
    /* height: 480px; fixed height */
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}



.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 🟧 Non soumis pour approbation */
.project-card.No {
  background: linear-gradient(180deg, #fff3e0 0%, #ff6825 100%);
  border-color: #ffa726;
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}



.project-content {
  padding: 1em 1.5em;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0073e6;
    margin-left: 5px;
}

.project-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 10px 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* limits to 3 lines */
    -webkit-box-orient: vertical;
}


.project-meta {
    display: flex;
    flex-wrap: wrap; /* allow wrapping if space is tight */
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 10px 5px;
    font-size: 0.9rem;
    color: #444;
}


.project-meta > div {
    white-space: nowrap;
    flex: 0 1 auto;
}

.project-authorlist {
  font-size: 0.65rem;
  color: #8f8f8f;
  white-space: normal;
  word-break: break-word;
}


.project-teaching {
  display: flex;
  margin: 20px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: Albert Sans, sans-serif;
}

.project-teaching strong {
  margin-right: 8px;
  color: #0073e6;
  flex-shrink: 0;
}

.teaching-pill {
  background-color: #f1f1f1;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.project-author {
  background: #f8f9fa;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  max-width: 300px;
  word-break: break-word;
  font-size: 0.9rem;
}


.project-author strong {
  color: #0073e6;
  margin-right: 4px;
}


.project-link {
    background-color: #1865ff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: .24rem;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
    white-space: nowrap;
    min-width: 140px; /* ✅ keep "View Full Project" in one line */
    text-align: center;
    flex-shrink: 0;
}


.project-link:hover {
    background-color: #4B87FF ;
    color: white;
}

.project-actions {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
}
/* ✅ Project type badge */
.project-type {
  background-color: #f4f4f4;
  color: #333;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 12px;
  white-space: nowrap;
}
.project-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

/* ✅ Make Required Materials heading big */
.section-main {
    font-size: 1.6rem;
    color: #0073e6;
    text-align: center;
    margin-bottom: 20px;
}

/* ✅ Highlight "Main Project Details" section */
.highlight-section {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* ✅ Highlight "Attached Files" section */
.highlight-files {
    background-color: #fffdf5;
    border: 1px solid #f0e68c;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
/* ✅ Inner cards for short desc + full content */
.project-subcard {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.project-subcard h5 {
    font-size: 1.1rem;
    color: #0073e6;
    margin-bottom: 10px;
}
.tag-list span,
.tag-list label {
    display: inline-block;
    background-color: #0073e6;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 3px 5px 3px 0;
    white-space: nowrap;
}

/* In case New Learning outputs tags as plain text */
.tag-list {
    margin-top: 8px;
}

.single-project {
    max-width: 1000px;   /* ✅ wider card */
    margin: 0 auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    position: relative;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.left-label {
  background: #f0f0f0;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 12px;
}
.right-label {
  background: #f8f9fa;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  max-width: 250px;
  word-break: break-word;
}

.right-label strong {
  color: #0073e6;
  margin-right: 4px;
}

.single-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}
.left-header {
  flex: 1 1 auto;
  max-width: 80%; /* 🧠 ensures space for right-header */
}

.right-header {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

.single-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0073e6;
  text-align: center;
  margin: 0;
}

.single-actions {
    font-size: 0.9rem;
}

.single-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.single-section {
    margin-bottom: 20px;
}

.single-section h2 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 10px;
}

.single-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* ✅ Plain text external URL style */
.external-url {
    color: #0073e6;
    text-decoration: underline;
    font-weight: 500;
    word-break: break-all;
}

.external-url:hover {
    color: #005bb5;
}


.single-comments {
    margin-top: 40px;
}

/* Bar en haut , remove Action et view type*/
.row.ms-auto {
  display: none;
}

/* Keep layout horizontal and tidy */
form#options .d-flex {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

/* Make selects and inputs more compact */
form#options select,
form#options input[type="text"],
form#options input[type="number"] {
  height: 34px;
  font-size: 14px;
  padding: 4px 8px;
  min-width: 120px;
  max-width: 180px;
}

/* Reduce spacing between label and field */
form#options label {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 2px;
  margin-right: 8px;
  display: inline-block;
  white-space: nowrap;
}

/* Make search input width responsive */
form#options #reg_search input[type="text"] {
  width: 160px;
}

/* Make checkbox nicely aligned */
form#options input[type="checkbox"]#advancedcheckbox {
  margin-top: 10px;
  margin-left: 4px;
}

/* Button styling - ensure it's aligned and compact */
form#options .form-buttons input[type="submit"],
form#options input[type="submit"] {
  padding: 6px 14px;
  font-size: 14px;
  height: 36px;
  margin-left: auto;
}

#pref_perpage {
  display: none !important;
}
label[for="pref_perpage"] {
  display: none !important;
}
.search-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 32px;
  margin-top: 1rem;
  align-items: flex-start;
}

.search-field {
  display: flex;
  flex-direction: column;
  width: 220px;
  min-width: 200px;
  flex: 0 0 auto;
}

.search-field span {
  font-weight: 600;
  margin-bottom: 6px;
  color: #203567;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-field select,
.search-field input,
.search-field textarea {
  width: 100%;
  max-width: 100%;
}
