:root {
  /* https://guide.services.gov.gr/docs/colour/ */
  /* Brand */
  --color-primary: #003375;
  --color-primary-light: #0066b3; /* Λίγο πιο απαλό από το color-primary */
  --color-secondary: #00b0f0;
  /* Typography*/
  --bs-font-sans-serif: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --color-base-content: #25282f;
  --color-gray-900: #25282f;
  --color-gray-800: #515058;
  --color-gray-700: #6b6a72;

  --secondary-button: #b3b2b5;

  --footer-color: #ecebec;
}

.account-masthead .account ul li {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.account-masthead .user-image {
  display: inline-block;
}

/* Αφαίρεση πλαισίου κύριας περιοχής ckan */
div.row.wrapper {
  box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.05);
  border: 0px;
}

/* Αφαίρεση ckan background */
.main {
  background-color: white;
  background-image: none;
}

/* Σταδιακό shadow στα input */
.form-control:focus {
    transition: box-shadow 0.5s ease;
}

aside.secondary {
    overflow-x: auto;
}

.main .secondary .module-narrow .nav-item > a .item-label {
    white-space: normal;
    overflow-wrap: anywhere;
}

.btn-primary {
    background-color: var(--color-primary-light);
}

.btn-primary:focus {
    background-color: var(--color-primary-light);
}

/* ---------------------------------------------------------------------------- */
/* templates/scheming/organization/about.html */

.group-details {
  margin: 20px 0;
  padding: 15px;
  background: #ffffff;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.group-details dl {
  margin: 0;
  padding: 0;
}

.field-container {
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #fafafa;
}

.field-container:last-child {
  margin-bottom: 0;
}

.group-details dt {
  font-weight: 600;
  color: #2d2d2d;
  font-size: 14px;
  margin-bottom: 5px;
}

.group-details dd {
  margin: 0;
  padding: 5px 0 0 10px;
  color: #4d4d4d;
  font-size: 14px;
  line-height: 1.4;
}

.group-details dd:empty::before {
  content: "\00a0";  /* Non-breaking space for empty values */
}

.publisher-type-value {
  display: inline-block;
  padding: 4px 8px;
  background-color: #fff;
  border-radius: 3px;
  border: 1px solid #e3e3e3;
}

/* ---------------------------------------------------------------------------- */

.secondary .additional-info .quality-info {
  margin: 10px;
}

/* ---------------------------------------------------------------------------- */

/* pages extension */
.box, .wrapper {
  border: none;
  box-shadow: none;
}

.page-list-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 16px;
    margin-bottom: 20px;
    background: #fff;
    transition: box-shadow 0.2s ease;
    padding-bottom: 5px;
}

.page-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dataset-item:last-of-type {
    padding-bottom: 20px;
}

.dataset-heading-block {
  display: flex;
  flex-direction: column;
}

.dataset-heading-main {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

.dataset-heading-title {
  flex: 1 1 auto;
  min-width: 0;
}

.dataset-copy-wrap,
.dataset-copy-button {
  flex: 0 0 auto;
}

.dataset-organization {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.3rem 0 0.5rem;
  color: var(--color-gray-700);
  font-size: 0.82rem;
  line-height: 1.3;
}

.dataset-organization i {
  color: var(--color-gray-700);
  font-size: 0.8rem;
}

.dataset-organization a {
  color: var(--color-gray-800);
  font-weight: 600;
  text-decoration: none;
}

.dataset-organization a:hover,
.dataset-organization a:focus {
  color: var(--color-primary-light);
  text-decoration: underline;
}

@media (max-width: 576px) {
  .dataset-heading-main {
    align-items: center;
  }
}

.pages-form .form-actions {
    margin-top: 10px;
}

.pages-quick-links {
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(120deg, #003375 0%, #0f4a94 100%);
  color: #ffffff;
}

.pages-quick-links-title {
  margin: 0 0 0.6rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.9;
}

.pages-quick-links-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pages-quick-link-btn {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  padding: 0.42rem 0.72rem;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.2;
}

.pages-quick-link-btn:hover,
.pages-quick-link-btn:focus {
  text-decoration: none;
  color: #000000;
  background: #f2f2f2;
  border-color: #ffffff;
}

.pages-quick-link-btn.is-active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

@media (max-width: 768px) {
  .pages-quick-links-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pages-quick-link-btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------------------------------------------------------------------------- */

/* scheming extension */
.panel-heading {
    background-color: #f6f6f6;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 5px;

    /* προσθήκη για σωστό positioning στο remove btn */
    position: relative;
}

/* μπήκε copy paste από scheming */
/* try to resemble .btn-remove-url style in resource form */
.btn.btn-danger.btn-repeating-remove {
  position: absolute;
  margin-right: 0;
  top: 9px;
  right: 7px;
  padding: 0 12px;
  border-radius: 100px;
}

.multiple-text-field {
  position: relative;
  margin-bottom: 10px;
}

/* μπήκε copy paste από scheming */
/* try to resemble .btn-remove-url style in resource form */
a.btn.btn-multiple-remove {
  position: absolute;
  margin-right: 0;
  top: 6px;
  right: 7px;
  padding: 0 12px;
  border-radius: 100px;
}

.dgg-hvd-managed-legislation {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #c9d8e8;
  border-radius: 6px;
  background: #f7fbff;
}

.dgg-hvd-managed-legislation__input[readonly] {
  color: #515058;
  background-color: #edf4fb;
  border-color: #c9d8e8;
  cursor: not-allowed;
}

.dgg-hvd-managed-legislation__hint {
  margin-top: 5px;
  color: var(--color-gray-700);
  font-size: 12px;
  line-height: 1.4;
}

/* ---------------------------------------------------------------------------- */

/* Wrapper γύρω από form-field element των πεδίων που ορίζει το scheming */
.form-field-wrapper {
    border-top: 3px solid gray;
    border-bottom: 3px solid gray;
    padding-left : 30px;
    padding-right : 20px;
    padding-top : 10px;
    border-radius: 10px;
    margin-bottom : 10px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.5s ease;
}

.form-field-wrapper:hover {
    background-color : aliceblue;
}

.form-field-wrapper--hvd-category {
    background-color: #b9dcfb;
    border-color: #777;
}

.form-field-wrapper--hvd-category:hover {
    background-color: #b9dcfb;
}

.dgg-hvd-category__notice {
    margin: 0 0 12px;
    color: #2f3c48;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.dgg-hvd-category__notice a {
    color: #1f4f82;
    font-weight: 700;
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------- */

#simple_search {
    display: block;
}

#advanced_search {
    display: none;
}

#simple-tab {
    margin-right: 5px;
}

.nav.nav-tabs#search-tabs {
    border-bottom-color: black;
    margin-bottom: 15px;
}

.module h1 {
    min-height: 30px;
}

