 .funding-node {

  max-width: 1180px;

  margin: 0 auto;

  padding: 24px 20px 56px;

  color: #0f2742;

}



.funding-back {

  margin: 0;

}



.funding-back a {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: var(--ziston-theme-color);

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

}



.funding-back a:hover {

  text-decoration: underline;

}



.funding-header {

  /* padding: 8px 0 22px; */

  border-bottom: 1px solid #e2e8f0;

}



.funding-header-tools {

  margin-bottom: 14px;

}



.funding-header-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  width: 100%;

}



.funding-header-actions {

  display: flex;

  gap: 10px;

  flex-wrap: wrap;

  justify-content: flex-end;

  margin-left: auto;

}



.funding-save-button,

.funding-question-header-button {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  border-radius: 8px;

  padding: 10px 15px;

  font-size: 14px;

  font-weight: 700;

  text-decoration: none;

}



.funding-save-button {

  border: 1px solid #d8e0ea;

  color: #0f2742;

  background: #fff;

}



.funding-question-header-button {

  background: var(--ziston-theme-color);

  color: #fff;

}



.funding-title {

  margin: 0 0 8px;

  font-size: 30px;

  line-height: 1.25;

  color: #071b38;

}



.funding-subtitle {

  color: #64748b;

  font-size: 15px;

  margin-bottom: 18px;

}



.funding-dot {

  margin: 0 6px;

}



.funding-meta-row {

  display: flex;

  flex-wrap: wrap;

  gap: 22px;

  color: #334155;

  font-size: 14px;

}



.funding-meta-item {

  display: flex;

  align-items: center;

  gap: 8px;

}



.funding-meta-item i {

  color: #797f89;

}



.funding-tabs {

  display: flex;

  gap: 30px;

  border-bottom: 1px solid #e2e8f0;

  margin-bottom: 24px;

  overflow-x: auto;

}



.funding-tabs a {

  display: inline-block;

  padding: 15px 0;

  color: #334155;

  text-decoration: none;

  font-size: 14px;

  font-weight: 700;

  border-bottom: 3px solid transparent;

  white-space: nowrap;

}



.funding-tabs a:first-child,

.funding-tabs a:hover,

.funding-tabs a:focus {

  color: var(--ziston-theme-color);

  border-bottom-color: var(--ziston-theme-color);

}



.funding-detail-layout {

  display: grid;

  grid-template-columns: 0.9fr 1.45fr;

  gap: 24px;

  align-items: start;

}



.funding-card {

  background: #fff;

  border: 1px solid rgba(0, 0, 0, 0.1);

  border-radius: 4px;

  padding: 24px;

  margin-bottom: 22px;

  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);

}



.funding-card h2 {

  margin: 0 0 18px;

  color: #0f2742;

  font-size: 18px;

  font-weight: 700;

}



.funding-card h3 {

  margin: 22px 0 10px;

  color: #0f2742;

  font-size: 15px;

  font-weight: 800;

}



.funding-info-list {

  display: grid;

  gap: 12px;

}



.funding-info-row {

  display: grid;

  grid-template-columns: 145px 1fr;

  gap: 14px;

  align-items: start;

  font-size: 14px;

}



.funding-info-row strong {

  color: #0f172a;

  font-weight: 600;

  display: flex;

}



.funding-taxonomy-section {

  margin-top: 18px;

}



.funding-link-list {

  display: grid;

  gap: 10px;

}



.funding-file-link-item {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 8px;

  width: 100%;

  padding: 11px 14px; 

  border: 1px solid rgba(0, 0, 0, 0.1);

  border-radius: 4px;

}



.funding-file-link-item .field,

.funding-file-link-item .field__items {

  flex: 1;

  min-width: 0;

}



.funding-link-icon-left,

.funding-link-icon-right {

  color: #797f89;

  font-size: 15px;

  flex: 0 0 auto;

}



.funding-link-icon-right {

  margin-left: auto;

}



