.dimotis-wrapper {
  background-color: #122f67;
}

/* Αντικαθιστά το Bootstrap .container -- ίδια breakpoints/max-widths. */
.dimotis-container {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding-inline: 0.75rem;
  padding-block: 1.5rem;
}

@media screen and (min-width: 768px) {
  .dimotis-container {
    max-width: 720px;
  }
}

@media screen and (min-width: 992px) {
  .dimotis-container {
    max-width: 960px;
    padding-block: 3rem;
  }
}

@media screen and (min-width: 1200px) {
  .dimotis-container {
    max-width: 1140px;
  }
}

@media screen and (min-width: 1400px) {
  .dimotis-container {
    max-width: 1320px;
  }
}

.dimotis-row-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

@media screen and (min-width: 992px) {
  .dimotis-row-1 {
    flex-direction: row;
    gap: 0;
  }
}

.dimotis-msg {
  max-width: 400px;
  text-align: center;
}

@media screen and (min-width: 992px) {
  .dimotis-msg {
    text-align: left;
  }
}

#dimotis .dimotis-msg h1 {
  color: #fff;
}

#dimotis .dimotis-msg p {
  margin: 0;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

@media screen and (min-width: 992px) {
  #dimotis .dimotis-msg p {
    font-size: 18px;
  }
}

.dimotis-grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: flex-end;
}

/* Σε desktop η 1η σειρά (δίπλα στο κείμενο) σπρώχνεται προς τα δεξιά.
   Η 2η σειρά (dimotis-grid-row-2) μένει πάντα κεντραρισμένη. */
@media screen and (min-width: 992px) {
  .dimotis-row-1 .dimotis-grid-row {
    justify-content: flex-end;
  }
}

.dimotis-grid-row-2 {
  margin-top: 1.25rem;
}

/* Σε mobile τα κουτάκια μπαίνουν το ένα κάτω από το άλλο, σε πλήρες πλάτος. */
@media screen and (max-width: 767px) {
  .dimotis-grid-row {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
  }

  a.dimotis-card {
    width: 100% !important;
  }
}

.dimotis-card-wrapper {
  border-radius: 16px;
  padding: 0.5rem;
  background: #fff;
}
.dimotis-card-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

a.dimotis-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 150px;
  min-height: 150px;
  padding: 1.25rem 1rem;
  background-color: #fff;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #122f67;
  transition:
    transform 200ms ease-in-out,
    box-shadow 200ms ease-in-out;
}

/* a.dimotis-card:not(.disabled-link):hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
} */

a.dimotis-card.disabled-link {
  cursor: default;
}

.dimotis-card-icon {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 48px;
}

.dimotis-card-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 200ms ease-in-out;
}

.dimotis-card-icon .icon-hover {
  opacity: 0;
}

a.dimotis-card:hover .icon-default {
  opacity: 0;
}

a.dimotis-card:hover .icon-hover {
  opacity: 1;
}

.dimotis-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f084b;
  line-height: 1.3;
}