li#simple-tab.active, li#advanced-tab.active {
    background-color: #42b0f5;
    background-color: #206b82;
    background-color: var(--color-primary-light);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

li#simple-tab.active a, li#advanced-tab.active a {
    color: white;
}

li#simple-tab, li#advanced-tab {
    padding: 10px;
}

li#simple-tab a, li#advanced-tab a {
    text-decoration: none;
    font-weight: bold;
}

li#simple-tab:hover, li#advanced-tab:hover {
    cursor: pointer;
}

#filters {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 15px;
  box-shadow: none;
  background-color: #fff;
}

/* Advanced search accordion filters */
#advanced_search #filters-accordion .accordion-button {
  font-weight: 600;
  justify-content: space-between;
}

#advanced_search #filters-accordion .accordion-body {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#advanced_search #filters-accordion .filters-summary {
  margin-left: 0.75rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: #6c757d;
  display: none;
}

#advanced_search #filters-accordion .filters-summary.has-selection {
  color: var(--color-primary);
}

#advanced_search #filters select[multiple].form-select {
  min-height: 220px;
}

@media (max-width: 768px) {
  #advanced_search #filters select[multiple].form-select {
    min-height: 160px;
  }
}

/* ---------------------------------------------------------------------------- */

.slug-preview {
    padding-bottom: 10px;
}

/* ---------------------------------------------------------------------------- */

.masthead {
    background-color: var(--color-primary);
    border-bottom: 3px solid var(--color-secondary);
}

.account-masthead {
    background-color: var(--color-primary);
}

.account-masthead .account.not-authed .account-login-register {
    white-space: nowrap;
}

.account-masthead .account.not-authed .account-login-register a {
    display: inline-block;
}