.funding-link-list a {

  /* display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 8px;

  width: 100%;

  padding: 11px 14px;

  border: 1px solid rgba(0, 0, 0, 0.1);

  border-radius: 4px;

  background: #0dcaf00d; */

  color: #0f172a;

  font-size: 14px;

  font-weight: 700;

  text-decoration: none;

}



.funding-link-list a:hover {

  background: #0dcaf00d;

}



a.funding-primary-link,

.funding-primary-link a {

  background: #005fd2;

  color: #fff;

  border-color: #005fd2;

}



a.funding-primary-link:hover,

.funding-primary-link a:hover {

  background: #004ca8;

}



.funding-contact-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 18px;

}



.funding-contact-grid span,.funding-info-row span

 {

  display: block;

  color: #64748b;

  font-size: 13px;

  margin-bottom: 5px;

}



.funding-contact-grid strong {

  display: block;

  color: #0f172a;

  font-size: 15px;

}



/* Status badge */

.funding-status-badge .field__label {

  display: none;

}



.funding-status-badge .field--name-field-katastasi.field__item,

.funding-status-badge .field__item,

.funding-status-inline .field--name-field-katastasi.field__item,

.funding-status-inline .field__item {

  display: inline-block;

  color: #fff;

  border-radius: 4px;

  padding: 5px 9px;

  font-size: 12px;

  line-height: 1;

  font-weight: 700;

}



.funding-status--open .field--name-field-katastasi.field__item,

.funding-status--open .field__item {

  background: #16a34a;

}



.funding-status--closed .field--name-field-katastasi.field__item,

.funding-status--closed .field__item {

  background: #dc2626;

}



.funding-status--expected .field--name-field-katastasi.field__item,

.funding-status--expected .field__item {

  background: #f59e0b;

}



/* Hide labels inside common rendered fields */

.funding-node .field__label {

  font-weight: 700;

  color: #475569;

}



/* Taxonomy pills */

.field--name-field-thematiki-katigoria .field__items,

.field--name-field-dikaioyhoi .field__items,

.field--name-field-periohi-efarmogis .field__items {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}



.field--name-field-thematiki-katigoria .field__item,

.field--name-field-dikaioyhoi .field__item,

.field--name-field-periohi-efarmogis .field__item {

  display: inline-flex;

  background: #0dcaf00d;

  color: #0f172a;

  border-radius: 10px;

  padding: 6px 11px;

  font-size: 13px;

  font-weight: 700;

}



.field--name-field-thematiki-katigoria .field__item a,

.field--name-field-dikaioyhoi .field__item a,

.field--name-field-periohi-efarmogis .field__item a {

  color: inherit;

  text-decoration: none;

  pointer-events: none;

  cursor: text;

}

.field--name-field-periohi-efarmogis a,

.field--name-field-thematiki-katigoria a,

.field--name-field-dikaioyhoi a {

  color: inherit;

  text-decoration: none;

  pointer-events: none;

  cursor: text;

}

.field--name-field-typos-pigis a,

.field--name-field-programma-plaisio a {

  color: inherit;

  text-decoration: none;

  pointer-events: none;

  cursor: text;

}



.funding-info-row .field--name-field-thematiki-katigoria,

.funding-info-row .field--name-field-periohi-efarmogis,

.funding-info-row .field--name-field-thematiki-katigoria .field__items,

.funding-info-row .field--name-field-periohi-efarmogis .field__items {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}



.funding-info-row .field--name-field-thematiki-katigoria.field__item,

.funding-info-row .field--name-field-periohi-efarmogis.field__item,

.funding-info-row .field--name-field-thematiki-katigoria .field__item,

.funding-info-row .field--name-field-periohi-efarmogis .field__item {

  display: inline-flex;

  background: #0dcaf00d;

  

  border-radius: 10px;

  padding: 6px 11px;

  font-size: 13px;

  font-weight: 700;

}



