/* ============================= */
/*        TEAM GRID              */
/* ============================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  justify-items: center;
  align-items: start;
  padding: 20px 0;
}

/* ============================= */
/*        TEAM CARD              */
/* ============================= */
.team-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.team-card img {
  width: 100%;
  aspect-ratio: 7 / 8;
  object-fit: cover;
  display: block;
}

/* ============================= */
/*    TITLE BACKGROUND AREA      */
/* ============================= */
.team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  backdrop-filter: blur(6px);
  color: #fff !important;
  transition: background 0.3s ease, color 0.3s ease;
}

.team-info h4,
.team-info p {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Hover effect κάρτας */
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* ============================= */
/*        LIGHT MODE (Default)   */
/* ============================= */
body[data-sppb-color-mode="Default"] .team-card {
  background: #f8f8f8;
}

body[data-sppb-color-mode="Default"] .team-info {
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 100%);
  color: #fff !important;
}

body[data-sppb-color-mode="Default"] .team-card:hover .team-info {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  color: #fff !important;
}

/* ============================= */
/*        DARK MODE              */
/* ============================= */
body[data-sppb-color-mode="Dark"] .team-card {
  background: #1f1f1f;
}

body[data-sppb-color-mode="Dark"] .team-info {
  background: linear-gradient(to top, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 100%);
  color: #fff !important;
}

body[data-sppb-color-mode="Dark"] .team-card:hover .team-info {
  background: linear-gradient(to top, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 100%);
  color: #fff !important;
}

/* ============================= */
/*        RESPONSIVE             */
/* ============================= */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
/* ================================
   EDocman Dark / Light Fix (by class)
   ================================ */

/* LIGHT MODE */
body.light-active #edocman-documents .edocman-document {
  background: #ffffff !important;
  color: #222 !important;
  border: 1px solid #ddd !important;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

body.light-active #edocman-documents .edocman-document a {
  color: #2563eb !important;
}

/* DARK MODE */
body.dark-active #edocman-documents .edocman-document {
  background: #1e1e22 !important;
  color: #f2f2f2 !important;
  border: 1px solid #2a2f34 !important;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* τίτλοι & meta */
body.dark-active #edocman-documents .edocman-document-title-link,
body.dark-active #edocman-documents .sizeinformation,
body.dark-active #edocman-documents .dateinformation {
  color: #ccc !important;
}

/* κουμπιά */
body.dark-active #edocman-documents .btn {
  background-color: #222831 !important;
  color: #f1f1f1 !important;
  border-color: #2f343a !important;
}

body.dark-active #edocman-documents .btn:hover {
  background-color: #2d2f34 !important;
  color: #fff !important;
}

/* dropdown & menu */
body.dark-active #edocman-documents .edocman-document-default-title-dropdown-menu-popup {
  background-color: #2b3036 !important;
  border: 1px solid #3a3f44 !important;
}

body.dark-active #edocman-documents .edocman-document-default-title-dropdown-menu-popup a {
  color: #e6e6e6 !important;
}

/* συνδέσεις */
body.dark-active #edocman-documents a {
  color: #00adb5 !important;
}

body.dark-active #edocman-documents a:hover {
  color: #3b82f6 !important;
}