.account-masthead .account ul li.account-language-switcher {
    margin-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.account-masthead .language-switcher {
    display: flex;
    align-items: center;
    min-height: 31px;
    padding: 0 0 0 10px;
    gap: 4px;
    max-width: 108px;
    overflow: hidden;
}

.account-masthead .account ul li .language-switcher-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.account-masthead .account ul li .language-switcher-link:hover,
.account-masthead .account ul li .language-switcher-link:focus {
    background-color: var(--color-primary-light);
    color: #ffffff;
    text-decoration: none;
}

.account-masthead .account ul li .language-switcher-link.active {
    background-color: #ffffff;
    color: var(--color-primary);
}

.masthead .navbar {
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 767.98px) {
    .js body.filters-modal .main .secondary .filters {
        z-index: 2147483646;
    }

    .js body.filters-modal .secondary .filters .module-heading {
        padding-right: 48px;
    }

    .js body.filters-modal .main .primary {
        z-index: 0;
    }

    .js body.filters-modal .masthead,
    .js body.filters-modal .masthead .logo {
        z-index: 0 !important;
    }

    .js body.filters-modal .uwy {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .masthead .site-search {
        max-width: 130px;
    }
}

.account-masthead .fa {
    color: white;
}

/* Χρωματισμός hover για όλα τα κύρια tabs (περιλαμβάνει και το dropdown \"Σύνολα Δεδομένων\") */
.masthead .main-navbar > ul > li > a:hover,
.masthead .main-navbar > ul > li > a:focus {
    background-color: var(--color-primary-light);
}

.masthead .main-navbar > ul > li.active > a {
    background-color: var(--color-primary-light);
}

/* Dropdown μενού για τα Σύνολα Δεδομένων */
.masthead .main-navbar .dropdown-menu {
    min-width: 220px;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: none;
    background-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.masthead .main-navbar .dropdown-menu .dropdown-item {
    background-color: transparent;
    color: #fff;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 0;
}

.masthead .main-navbar .dropdown-menu .dropdown-item:hover,
.masthead .main-navbar .dropdown-menu .dropdown-item:focus {
    background-color: var(--color-primary-light);
    color: #fff;
}

.site-footer {
    background-color: var(--footer-color);
}

.site-footer .attribution p {
    color: black;
}

.site-footer label, .site-footer small, .site-footer .small {
    color: black;
}

.site-footer a {
    color: black;
}

/* ------------------- footer ------------------------------------------------ */

.site-footer {
  background-color: #f8f9fa;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e9ecef;
}

.footer-section h5,
.footer-section .footer-section-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #212529;
}

.footer-section .footer-section-title {
  font-size: 1rem;
}

.footer-section ul li {
  margin-bottom: 0.3rem;
}

.footer-section ul li a {
  color: #495057;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.footer-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-logos a {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.footer-logos img {
  width: auto;
  height: 34px;
  max-width: 100%;
  object-fit: contain;
}

.footer-logo-nextgeneration img {
  width: 340px;
  height: auto;
  max-width: 100%;
}

@media (max-width: 400px) {
  .footer-logos {
    gap: 0.75rem;
  }
  .footer-logos img {
    height: 28px;
  }
  .footer-logo-nextgeneration img {
    width: 250px;
  }
}

.attribution {
  font-size: 0.9rem;
}

.ckan-footer-logo {
  height: auto;
  width: auto;
}

.site-footer .attribution .ckan-footer-logo {
  background: none;
  display: inline-block;
  text-indent: initial;
  font-weight: bold;
}

/* ---------------------------------------------------------------------------- */

.module-content > .accordion > .accordion-item > .accordion-header .accordion-button  {
    padding-right: 2rem;
}

/* ------------------------------ index.html ---------------------------------------------- */

/* ---------------------------------------------------------------------------- */

/* Hero image section */

/* Hero Section Base */
.hero-section {
  position: relative;
  height: 100vh;
  height: calc(100vh - 98px); /* αφαιρούμε το ύψος του navbar */
  min-height: 600px;
  background: linear-gradient(
    rgba(0, 51, 117, 0.85),
    rgba(0, 102, 179, 0.90)
  ),
  url('/images/dataHero.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: 0; /* Αλλαγή από -20px σε 0 */
}

/* Hero Content */
.hero-content {
  position: relative;
  width: 100%;
  color: white;
  padding: 3rem;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Features */
.hero-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.feature-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Action Buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn.primary-btn {
  background: white;
  color: var(--color-primary);
}

.hero-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.btn-arrow {
  width: 24px;
  height: 24px;
  margin-left: 0.5rem;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.hero-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-left: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(-45deg);
  animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(0, 0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(-45deg) translate(20px, 20px);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero-features {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.9rem;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-feature {
    font-size: 1rem;
  }
  .hero-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ---------------------------------------------------------------------------- */

/* masthead */

.masthead {
  background-color: var(--color-primary);
  border-bottom: 3px solid var(--color-secondary);
  position: relative;
  top: auto;
  transition: all 0.3s ease;
}

/* ---------------------------------------------------------------------------- */

/* categories section */

/* Container section styles */
.data-categories {
  padding: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.data-categories h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-base-content);
}

/* Grid container */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* Card styles */
.category-card {
  background-color: var(--color-primary);
  border: 2px solid var(--color-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  position: relative;
  z-index: 2;
}

.category-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 64px;
  height: 64px;
  opacity: 0.6;
  fill: var(--color-secondary);
  transition: all 0.3s ease;
}

/* Hover effects */
.category-card:hover {
  transform: translateY(-5px);
  background-color: var(--color-primary-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
}

/* ---------------------------------------------------------------------------- */

/* NSIP ή ανοιχτά */

.access-rights-section {
    padding: 40px 0;
    background-color: #f3f6f9; /* Ανοιχτό μπλε-γκρι του gov.gr */
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.access-rights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 70, 160, 0.03) 0%, rgba(13, 70, 160, 0.01) 100%);
    z-index: 1;
}

.access-rights-section .container {
    position: relative;
    z-index: 2;
}

.access-rights-section h2 {
    margin-bottom: 30px;
    color: #2c389e; /* Σκούρο μπλε του gov.gr */
    font-weight: 600;
}

.access-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.access-rights-btn {
    padding: 15px 30px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.access-rights-btn i {
    margin-right: 10px;
}

.access-rights-btn-restricted {
    background-color: #2c389e; /* Σκούρο μπλε του gov.gr */
    border-color: #2c389e;
    color: #ffffff;
}

.access-rights-btn-restricted:hover {
    background-color: #1c2876; /* Σκουρότερη απόχρωση */
    border-color: #1c2876;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(44, 56, 158, 0.2);
}

.access-rights-btn-public {
    background-color: #0d77e4; /* Μπλε του gov.gr */
    border-color: #0d77e4;
    color: #ffffff;
}

.access-rights-btn-public:hover {
    background-color: #0b5bb1; /* Σκουρότερη απόχρωση */
    border-color: #0b5bb1;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(13, 119, 228, 0.2);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .access-rights-section {
    padding: 2rem 1rem;
  }

  .access-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .access-rights-btn {
    width: 100%;
    min-width: unset;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .access-rights-section {
    padding: 1.5rem 0.75rem;
  }

  .access-buttons {
    max-width: 280px;
  }

  .access-rights-btn {
    padding: 0.75rem 1.25rem;
  }

  .access-rights-btn i {
    font-size: 1.1rem;
  }
}

/* --------------------------------------------------------------- */

/* High Value Datasets Section */

.high-value-datasets-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.high-value-datasets-section h2 {
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.section-description {
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.high-value-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.feature-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item .feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.feature-item .feature-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-primary);
}

.feature-item h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.feature-item p {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .high-value-features {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    width: 100%;
    max-width: 400px;
  }
}

/* ---------------------------------------------------------------------------- */

/* datasets - data-services */

.data-section {
  padding: 2rem 0;
  text-align: center;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 78, 255, 0.35),
    transparent
  );
}

.section-title {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}

.data-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.data-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  width: 300px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.data-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: #0056b3;
}

.data-card h3 {
  margin: 0 0 1rem;
  color: #2c3e50;
}

.data-card p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------- */

/* Featured dataset views section */

.featured-dataset-views-section {
  padding: 3rem 0;
  background: #ffffff;
}

.featured-dataset-views-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

@media (max-width: 992px) {
  .featured-dataset-views-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .featured-dataset-views-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.featured-dataset-view-card {
  position: relative;
  padding: 0.25rem 0;
}

.featured-dataset-view-clickarea {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.featured-dataset-view-clickarea:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 6px;
  border-radius: 8px;
}

.featured-dataset-view-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary, #0d6efd);
  text-decoration: underline;
  margin-bottom: 0.35rem;
}

.featured-dataset-view-clickarea:hover ~ .featured-dataset-view-heading {
  color: #0b53c6;
}

.featured-dataset-view-summary {
  color: var(--color-gray-700);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.featured-dataset-view-summary p {
  margin: 0;
}

.featured-dataset-view-chart {
  width: 100%;
  height: 220px;
  overflow: hidden;
  pointer-events: none;
}

.featured-dataset-view-chart iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.featured-dataset-view-chart .basicChart {
  height: 100%;
}

.featured-dataset-view-dataset {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary, #0d6efd);
  text-decoration: underline;
}

.featured-dataset-view-clickarea:hover ~ .featured-dataset-view-dataset {
  color: #0b53c6;
}

/* portal numbers section */

.portal-numbers-section {
  padding: 3rem 0;
  background: #ffffff;
}

.portal-numbers-subtitle {
  margin: -1rem 0 2rem;
  color: #5c6b7a;
  font-size: 1rem;
}

.portal-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .portal-numbers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .portal-numbers-grid {
    grid-template-columns: 1fr;
  }
}

.portal-number-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 10px;
  padding: 1.75rem 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-number-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  text-decoration: none;
}

.portal-number-value {
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 500;
  color: var(--color-primary, #0d6efd);
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.portal-number-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary, #0d6efd);
}

/* ---------------------------------------------------------------------------- */

/* home stats section */

.home-stats-section {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.home-stats-section .section-title {
  text-align: center;
  color: var(--color-primary, #0d6efd);
}

.home-stats-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.home-stat-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.75rem 2.25rem;
  min-width: 220px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1 1 calc((100% - 2rem) / 2);
  max-width: calc((100% - 2rem) / 2);
}

@media (max-width: 1024px) {
  .home-stats-cards {
    gap: 1.25rem;
  }
  .home-stat-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.home-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.home-stat-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.home-stat-card-link:hover {
  text-decoration: none;
}

.home-stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.home-stat-label i {
  margin-right: 0.5rem;
}

.home-stat-frame {
  margin: 0.75rem 0 0.75rem;
}

.home-stat-chart {
  width: 100%;
  min-height: 220px;
}

.home-stat-description {
  font-size: 0.9rem;
  color: var(--color-gray-800);
}

.home-stat-preview {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.home-stat-donut {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-primary-light) calc(var(--datasets-percent, 0) * 1%),
    var(--color-secondary) 0
  );
  position: relative;
  flex-shrink: 0;
}

.home-stat-donut::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
}

.home-stat-legend {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--color-gray-800);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-datasets {
  background-color: var(--color-primary-light);
}

.legend-services {
  background-color: var(--color-secondary);
}

.home-stat-footer {
  margin-top: 0.5rem;
}

.home-stat-more {
  font-size: 0.85rem;
  color: var(--color-primary-light);
  text-decoration: none;
  font-weight: 500;
}

.home-stat-more:hover {
  text-decoration: underline;
}

.home-stats-iframe {
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------------------- */

/* showcase hero + selected apps */

.showcase-hero-section {
  position: relative;
  padding: 4rem 0;
  min-height: 320px;
  background: none;
  overflow: hidden;
}

.showcase-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
                    url('/images/showcases.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
  transform: translateZ(0);
  will-change: transform;
}

.showcase-hero-section .section-title {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0;
  text-align: right;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.showcase-selected-section {
  padding: 3rem 0 4rem;
  background-color: #ffffff;
}

.showcase-selected-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.showcase-selected-section .section-title {
  margin-bottom: 0;
  color: var(--color-primary);
}

.showcase-all-link {
  color: var(--color-primary-light);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.showcase-all-link:hover {
  text-decoration: underline;
}

.showcase-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.showcase-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: inherit;
  text-decoration: none;
}

.showcase-card .card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: row;
  justify-content: flex-start;
  padding: 0;
  height: auto;
  position: static;
  z-index: auto;
  min-width: 0;
}

.showcase-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 51, 117, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-thumb svg {
  width: 28px;
  height: 28px;
  fill: var(--color-primary);
  opacity: 0.9;
}

.showcase-card .card-text h3 {
  margin: 0 0 0.4rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.showcase-card .card-text p {
  margin: 0;
  color: var(--color-gray-800);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.showcase-card .card-arrow {
  width: 24px;
  height: 24px;
  margin-left: 1rem;
  flex-shrink: 0;
}

.showcase-card .card-arrow svg {
  width: 100%;
  height: 100%;
  fill: var(--color-primary);
  transition: transform 0.2s ease;
}

.showcase-card:hover .card-arrow svg {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .showcase-hero-section {
    min-height: 260px;
    padding: 3rem 0;
  }

  .showcase-hero-section::before {
    background-attachment: scroll;
  }

  .showcase-selected-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------------------------------- */

/* blog section */

.news-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
  position: relative;
}

.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(0, 102, 179, 0.2),
    transparent
  );
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.news-header-text {
  min-width: 260px;
}

.news-header .section-title {
  margin-bottom: 0.5rem;
}

.news-subtitle {
  margin: 0;
  color: var(--color-gray-700);
  font-size: 1rem;
  max-width: 720px;
}

.news-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.news-more-link:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

.news-more-arrow {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.news-more-link:hover .news-more-arrow {
  transform: translateX(4px);
}

.news-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  text-decoration: none;
  color: inherit;
}

.news-date-card {
  width: 92px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid rgba(13, 110, 253, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.news-date-top {
  position: relative;
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding: 1.15rem 0.5rem 0.75rem;
  font-weight: 700;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.news-date-top::before,
.news-date-top::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
  opacity: 0.9;
}

.news-date-top::before {
  left: 14px;
}

.news-date-top::after {
  right: 14px;
}

.news-date-day {
  font-size: 1.55rem;
  line-height: 1;
}

.news-date-month {
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.news-date-bottom {
  background: #ffffff;
  color: var(--color-gray-900);
  text-align: center;
  padding: 0.5rem 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
}

.news-item-content {
  min-width: 0;
  padding-top: 0.15rem;
}

.news-item-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

.news-item-summary {
  margin: 0.4rem 0 0;
  color: var(--color-gray-700);
  font-size: 0.95rem;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 992px) {
  .news-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .news-items {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------- */

/* guides section */

.guides-section {
  padding: 4rem 0;
  background-color: white;
  position: relative;
}

.guides-container {
  margin-top: 2rem;
}

.guides-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.guides-description {
  font-size: 1.2rem;
  color: var(--color-gray-700);
  margin-bottom: 1.5rem;
}

.view-all-guides {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.guide-arrow {
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.view-all-guides:hover {
  color: var(--color-primary-light);
  text-decoration: none;
}

.view-all-guides:hover .guide-arrow {
  transform: translateX(5px);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.guide-card {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.guide-icon {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  background-color: var(--color-primary);
}

.guide-icon svg {
  width: 100%;
  height: 100%;
  fill: white;
}

.guide-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--color-gray-900);
}

.guide-content p {
  margin: 0;
  color: var(--color-gray-700);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .guides-section {
    padding: 3rem 0;
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    padding: 1.25rem;
  }
}

/* ---------------------------------------------------------------------------- */

/* Mητρώα DGA section */

.dga-services-section {
  padding: 4rem 0;
  background: linear-gradient(135deg,
    rgba(0, 51, 117, 0.03) 0%,
    rgba(0, 102, 179, 0.02) 100%
  );
}

.dga-services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.dga-services-intro p {
  font-size: 1.2rem;
  color: var(--color-gray-700);
  margin-bottom: 0;
}

.dga-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.dga-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dga-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
}

.dga-card .card-header {
  background: var(--color-primary);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dga-card .card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem;
  margin: 0;
  flex-shrink: 0;
}

.dga-card .card-icon svg {
  width: 100%;
  height: 100%;
  fill: white;
}

.dga-card .card-header h3 {
  color: white;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.dga-card .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dga-card .card-content p {
  color: var(--color-gray-700);
  margin: 0 0 1.5rem;
  line-height: 1.5;
  font-size: 1rem;
}

.dga-card .card-action {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 500;
  margin-top: auto;
}

.dga-card .action-arrow {
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.dga-card:hover .action-arrow {
  transform: translateX(5px);
}

/* Specific styles for each card type */
.dga-card[href*="data-intermediation"] .card-header {
  background: linear-gradient(135deg, #003775 0%, #0066b3 100%);
}

.dga-card[href*="data-altruism"] .card-header {
  background: linear-gradient(135deg, #005694 0%, #0082cc 100%);
}

@media (max-width: 992px) {
  .dga-cards {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .dga-services-section {
    padding: 3rem 0;
  }

  .dga-card .card-header {
    padding: 1.25rem;
  }

  .dga-card .card-content {
    padding: 1.25rem;
  }

  .dga-card .card-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .dga-services-intro p {
    font-size: 1.1rem;
  }

  .dga-card .card-header h3 {
    font-size: 1.1rem;
  }
}

/* ---------------------------------------------------------------------------- */

/* Styles για κουμπί Μετάφρασης Πεδίων*/
.govgr-translate-button {
    background-color: #0a53be; /* gov.gr primary blue */
    color: white;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--bs-font-sans-serif);
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .govgr-translate:hover {
    background-color: #0846a0;
  }

  .govgr-translate:focus {
    outline: 3px solid #aac9f0;
    outline-offset: 2px;
  }

  .showcase-header .badge {
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    line-height: 1.2;
  }
  .showcase-header .badge-success { background-color: #28a745; }
  .showcase-header .badge-warning { background-color: #ffc107; color: black; }
  .showcase-header .badge-danger  { background-color: #dc3545; }
  .showcase-header .badge-secondary { background-color: #6c757d; }

.note {
  background-color: #e9f1f8;
  border-left: 6px solid #003366;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--bs-font-sans-serif);
  color: #003366;
  font-size: 1rem;
  line-height: 1.6;
}


/* ---------------------------------------------------------------------------- */

/* stats */

.module-narrow .nav-item.active > a:before,
.module-narrow .nav-aside li.active a:before {
  height: 100%;
}

.module-narrow .nav-item.active > a, .module-narrow .nav-aside li.active a {
  background-color: var(--color-primary);
}

.module-narrow .nav-item.active > a:hover, .module-narrow .nav-aside li.active a:hover {
  background-color: var(--color-primary);
}

/* ---------------------------------------------------------------------------- */

/* total-orgs-counter stats */

.total-orgs-counter {
  text-align: center;
  margin: 20px 0 30px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.counter-box.total {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
}

.counter-box.with-type {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}

.counter-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.counter-label {
  font-size: 1em;
  color: #546e7a;
  margin-top: 5px;
  text-align: center;
}

.percentage {
  font-size: 0.9em;
  color: #1976d2;
  margin-top: 3px;
  font-weight: 500;
}

@keyframes count-up {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    color: #3498db;
  }
  100% {
    transform: scale(1);
  }
}

.counter-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.counter-box:hover .counter-number {
  animation: count-up 1s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
  }

  .counter-box {
    padding: 15px 20px;
  }

  .counter-number {
    font-size: 2em;
  }
}

/* ---------------------------------------------------------------------------- */

/* Διόρθωση προβλήματος μενού στην ελληνική γλώσσα */
.navbar-nav > li > a {
  white-space: nowrap;
  width: auto;
  display: inline-block;
}

/* Λογότυπο header */
.navbar-left {
  display: flex;
  align-items: center;
  position: relative;
  flex-wrap: nowrap;
}

.navbar-left .logo {
  display: block;
  position: relative;
  z-index: 2;
}

.navbar-left .logo img {
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

@media (min-width: 992px) {
  /* Logo sized explicitly so flex layout matches visual bounds */
  .masthead .navbar-left .logo img {
    height: 54px;
    max-height: none;
    width: auto;
    transform: none;
  }
}

@media (max-width: 991px) {
  .navbar-left .logo img {
    height: 56px;
  }
}

/* Secretariat logo block */
.header-secretariat-block {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-secretariat-logo {
  height: 49px;
  width: auto;
  display: block;
  flex-shrink: 0;
  position: relative;
  top: -10px;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .header-secretariat-logo {
    height: 32px;
  }
}

@media (max-width: 991px) {
  .header-secretariat-logo {
    height: 32px;
  }
}

@media (max-width: 575px) {
  .header-secretariat-logo {
    height: 26px;
  }
}

@media (max-width: 301px) {
  .header-secretariat-block {
    display: none;
  }
}

/* ---------------------------------------------------------------------------- */

.controls .select2-container {
    max-width: 100%;
}

.margin-top {
    margin-top: 10px;
}

/* ---------------------------------------------------------------------------- */

.table-striped > tbody > tr:nth-of-type(odd) > *, .td-resource-read {
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------- */
/* user list */

.user-list-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-card {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.user-card:hover {
  background-color: #f8f9fa;
}

.user-card a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.user-card a:hover {
  color: #007bff;
}

.user-card {
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  margin-bottom: 2px;
}

/* ---------------------------------------------------------------------------- */
/* Διόρθωση overflow στον πίνακα σφαλμάτων harvest */

table.harvest-error-list tr td div.error {
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------- */

.btn.btn-danger.purge-all {
  margin-bottom: 5px;
}

/* ---------------------------------------------------------------------------- */

/* Πρόταση νέας αρχικής σελίδας */

.homepage-proposal {
  background: #f4f7fc;
}

.homepage-proposal .container {
  max-width: 1200px;
}

.proposal-hero {
  background: #003375;
  color: #ffffff;
  padding: 4.5rem 0 6rem;
  text-align: center;
}

.proposal-hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.proposal-hero h1 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
}

.proposal-hero-lead {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.proposal-hero-search {
  margin-top: 2.25rem;
  width: 70%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.proposal-hero-search-group {
  position: relative;
  display: flex;
  align-items: center;
}

.proposal-hero-search-icon {
  position: absolute;
  left: 1rem;
  color: #0f4a94;
  font-size: 1.05rem;
  pointer-events: none;
}

.proposal-hero-search-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #ffffff;
  padding: 0.95rem 3.25rem 0.95rem 2.75rem;
  font-size: 1.05rem;
  color: #1f365c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.proposal-hero-search-input::placeholder {
  color: #6b7e9c;
}

.proposal-hero-search-input:focus {
  outline: none;
  border-color: #77aaff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.proposal-hero-search-submit {
  position: absolute;
  right: 0.4rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: #0f4a94;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.proposal-hero-search-submit:hover,
.proposal-hero-search-submit:focus {
  background: #0d4285;
  transform: translateY(-1px);
}

.proposal-main-actions {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.proposal-main-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  color: #1f365c;
  background: #f8fafc;
  border: 1px solid #dbe5f1;
  text-align: left;
  transition: all 0.2s ease;
}

.proposal-main-btn:hover,
.proposal-main-btn:focus {
  text-decoration: none;
  color: #1f365c;
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.proposal-main-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  color: #0f4a94;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.proposal-main-card-content {
  display: block;
  min-width: 0;
}

.proposal-main-card-content strong {
  display: block;
  font-size: 1.05rem;
  color: #1f365c;
  margin-bottom: 0.25rem;
}

.proposal-main-card-content small {
  display: block;
  color: #4e6182;
  font-size: 0.8rem;
  line-height: 1.25;
}

.proposal-key-stats {
  margin-top: -2.25rem;
  position: relative;
  z-index: 2;
}

.proposal-key-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proposal-key-stat-card {
  display: block;
  height: fit-content;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  padding: 1rem 1.05rem;
  color: #0b2f66;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.proposal-key-stat-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.proposal-key-stat-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.proposal-key-stat-meta {
  min-width: 0;
}

.proposal-key-stat-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.proposal-key-stat-titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
}

.proposal-key-stat-titleline--stacked {
  padding-top: 0.35rem;
  border-top: 1px solid #d9e3f0;
}

.proposal-key-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eaf2ff;
  color: #0f4a94;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 74, 148, 0.08);
}

.proposal-key-stat-icon i {
  font-size: 1.05rem;
}

.proposal-key-stat-value {
  font-size: 2rem;
  line-height: 1;
  color: #003375;
  font-weight: 700;
}

.proposal-key-stat-label {
  display: inline;
  font-size: 0.98rem;
  line-height: 1.2;
  color: #223a60;
  font-weight: 600;
  position: relative;
  top: -0.12rem;
}

.proposal-key-stat-desc {
  display: block;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #4e6182;
  font-weight: 400;
}

.proposal-discovery {
  padding: 2rem 0 3rem;
}

.proposal-discovery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.proposal-theme-panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dde6f3;
  padding: 1.25rem;
}

.proposal-theme-panel h2 {
  margin: 0 0 1rem;
  color: #003375;
  font-size: 1.35rem;
}

.proposal-theme-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.proposal-theme-link {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  background: #0f4a94;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.72rem 0.78rem;
  min-height: 52px;
  font-size: 0.92rem;
  line-height: 1.2;
  border: 1px solid #0f4a94;
}

.proposal-theme-link:hover,
.proposal-theme-link:focus {
  text-decoration: none;
  color: #ffffff;
  background: #003375;
}

.proposal-theme-link .group-icon {
  width: 24px;
  mask-size: 100%;
  height: 24px;
  mask-position: 50%;
  mask-repeat: no-repeat;
  background-color: currentColor;
}

.proposal-theme-environment-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.proposal-theme-environment-icon path {
  fill: currentColor;
}

.proposal-theme-environment-icon .proposal-theme-environment-vein {
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proposal-theme-currency-icon {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  font-size: 1.16rem;
  font-weight: 700;
  opacity: 0.95;
}

.proposal-theme-link > span:not(.proposal-theme-currency-icon) {
  flex: 1 1 auto;
}

.proposal-theme-link-ai {
  cursor: default;
  background: #f08b2b;
  border-color: #f08b2b;
}

.proposal-theme-link-ai:hover,
.proposal-theme-link-ai:focus {
  background: #de7f24;
}

.proposal-theme-link-ai svg {
  color: #111111;
  fill: none;
}

.proposal-ai-chip-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.proposal-ai-chip-shell {
  fill: rgba(17, 17, 17, 0.12);
  stroke: #111111;
  stroke-width: 1.45;
}

.proposal-ai-chip-core {
  fill: #111111;
  stroke: none;
  opacity: 0.93;
}

.proposal-ai-chip-pin,
.proposal-ai-chip-trace {
  fill: none;
  stroke: #111111;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proposal-ai-chip-pin {
  stroke-width: 1.45;
}

.proposal-ai-chip-trace {
  stroke-width: 1.3;
}

.proposal-ai-chip-node {
  display: none;
}

.proposal-coming-soon {
  position: absolute;
  right: 8px;
  bottom: -24px;
  background: #111111;
  color: #ffffff;
  font-size: 0.78rem;
  font-style: normal;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  display: none;
  pointer-events: none;
  white-space: nowrap;
}

.proposal-theme-link-ai:hover .proposal-coming-soon,
.proposal-theme-link-ai:focus .proposal-coming-soon {
  display: inline-block;
}

.proposal-hvd-panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dde6f3;
  padding: 1.5rem;
}

.proposal-hvd-panel h2 {
  margin: 0 0 0.9rem;
  color: #003375;
  font-size: 1.35rem;
}

.proposal-hvd-panel p {
  margin: 0 0 0.9rem;
  color: #314866;
}

.proposal-hvd-intro {
  margin-bottom: 1rem;
}

.proposal-hvd-features {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.proposal-hvd-feature {
  background: #ffffff;
  border: 1px solid #e2eaf6;
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.proposal-hvd-feature p {
  margin: 0;
  color: #4d5f79;
  font-size: 0.92rem;
  line-height: 1.35;
}

.proposal-hvd-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #edf3ff;
  color: #0f4a94;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.proposal-hvd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #003375;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.66rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.proposal-hvd-btn:hover,
.proposal-hvd-btn:focus {
  text-decoration: none;
  color: #ffffff;
  background: #0f4a94;
}

.proposal-showcases,
.proposal-news,
.proposal-dga,
.proposal-guides {
  padding: 2.5rem 0;
}

.proposal-snapshot {
  padding: 2.5rem 0;
}

.proposal-snapshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.proposal-snapshot-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.proposal-snapshot-stats {
  background: #ffffff;
  border: 1px solid #dde6f3;
  border-radius: 12px;
  padding: 1.2rem;
}

.proposal-snapshot-showcases {
  padding-left: 1.25rem;
}

.proposal-snapshot-showcases .proposal-section-head {
  margin-bottom: 1.05rem;
}

.proposal-snapshot-lead {
  margin: 0 0 1rem;
  color: #4a5f82;
}

.proposal-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.proposal-portal-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  color: inherit;
}

.proposal-portal-card:hover,
.proposal-portal-card:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.proposal-portal-value {
  display: block;
  font-size: 1.55rem;
  line-height: 1.05;
  color: #003375;
}

.proposal-portal-label {
  display: block;
  margin-top: 0.35rem;
  color: #4a5f82;
  font-weight: 600;
}

.proposal-snapshot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  width: 100%;
  background: #003375;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.66rem 0.9rem;
  font-weight: 600;
}

.proposal-snapshot-btn:hover,
.proposal-snapshot-btn:focus {
  text-decoration: none;
  color: #ffffff;
  background: #0f4a94;
}

.proposal-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.proposal-section-head h2 {
  margin: 0;
  color: #003375;
}

.proposal-section-head a {
  color: #0f4a94;
  font-weight: 600;
  text-decoration: none;
}

.proposal-section-head a:hover {
  text-decoration: underline;
}

.proposal-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.proposal-showcase-grid.proposal-showcase-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proposal-showcase-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #dde6f3;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  text-decoration: none;
  color: inherit;
}

.proposal-showcase-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}

.proposal-showcase-thumb {
  width: 80px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proposal-showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proposal-showcase-body {
  min-width: 0;
  flex: 1 1 auto;
}

.proposal-showcase-body h3 {
  margin: 0 0 0.35rem;
  color: #003375;
  font-size: 1rem;
}

.proposal-showcase-body p {
  margin: 0;
  color: #4a5f82;
  font-size: 0.85rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.proposal-showcase-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #e9f0ff;
  color: #003375;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.proposal-showcase-meta {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: #5a6f93;
  font-size: 0.78rem;
  font-weight: 600;
}

.proposal-showcase-owner {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.proposal-showcase-views i {
  margin-right: 0.25rem;
  opacity: 0.85;
}

.proposal-snapshot-footer {
  margin-top: 0.9rem;
}

.proposal-snapshot-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #0f4a94;
  text-decoration: none;
}

.proposal-snapshot-more:hover,
.proposal-snapshot-more:focus {
  text-decoration: underline;
}

.proposal-reuse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.proposal-reuse-grid--single {
  grid-template-columns: 1fr;
}

.proposal-reuse-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  color: inherit;
}

.proposal-reuse-card:hover,
.proposal-reuse-card:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.proposal-reuse-value {
  display: block;
  font-size: 1.45rem;
  line-height: 1.05;
  color: #003375;
}

.proposal-reuse-label {
  display: block;
  margin-top: 0.35rem;
  color: #4a5f82;
  font-weight: 700;
}

.proposal-reuse-spark {
  margin-top: 0.7rem;
  height: 48px;
  border-radius: 8px;
  border: 1px dashed #d8e4f5;
  background:
    linear-gradient(180deg, rgba(0, 51, 117, 0.06) 0%, rgba(0, 51, 117, 0.0) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      rgba(0, 51, 117, 0.06) 10px,
      rgba(0, 51, 117, 0.06) 11px
    );
}

.proposal-reuse-spark[data-module="common-stats-charts"],
.proposal-reuse-spark[data-common-chart-init="1"] {
  border-style: solid;
  background: transparent;
}

.proposal-reuse-range {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  color: rgba(74, 95, 130, 0.9);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.proposal-guides-card {
  background: #0f4a94;
  border-radius: 12px;
  color: #ffffff;
  padding: 1.5rem;
}

.proposal-guides-card h2 {
  margin: 0 0 0.5rem;
  color: #ffffff;
}

.proposal-guides-card p {
  margin: 0 0 1rem;
  opacity: 0.95;
}

.proposal-guides-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.proposal-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-decoration: none;
  color: #233859;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  min-height: 86px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.proposal-guide-item:hover,
.proposal-guide-item:focus {
  text-decoration: none;
  background: #f4f8ff;
  color: #1f365c;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.proposal-guide-item:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.proposal-guide-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #0f4a94;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
}

.proposal-guide-item-content {
  display: block;
}

.proposal-guide-item-content strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
  line-height: 1.2;
}

.proposal-guide-item-content small {
  display: block;
  color: #5b6f8f;
  font-size: 0.8rem;
  line-height: 1.3;
}

.proposal-vision {
  background: var(--color-primary);
  color: #ffffff;
  padding: 3rem 0;
}

.proposal-vision-kicker {
  margin: 0 0 0.35rem;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.15;
}

.proposal-vision h2 {
  color: #ffffff;
  margin: 0 0 1.1rem;
  font-size: 2.65rem;
  line-height: 1.05;
  max-width: 850px;
}

.proposal-vision p {
  margin: 0 0 1rem;
  max-width: 860px;
  line-height: 1.6;
  font-size: 1.04rem;
}

.proposal-vision-objectives {
  margin: 1.2rem 0 0.6rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.proposal-vision-pillars {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 1120px;
}

.proposal-vision-pillar {
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  padding-left: 0.9rem;
  min-height: 100%;
}

.proposal-vision-pillar-title,
.proposal-vision-pillar-text {
  color: #ffffff;
}

.proposal-vision-pillar-title {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.proposal-vision-pillar-text {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.proposal-vision-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.proposal-vision-btn {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 3px;
  padding: 0.34rem 0.6rem;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
  border: 1px solid #ffffff;
}

.proposal-vision-btn:hover,
.proposal-vision-btn:focus {
  text-decoration: none;
  color: #000000;
  background: #f2f2f2;
}

.proposal-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proposal-news-card {
  display: flex;
  gap: 0.9rem;
  background: #ffffff;
  border: 1px solid #dde6f3;
  border-radius: 10px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  overflow: hidden;
}

.proposal-news-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}

.proposal-news-date {
  position: relative;
  background: #ffffff;
  color: #003375;
  border: 1px solid #dde6f3;
  border-radius: 10px;
  width: 64px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding-top: 16px;
}

.proposal-news-date > * {
  position: relative;
  z-index: 2;
}

.proposal-news-date::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 18px;
  background: #003375;
  z-index: 0;
}

.proposal-news-date::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 18px;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 22px 0 0 #ffffff;
  opacity: 0.95;
  z-index: 1;
}

.proposal-news-day {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.proposal-news-month {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #4a5f82;
  letter-spacing: 0.02em;
}

.proposal-news-date--single {
  padding-top: 0;
}

.proposal-news-date--single::before,
.proposal-news-date--single::after {
  display: none;
}

.proposal-news-date--single .proposal-news-day {
  font-size: 0.95rem;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
  padding: 0 0.35rem;
}

.proposal-news-content {
  min-width: 0;
}

.proposal-news-content h3 {
  margin: 0 0 0.4rem;
  color: #003375;
  font-size: 1rem;
  overflow-wrap: break-word;
}

.proposal-news-content p {
  margin: 0;
  color: #4a5f82;
  font-size: 0.9rem;
  overflow-wrap: break-word;
}

.proposal-dga h2 {
  margin: 0 0 0.35rem;
  color: #003375;
  text-align: center;
}

.proposal-dga-lead {
  margin: 0 auto 1.75rem;
  max-width: 720px;
  color: #6b7f9b;
  text-align: center;
  font-size: 0.95rem;
}

.proposal-dga-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.proposal-dga-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dde6f3;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.proposal-dga-card:hover,
.proposal-dga-card:focus {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.proposal-dga-card:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 4px;
}

.proposal-dga-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #003375;
  color: #ffffff;
}

.proposal-dga-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proposal-dga-card-icon i {
  color: #ffffff;
  font-size: 1.05rem;
}

.proposal-dga-card-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.2;
}

.proposal-dga-card-body {
  padding: 1rem;
}

.proposal-dga-card-body p {
  margin: 0;
  color: #4a5f82;
  font-size: 0.9rem;
}

.proposal-dga-card-cta {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #0f4a94;
  font-weight: 700;
  font-size: 0.82rem;
}

.proposal-dga-card-cta i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.proposal-dga-card:hover .proposal-dga-card-cta i,
.proposal-dga-card:focus .proposal-dga-card-cta i {
  transform: translateX(4px);
}

.proposal-empty-state {
  margin: 0;
  color: #4a5f82;
}

@media (max-width: 1024px) {
  .proposal-showcase-grid,
  .proposal-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .proposal-discovery-grid {
    grid-template-columns: 1fr;
  }

  .proposal-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .proposal-snapshot-showcases {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .proposal-hero {
    padding: 3rem 0 5rem;
  }

  .proposal-hero h1 {
    font-size: 2rem;
  }

  .proposal-hero-lead {
    font-size: 1.05rem;
  }

  .proposal-hero-search {
    width: 100%;
  }

  .proposal-hero-search-input {
    font-size: 1rem;
    padding: 0.85rem 3.1rem 0.85rem 2.6rem;
  }

  .proposal-hero-search-submit {
    width: 42px;
    height: 42px;
  }

  .proposal-key-stats-grid,
  .proposal-showcase-grid,
  .proposal-news-grid,
  .proposal-dga-grid,
  .proposal-theme-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .proposal-portal-grid {
    grid-template-columns: 1fr;
  }

  .proposal-main-actions,
  .proposal-guides-actions {
    grid-template-columns: 1fr;
  }

  .proposal-main-btn {
    width: 100%;
  }

  .proposal-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .proposal-vision-kicker {
    font-size: 1.5rem;
  }

  .proposal-vision h2 {
    font-size: 2rem;
  }

  .proposal-vision-pillars {
    grid-template-columns: 1fr;
  }

  .proposal-vision-pillar-title,
  .proposal-vision-pillar-text {
    font-size: 1.2rem;
  }

  .proposal-vision-actions {
    transform: none;
  }

  .proposal-showcase-grid.proposal-showcase-grid-compact {
    grid-template-columns: 1fr;
  }

  .proposal-showcase-card {
    flex-direction: column;
    gap: 0.5rem;
  }

  .proposal-showcase-thumb {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    order: -1;
  }

  .proposal-showcase-body h3 {
    overflow-wrap: break-word;
  }
}

.organizations-index {
  margin-top: 1rem;
}

.organizations-index .organizations-index-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.organizations-index .organizations-index-item {
  margin: 0;
}

.organizations-index .organizations-index-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 290px;
  border: 1px solid #d7e1ee;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(9, 31, 67, 0.06);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.organizations-index .organizations-index-card:hover,
.organizations-index .organizations-index-card:focus {
  transform: translateY(-2px);
  border-color: #b9cbe4;
  box-shadow: 0 8px 24px rgba(9, 31, 67, 0.11);
}

.organizations-index .organizations-index-card-top {
  background: #eef5ff;
  padding: 0.9rem 0.9rem 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 86px;
}

.organizations-index .organizations-index-logo-wrap {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  background: #ffffff;
  border: 1px solid rgba(9, 31, 67, 0.12);
  border-radius: 10px;
}

.organizations-index .organizations-index-logo {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.organizations-index .organizations-index-logo-fallback {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0f4a94;
  font-size: 1.25rem;
  font-weight: 700;
}

.organizations-index .organizations-index-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem 1rem;
  flex: 1 1 auto;
}

.organizations-index .organizations-index-title {
  margin: 0;
  color: #12274a;
  font-size: 1.05rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.organizations-index .organizations-index-submitter {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  color: rgba(18, 39, 74, 0.78);
  font-size: 0.89rem;
  line-height: 1.4;
  min-width: 0;
  min-height: 1.25rem;
  overflow: hidden;
}

.organizations-index .organizations-index-submitter-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.organizations-index .organizations-index-submitter-item i {
  flex: 0 0 auto;
  color: rgba(15, 74, 148, 0.72);
  font-size: 0.9rem;
}

.organizations-index .organizations-index-submitter-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizations-index .organizations-index-submitter-sep {
  flex: 0 0 auto;
  color: rgba(18, 39, 74, 0.42);
}

.organizations-index .organizations-index-description {
  margin: 0.1rem 0 0;
  color: rgba(18, 39, 74, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.organizations-index .organizations-index-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.organizations-index .organizations-index-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(15, 74, 148, 0.95);
  font-size: 0.9rem;
  white-space: nowrap;
}

.organizations-index .organizations-index-stat i {
  font-size: 0.95rem;
  color: rgba(15, 74, 148, 0.75);
}

.organizations-index .organizations-index-stat-value {
  font-weight: 700;
  color: #173460;
}

.organizations-index .organizations-index-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 992px) {
  .organizations-index .organizations-index-stats {
    gap: 0.6rem;
  }
}

@media (max-width: 576px) {
  .organizations-index .organizations-index-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .organizations-index .organizations-index-stats {
    gap: 0.7rem;
  }
}

.showcases-index .organizations-index-card {
  min-height: 365px;
}

.showcases-index .organizations-index-card-top {
  padding: 0;
  min-height: 160px;
}

.showcases-index .organizations-index-card-top img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.showcases-index .organizations-index-card-top .organizations-index-logo-fallback {
  width: 100%;
  height: 160px;
  border-radius: 12px 12px 0 0;
  background: #eef5ff;
  font-size: 3rem;
}

@media (max-width: 576px) {
  .showcases-index .organizations-index-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SHOWCASE INDEX – card image covers full top area
   ============================================================ */

/* ---- Top area: image fills the entire space ---- */
.showcases-index .organizations-index-card-top {
  padding: 0;
  min-height: 140px;
  height: 140px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Cover image ---- */
.showcases-index .showcase-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Fallback letter when no image ---- */
.showcases-index .showcase-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef5ff;
  color: #0f4a94;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
  .showcases-index .organizations-index-card-top {
    min-height: 120px;
    height: 120px;
  }
}

/* ============================================================ */

.masthead .navbar .logo img {
  max-height: 40px; /* desktop override: see @media (min-width: 992px) above */
}

@media (min-width: 992px) {
  .masthead .navbar .logo img {
    max-height: none;
  }
}

.masthead .logo img {
  position: relative;
  top: -10px; /* αρνητικό top για να ανέβει πάνω στο account-masthead */
}

/* ============================================================ */

/* Truncated subfield values (bbox, geom, centroid) */
.subfield-truncated-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  cursor: help;
}

.subfield-truncated-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom CSS-only tooltip — no character limit, lives OUTSIDE the overflow:hidden element */
.subfield-truncated-wrapper .subfield-tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 1000;
  min-width: 250px;
  max-width: 500px;
  padding: 10px 14px;
  background-color: #333;
  color: #fff;
  font-size: 0.85em;
  line-height: 1.4;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-all;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  user-select: text;
  cursor: text;
}

/* Arrow */
.subfield-truncated-wrapper .subfield-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Show on hover — hover on the WRAPPER, not the overflow:hidden child */
.subfield-truncated-wrapper:hover .subfield-tooltip-text,
.subfield-truncated-wrapper .subfield-tooltip-text:hover {
  visibility: visible;
  opacity: 1;
}

/* ============================================================ */

.resource-view img[src*="navigateToGraph"] {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 992px) {
  .resource-view img[src*="navigateToGraph"] {
    width: 40%;
    transition: width 0.25s ease;
  }

  .resource-view img[src*="navigateToGraph"]:hover {
    width: 65%;
  }
}

/* ============================================================
   Cookie Consent Banner
   ============================================================ */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background-color: #ffffff;
  border-top: 3px solid var(--color-primary, #003476);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-consent-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1 1 auto;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.cookie-consent-text p {
  margin: 0;
}

.cookie-consent-policy-link {
  text-decoration: underline;
  margin-left: 0.3em;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-consent-btn-accept {
  background-color: var(--color-primary, #003476);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  cursor: pointer;
}

.cookie-consent-btn-accept:hover,
.cookie-consent-btn-accept:focus {
  background-color: var(--color-primary-light, #0056b3);
  color: #fff;
}

.cookie-consent-btn-decline {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  cursor: pointer;
}

.cookie-consent-btn-decline:hover,
.cookie-consent-btn-decline:focus {
  background-color: #e9ecef;
}

.cookie-consent-btn-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #6c757d;
  padding: 0.25rem 0.5rem;
}

.cookie-consent-btn-close:hover,
.cookie-consent-btn-close:focus {
  color: #212529;
}

@media (max-width: 576px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent-actions {
    justify-content: center;
  }
}

/* ============================================================ */

.context-info .description {
  word-break: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: none;
}

/* ============================================================ */

.dataset-map-section {
  margin-bottom: 2rem;
}

/* ============================================================ */