.field--name-field-thematiki-katigoria a {

  color: #0F1729;

}



/* Clean field rendering inside meta/header */

.funding-meta-row .field,

.funding-subtitle .field {

  display: inline;

}

.funding-subtitle .field__items {

  display: inline;

}



.funding-meta-row .field__label,

.funding-subtitle .field__label {

  display: none;

}



.funding-meta-row .field__item,

.funding-subtitle .field__item {

  display: inline;

}



/* Smooth anchor navigation */

html {

  scroll-behavior: smooth;

}



.funding-card[id] {

  scroll-margin-top: 95px;

}



/* Responsive */

@media (max-width: 920px) {

  .funding-detail-layout {

    grid-template-columns: 1fr;

  }



  .funding-header-top {

    align-items: center;

    flex-direction: row;

  }



  .funding-header-actions {

    justify-content: flex-end;

    margin-left: auto;

  }



  .funding-title {

    font-size: 25px;

  }



  .funding-info-row {

    grid-template-columns: 1fr;

    gap: 4px;

  }



  .funding-contact-grid {

    grid-template-columns: 1fr;

  }

}



@media (max-width: 640px) {

  .funding-node {

    padding: 18px 14px 42px;

  }



  .funding-card {

    padding: 18px;

  }



  .funding-tabs {

    gap: 22px;

  }



  .funding-header-actions {

    width: auto;

  }



  .funding-save-button,

  .funding-question-header-button {

    width: auto;

    justify-content: center;

  }

}



.funding-card h2 {

  position: relative;

  padding-bottom: 10px;

}



.funding-card h2::after {

  content: '';

  width: 50px;

  height: 2px;

  background: var(--ziston-theme-color);

  position: absolute;

  bottom: 0;

  left: 0;

  z-index: 1;

}

@media (max-width: 640px) {

  .funding-node,
  .funding-node *,
  .funding-node *::before,
  .funding-node *::after {

    box-sizing: border-box;

  }

  .funding-header,
  .funding-header p,
  .funding-header-top,
  .funding-header-actions,
  .funding-detail-layout,
  .funding-card {

    max-width: 100%;

    min-width: 0;

  }

  .funding-header p {

    margin-left: 0;

    margin-right: 0;

    overflow-wrap: anywhere;

  }

  .funding-header-top {

    flex-wrap: wrap;

  }

  .funding-header-actions {

    margin-left: 0;

    width: 100%;

    justify-content: flex-start;

  }

}


/* Funding view listing styles extracted from template.css. */
/* FUNDING VIEW */
.funding {
  --gap: 16px;
  --border: #dfe5ef;
  --text: #1f2937;

  display: grid;
  grid-template-columns: 1fr;
}

/* STRUCTURE */
.funding .view-content-wrapper {
  display: contents;
}

.funding .view-content-1 {
  grid-row: 2;
}

.funding > header {
  grid-row: 1;
  margin: 18px 0 0;
  font-size: 16px;
  color: var(--text);
}

.funding .view-content-2 {
  grid-row: 3;
  margin-top: 20px;
}

/* FORM LAYOUT */
.funding .views-exposed-form .views-exposed-form-content-inner {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 12px;
  align-items: end;
}

.funding .close-exposed-form {
  display: none !important;
}

.funding .views-exposed-form-content-inner > .form-item,
.funding .views-exposed-form [data-drupal-selector="edit-actions"] {
  min-width: 0;
  width: 100%;
  max-width: none;
  float: none;
  box-sizing: border-box;
  margin: 0 !important;
}

/* ROW 1 */
.funding .form-item-title {
  grid-column: 1 / span 9;
  grid-row: 1;
}

.funding .views-exposed-form [data-drupal-selector="edit-actions"] {
  grid-column: 10 / -1;
  grid-row: 1;
  display: flex !important;
  align-self: end;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: visible;
}

/* ROW 2 FILTERS */
.funding .form-item-field-pigi-hrimatodotisis-target-id {
  grid-column: 1 / span 3;
  grid-row: 2;
}

