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

  --secondary-button: #b3b2b5;

  --footer-color: #ecebec;
}

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

/* Αφαίρεση πλαισίου κύριας περιοχής 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;
    padding: 5px;
}

.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;
}

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

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

/* 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;
}

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

/* 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;
}

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

#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: 6px solid var(--color-secondary)
}

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

.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: transparent;
    box-shadow: none;
}

.masthead .main-navbar .dropdown-menu .dropdown-item {
    /* Στοιχεία dropdown με ίδιο φόντο με την κεφαλίδα */
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

.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: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e9ecef;
}

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

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

.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: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.footer-logos {
  display: flex;
  align-items: center;
}

.attribution {
  font-size: 0.9rem;
}

.ckan-footer-logo {
  text-indent: -999em;
  height: 21px;
  width: 96px;
  margin: 0 0 0 8px;
}

.site-footer .attribution .ckan-footer-logo {
  display: inline-block;
}

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

a.service-name {
    padding: 0.6rem 0.9rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
}

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

.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;
  }
}

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

/* sticky */

.masthead {
  background-color: var(--color-primary);
  border-bottom: 6px solid var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: all 0.3s ease;
}

/* Απενεργοποίηση sticky σε μικρές οθόνες */
@media (max-width: 768px) {
  .masthead {
    position: relative; /* Επαναφορά σε κανονική ροή */
    top: auto;
  }

  .masthead.scrolled {
    box-shadow: none;
  }
}

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

/* 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: 'Arial', 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: 'Open Sans', Arial, 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;
}

/* Ευθυγράμμιση site-name δίπλα στο λογότυπο */
.navbar-left {
  display: flex;
  align-items: center; /* κάθετη στοίχιση στο κέντρο */
}

.navbar-left .logo img {
  height: 40px; /* ή ό,τι ταιριάζει */
}

.navbar-left .service-name {
  margin-left: 8px;
  line-height: 1;
  display: flex;
  align-items: center;
}

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

.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;
}

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


/* 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;
}

.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;
  }
}

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

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

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

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

.showcases-index .organizations-index-submitter,
.showcases-index .organizations-index-stats {
  display: none;
}

.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;
  }
}

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