.funding .form-item-field-typos-pigis-target-id {
  grid-column: 4 / span 3;
  grid-row: 2;
}

.funding .form-item-field-katastasi-value {
  grid-column: 7 / span 3;
  grid-row: 2;
}

.funding .form-item-field-dikaioyhoi-target-id {
  grid-column: 10 / span 3;
  grid-row: 2;
}

/* ROW 3: compact page size, then sort, aligned to the right. */
.funding .views-exposed-form-content-inner > .form-item-items-per-page {
  grid-column: 7 / span 3;
  grid-row: 3;
  width: min(100%, 180px);
  justify-self: end;
}

.funding .form-item-sort-bef-combine {
  grid-column: 10 / span 3;
  grid-row: 3;
  display: block;
}

/* LABELS */
.funding .views-exposed-form label {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.funding .form-item-sort-by label,
.funding .form-item-sort-order label {
  display: none;
}

/* INPUTS */
.funding .views-exposed-form input[type="text"] {
  width: 100%;
  margin: 0;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
  box-sizing: border-box;
  outline: none;
}

/* FORCE NATIVE SELECTS - DISABLE CHOSEN VISUALLY */
.funding .chosen-container {
  display: none !important;
}

.funding .views-exposed-form select.form-select {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 44px !important;
  line-height: normal !important;
  min-width: 0 !important;

  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;

  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  background-color: #fff !important;

  padding: 0 42px 0 14px !important;
  box-sizing: border-box !important;

  font-size: 14px !important;
  color: #6B7280 !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
}

/* SORT SELECT */
.funding #edit-sort-bef-combine {
  width: 100% !important;
  min-width: 0 !important;
  font-size: 14px !important;
}

/* BUTTONS */
.funding .views-exposed-form [data-drupal-selector="edit-actions"] input[type="submit"] {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  min-width: 0;
  width: auto !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  line-height: normal !important;
  text-align: center !important;
  text-indent: 0 !important;
  background-image: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.2s ease;
  text-transform: none;
}

.funding input[data-drupal-selector="edit-submit-pigi-hrimatodotisis"] {
  flex: 1 1 100px;
  background: var(--ziston-theme-color);
  color: #fff;
  border: 0;
}

.funding input[data-drupal-selector="edit-reset-pigi-hrimatodotisis"] {
  flex: 1.5 1 150px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

/* Keep both buttons readable at narrower desktop widths. */
@media (min-width: 992px) and (max-width: 1399px) {
  .funding .form-item-title {
    grid-column: 1 / span 8;
  }

  .funding .views-exposed-form [data-drupal-selector="edit-actions"] {
    grid-column: 9 / -1;
  }
}

@media (min-width: 992px) and (max-width: 1099px) {
  .funding .form-item-title {
    grid-column: 1 / span 7;
  }

  .funding .views-exposed-form [data-drupal-selector="edit-actions"] {
    grid-column: 8 / -1;
  }
}

@media (max-width: 991px) {
  .funding .views-exposed-form .views-exposed-form-content-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .funding .views-exposed-form-content-inner > .form-item,
  .funding .views-exposed-form [data-drupal-selector="edit-actions"] {
    grid-column: 1;
    grid-row: auto;
  }

  .funding .views-exposed-form-content-inner > .form-item-items-per-page {
    width: 100%;
  }

  .funding .views-exposed-form [data-drupal-selector="edit-actions"] {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .funding .views-exposed-form [data-drupal-selector="edit-actions"] {
    flex-direction: column;
    align-items: stretch;
  }

  .funding .views-exposed-form [data-drupal-selector="edit-actions"] input[type="submit"] {
    width: 100% !important;
    flex: 0 0 auto;
  }
}

/* RESULT CARD */
.funding .view-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.funding .view-content-wrap .item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 180px 170px 24px;
  grid-template-rows: auto auto auto;
  column-gap: 36px;
  row-gap: 8px;
  align-items: center;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s ease;
}

.funding .view-content-wrap .item:hover {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.funding .funding-card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.funding .view-content-wrap .item .views-field {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* STATUS */
.funding .views-field-field-katastasi {
  grid-column: 1 / -1;
  grid-row: 1;
}

.funding .views-field-field-katastasi .field-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 14px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
}

.funding .views-field-field-katastasi.status-open .field-content {
  background: #16a34a;
}

.funding .views-field-field-katastasi.status-closed .field-content {
  background: #dc2626;
}

.funding .views-field-field-katastasi.status-expected .field-content {
  background: #f59e0b;
}

/* TITLE */
.funding .views-field-title {
  grid-column: 1;
  grid-row: 2;
}

.funding .views-field-title a {
  position: relative;
  z-index: 2;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.funding .views-field-title a:hover {
  color: var(--ziston-theme-color);
}

.funding .view-content-wrap .item:hover .views-field-title a {
  color: var(--ziston-theme-color);
}

/* TYPE */
.funding .views-field-field-typos-pigis {
  grid-column: 1;
  grid-row: 3;
  color: #6B7280;
  font-size: 13px;
  font-weight: 500;
}

/* BUDGET */
.funding .views-field-field-proypologismos {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: start;
}

.funding .views-field-field-proypologismos::before {
  content: "Προϋπολογισμός";
  display: block;
  color: #6B7280;
  font-size: 13px;
  font-weight: 700;
}

.funding .views-field-field-proypologismos .field-content {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.funding .views-field-field-proypologismos .field-content::after {
  content: " €";
}

/* DEADLINE */
.funding .views-field-field-imerominia-lixis {
  grid-column: 3;
  grid-row: 2 / span 2;
  align-self: start;
}

.funding .views-field-field-imerominia-lixis::before {
  content: "Λήξη υποβολής";
  display: block;
  color: #6B7280;
  font-size: 13px;
  font-weight: 700;
}

.funding .views-field-field-imerominia-lixis .field-content {
  color: var(--ziston-theme-color);
  font-size: 17px;
  font-weight: 800;
}

/* BOTTOM INFO */
.funding .views-field-field-pigi-hrimatodotisis,
.funding .views-field-field-periohi-efarmogis {
  grid-row: 5;
  color: #6B7280;
  font-size: 13px;
  font-weight: 500;
}

.funding .views-field-field-pigi-hrimatodotisis {
  grid-column: 1;
}

.funding .views-field-field-periohi-efarmogis {
  grid-column: 1 / span 2;
  margin-left: 260px;
}

.funding .views-field-field-pigi-hrimatodotisis .field-content::before {
  content: "\f0c0";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 8px;
}

.funding .views-field-field-periohi-efarmogis .field-content::before {
  content: "\f3c5";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 8px;
}

/* HIDE DESCRIPTION */
.funding .views-field-field-syntomi-perigrafi {
  display: none;
}

/* CARD ARROW */
.funding .view-content-wrap .item::after {
  content: "›";
  grid-column: 4;
  grid-row: 1 / -1;
  justify-self: end;
  align-self: center;
  color: var(--ziston-theme-color);
  font-size: 34px;
  font-weight: 300;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.funding-header p {
  color: #6B7280;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.funding .funding-filter-toggle {
  display: none;
}

/* MOBILE CARDS */
@media (max-width: 991px) {
  .funding .view-content-wrap .item {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 20px;
  }

  .funding .views-field-field-katastasi,
  .funding .views-field-title,
  .funding .views-field-field-typos-pigis,
  .funding .views-field-field-proypologismos,
  .funding .views-field-field-imerominia-lixis,
  .funding .views-field-field-pigi-hrimatodotisis,
  .funding .views-field-field-periohi-efarmogis {
    grid-column: 1;
    grid-row: auto;
  }

  .funding .views-field-field-periohi-efarmogis {
    margin-left: 0;
  }

  .funding .view-content-wrap .item::after {
    display: none;
  }

  .funding .views-field-title a {
    font-size: 20px;
  }
}


.funding .views-exposed-form{
  margin-top: 30px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

@media (max-width: 991px) {
  .funding .funding-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(100%, calc(100vw - 28px));
    min-height: 44px;
    margin: 14px auto;
    padding: 10px 14px;
    border: 0;
    border-radius: 4px;
    background: var(--ziston-theme-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
  }

  .funding .funding-filter-toggle i {
    font-size: 14px;
  }

  .funding.funding-filters-collapsed .views-exposed-form {
    display: none;
  }
}

@media (max-width: 640px) {
  .funding,
  .funding *,
  .funding *::before,
  .funding *::after {
    box-sizing: border-box;
  }

  .funding > header,
  .funding .view-content-1,
  .funding .view-content-2 {
    width: min(100%, calc(100vw - 28px));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
  }

  .funding-header,
  .funding-header p,
  .funding .views-exposed-form,
  .funding .views-exposed-form-content-inner,
  .funding .form-item,
  .funding .form-actions,
  .funding input,
  .funding select {
    max-width: 100%;
    min-width: 0;
  }

  .funding-header p {
    margin-left: 0;
    margin-right: 0;
  }

  .funding .views-exposed-form {
    width: 100%;
    padding: 16px 14px;
    overflow: hidden;
  }

  .funding .views-exposed-form-content-inner {
    gap: 16px;
  }
}

.funding .view-content-wrap .item .views-field,
.funding .view-content-wrap .item::after {
  pointer-events: none;
}

.funding .view-content-wrap .item:hover .views-field-title a {
  color: var(--ziston-theme-color);
}

.funding-partner {
  width: 100%;
  background: rgba(255, 255, 255, 0.68);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
}

@media (min-width: 1200px) {
  .funding-partner {
    width: 550px;
  }
}

/* 2026-10: Funding taxonomy and long titles */
.funding .views-field-title,
.funding .views-field-title .field-content {
  min-width: 0;
}
.funding .views-field-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
/* The source is placed directly below the title, without a badge. */
.funding .views-field-field-pigi-hrimatodotisis {
  grid-column: 1;
  grid-row: 3;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}
/* Keep the existing type, on its own line if it is still shown in Views. */
.funding .views-field-field-typos-pigis {
  grid-column: 1;
  grid-row: 4;
}
/* Bottom metadata moves below the new taxonomy and type rows. */
.funding .views-field-field-pigi-hrimatodotisis ~ .views-field-field-periohi-efarmogis,
.funding .views-field-field-pigi-hrimatodotisis ~ .views-field-field-typos-pigis {
  min-width: 0;
}
.funding .views-field-field-pigi-hrimatodotisis a,
.funding-node .field--name-field-pigi-hrimatodotisis a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  cursor: text;
}
.funding .views-field-field-pigi-hrimatodotisis:empty,
.funding .views-field-field-proypologismos:empty,
.funding .views-field-field-imerominia-lixis:empty {
  display: none;
}
/* Grid rows are implicit; avoid collision with the new type/source rows. */
.funding .views-field-field-pigi-hrimatodotisis ~ .views-field-field-periohi-efarmogis,
.funding .views-field-field-pigi-hrimatodotisis ~ .views-field-field-typos-pigis { overflow-wrap: anywhere; }
@media (max-width: 991px) {
  .funding .views-field-field-pigi-hrimatodotisis {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Hide empty Views field wrappers, including CSS-generated labels. */
.funding .views-field-field-proypologismos:has(.field-content:empty),
.funding .views-field-field-imerominia-lixis:has(.field-content:empty),
.funding .views-field-field-pigi-hrimatodotisis:has(.field-content:empty),
.funding .views-field-field-typos-pigis:has(.field-content:empty),
.funding .views-field-field-periohi-efarmogis:has(.field-content:empty) {
  display: none;
}
/* Full-width content when there are no basic information fields. */
.funding-detail-layout > .funding-main-column:only-child {
  grid-column: 1 / -1;
}
/* Source in detail view follows the existing taxonomy text style. */
.funding-node .field--name-field-pigi-hrimatodotisis .field__label {
  display: none;
}

/* Final polish: basic information readability and keyboard navigation */
@media (min-width: 921px) {
  .funding-basic-info .funding-info-row {
    grid-template-columns: minmax(105px, 42%) minmax(0, 1fr);
    gap: 12px;
  }
}
.funding-basic-info .funding-info-row > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.funding .views-field-title a:focus-visible,
.funding .funding-card-overlay-link:focus-visible,
.funding-node a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
/* Ensure taxonomy and type stay distinct and readable. */
.funding .views-field-field-pigi-hrimatodotisis {
  overflow-wrap: anywhere;
}

/* 2026-10-20: status + funding source + source type in one badge row. */
.funding .view-content-wrap .item {
  grid-template-columns: max-content max-content max-content minmax(0, 1fr) 180px 170px 24px;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 10px;
}
.funding .views-field-field-katastasi { grid-column: 1; grid-row: 1; }
.funding .views-field-field-pigi-hrimatodotisis { grid-column: 2; grid-row: 1; }
.funding .views-field-field-typos-pigis { grid-column: 3; grid-row: 1; }
.funding .views-field-title { grid-column: 1 / 5; grid-row: 2; }
.funding .views-field-field-proypologismos { grid-column: 5; grid-row: 2; }
.funding .views-field-field-imerominia-lixis { grid-column: 6; grid-row: 2; }
.funding .view-content-wrap .item::after { grid-column: 7; grid-row: 2; }
.funding .views-field-field-periohi-efarmogis {
  grid-column: 1 / 5;
  grid-row: 3;
  margin-left: 0;
}
.funding .views-field-field-pigi-hrimatodotisis,
.funding .views-field-field-typos-pigis { align-self: center; min-width: 0; }
.funding .views-field-field-pigi-hrimatodotisis .field-content::before,
.funding .views-field-field-pigi-hrimatodotisis::before { content: none !important; display: none !important; }
.funding .views-field-field-pigi-hrimatodotisis .field-content,
.funding .views-field-field-typos-pigis .field-content {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 11px;
  border-radius: 7px;
  background: #eef2f6;
  color: #243248;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}
/* The node template has a genuine shared wrapper, so its chips can wrap safely. */
.funding-header-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.funding-header-badges .funding-header-chip,
.funding-header-badges .funding-header-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 12px;
  border-radius: 7px;
  background: #eef2f6;
  color: #243248;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.funding-header-badges .funding-header-status { color: #fff; background: #64748b; }
.funding-header-badges .funding-status--open { background: #16a34a; }
.funding-header-badges .funding-status--closed { background: #dc2626; }
.funding-header-badges .funding-status--expected { background: #f59e0b; }
@media (max-width: 1199px) {
  .funding .view-content-wrap .item {
    grid-template-columns: max-content max-content max-content minmax(0, 1fr) 140px 140px 18px;
    column-gap: 10px;
  }
}
@media (max-width: 991px) {
  .funding .view-content-wrap .item {
    grid-template-columns: max-content max-content minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    column-gap: 8px;
  }
  .funding .views-field-field-katastasi { grid-column: 1; grid-row: 1; }
  .funding .views-field-field-pigi-hrimatodotisis { grid-column: 2; grid-row: 1; }
  .funding .views-field-field-typos-pigis { grid-column: 3; grid-row: 1; }
  .funding .views-field-title { grid-column: 1 / -1; grid-row: 2; }
  .funding .views-field-field-proypologismos { grid-column: 1 / -1; grid-row: 3; }
  .funding .views-field-field-imerominia-lixis { grid-column: 1 / -1; grid-row: 4; }
  .funding .views-field-field-periohi-efarmogis { grid-column: 1 / -1; grid-row: 5; }
}
@media (max-width: 480px) {
  .funding .view-content-wrap .item { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .funding .views-field-field-typos-pigis { grid-column: 1 / -1; grid-row: 2; }
  .funding .views-field-title { grid-row: 3; }
  .funding .views-field-field-proypologismos { grid-row: 4; }
  .funding .views-field-field-imerominia-lixis { grid-row: 5; }
  .funding .views-field-field-periohi-efarmogis { grid-row: 6; }
}

/* =============================================================
   FINAL ALIGNMENT / PLAIN TAXONOMY VALUES — 2026-10-20
   ============================================================= */

/* Detail page: show region and beneficiaries as ordinary text. */
.funding-node .field--name-field-periohi-efarmogis,
.funding-node .field--name-field-periohi-efarmogis .field__items,
.funding-node .field--name-field-periohi-efarmogis .field__item,
.funding-node .field--name-field-dikaioyhoi,
.funding-node .field--name-field-dikaioyhoi .field__items,
.funding-node .field--name-field-dikaioyhoi .field__item,
.funding-node .funding-info-row .field--name-field-periohi-efarmogis,
.funding-node .funding-info-row .field--name-field-periohi-efarmogis .field__item {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.funding-node .field--name-field-periohi-efarmogis .field__items,
.funding-node .field--name-field-dikaioyhoi .field__items {
  gap: 4px 10px;
}
.funding-node .field--name-field-periohi-efarmogis .field__item,
.funding-node .field--name-field-dikaioyhoi .field__item {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Listing: place all three chips on one baseline with equal height. */
.funding .view-content-wrap .item > .views-field-field-katastasi,
.funding .view-content-wrap .item > .views-field-field-pigi-hrimatodotisis,
.funding .view-content-wrap .item > .views-field-field-typos-pigis {
  grid-row: 1;
  align-self: center;
  justify-self: start;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.funding .view-content-wrap .item > .views-field-field-katastasi { grid-column: 1; }
.funding .view-content-wrap .item > .views-field-field-pigi-hrimatodotisis { grid-column: 2; }
.funding .view-content-wrap .item > .views-field-field-typos-pigis { grid-column: 3; }
.funding .views-field-field-katastasi .field-content,
.funding .views-field-field-pigi-hrimatodotisis .field-content,
.funding .views-field-field-typos-pigis .field-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-height: 30px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: middle;
  white-space: nowrap;
}
.funding .views-field-field-pigi-hrimatodotisis .field-content,
.funding .views-field-field-typos-pigis .field-content {
  background: #eef2f6;
  color: #243248;
}
.funding .views-field-field-pigi-hrimatodotisis::before,
.funding .views-field-field-pigi-hrimatodotisis .field-content::before {
  content: none !important;
  display: none !important;
}
/* Narrow screens: allow source/type to wrap rather than overflow. */
@media (max-width: 480px) {
  .funding .views-field-field-pigi-hrimatodotisis .field-content,
  .funding .views-field-field-typos-pigis .field-content {
    white-space: normal;
    text-align: center;
    height: auto;
    min-height: 30px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
}


/* Απόκρυψη badges στην αναλυτική σελίδα */
.funding-node .funding-header-badges {
    display: none !important;
}



/* Δικαιούχοι - απλή, ομοιόμορφη εμφάνιση */

.funding-node #beneficiaries
.field--name-field-dikaioyhoi .field__items {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0 !important;
}

.funding-node #beneficiaries
.field--name-field-dikaioyhoi .field__item {
  display: block !important;
  width: 100%;
  padding: 12px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.funding-node #beneficiaries
.field--name-field-dikaioyhoi .field__item + .field__item {
  border-top: 1px solid #e2e8f0;
}

.funding-node #beneficiaries
.field--name-field-dikaioyhoi .field__item::before {
  content: none !important;
}
