/* ─── COMPONENTS ─── */
/* INSTITUTION LOGOS + INLINE SVG ICONS */
/* Extracted verbatim από prototype_v2.html (authoritative <style>) */

/* ============ BROWSE-BY SECTION (αρχική) ============ */
.browse-by-section {
  margin-bottom: 56px;
}
.browse-by-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .browse-by-grid { grid-template-columns: 1fr; }
}
.browse-by-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  color: var(--text);
  text-decoration: none;
}
.browse-by-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px -8px rgba(249,115,22,0.18);
  transform: translateY(-2px);
}
.browse-by-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.browse-by-icon .icon { width: 24px; height: 24px; }
.browse-by-label {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.browse-by-sub {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.5;
}
.browse-by-cta {
  margin-top: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--accent);
}
.browse-by-extra {
  margin-top: 24px;
}
.anti-promo-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.anti-promo-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px -8px rgba(249,115,22,0.18);
  transform: translateY(-2px);
}
.anti-promo-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--accent-soft);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.anti-promo-icon .icon { width: 26px; height: 26px; }
.anti-promo-body {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.anti-promo-title {
  font-size: 20px; font-weight: 800;
  letter-spacing: -0.02em;
}
.anti-promo-sub {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.5; margin: 0;
}
.anti-promo-cta {
  flex-shrink: 0;
  font-size: 14px; font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .anti-promo-card { flex-wrap: wrap; }
  .anti-promo-cta { width: 100%; }
}

/* ============ TERM LIST PAGES (σχολές ανά ίδρυμα/περιοχή/αντικείμενο) ============ */
.term-list-page { padding-top: 80px; padding-bottom: 60px; }
.term-list-page .archive-head { margin-bottom: 28px; }

.term-list-filter-wrap {
  margin-bottom: 20px;
  max-width: 420px;
}
.term-filter-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.term-filter-input:focus { border-color: var(--accent); }

.term-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}
.term-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.term-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.term-card-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--surface-2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.term-card-icon .icon { width: 18px; height: 18px; }
.term-card-body { flex: 1; min-width: 0; }
.term-card-name {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.term-card-label {
  font-size: 11.5px; color: var(--text-dim); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.term-card-meta {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; text-align: center;
}
.term-card-count {
  font-size: 16px; font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.term-card-count-lbl {
  font-size: 10px; color: var(--text-faint);
}
.term-card-arrow {
  font-size: 16px; color: var(--text-faint);
  flex-shrink: 0; margin-left: 4px;
  transition: color 0.15s;
}
.term-card:hover .term-card-arrow { color: var(--accent); }
.term-no-results {
  color: var(--text-dim); font-size: 14px; margin: 12px 0;
}

/* ============ ARCHIVE RELATED LINKS (nav buttons στο τέλος σελίδων) ============ */
.school-related-nav { margin-top: 40px; }
.school-related-nav-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.school-related-nav .archive-related-links {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.archive-related-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.archive-related-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.archive-related-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Κάτω CTA (← Όλες οι σχολές · Το μηχανογραφικό μου) — ξεχωριστή ενότητα·
   χρειάζεται κενό από τα παραπάνω «Σχετικές σχολές» (αλλιώς κολλάνε οι σειρές). */
.school-cta-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ============ INSTITUTION LOGOS ============ */
.idryma-logo {
  width: 36px; height: 36px; object-fit: contain;
  background: #fff; border-radius: 6px; padding: 3px;
  border: 1px solid var(--border, #e8e8e8);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.idryma-logo-lg {
  width: 72px; height: 72px; padding: 6px;
}
.idryma-logo-sm {
  width: 24px; height: 24px; padding: 2px;
}
.idryma-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px;
  color: #fff; font-weight: 700; font-size: 11px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  vertical-align: middle;
  text-align: center;
  line-height: 1;
}
.idryma-badge-lg {
  width: 72px; height: 72px; font-size: 18px; letter-spacing: 0.5px;
}
.idryma-badge-sm {
  width: 24px; height: 24px; font-size: 9px;
}
/* ============ INLINE SVG ICONS (Lucide) ============ */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  stroke-width: 1.75;
  flex-shrink: 0;
  display: inline-block;
}
.icon-lg { width: 1.3em; height: 1.3em; }
.icon-sm { width: 0.85em; height: 0.85em; }
button .icon, h1 .icon, h2 .icon, h3 .icon, h4 .icon {
  margin-right: 0.35em;
}
.card-meta-with-logo {
  display: flex; align-items: center; gap: 8px;
  margin: 6px 0 8px;
  font-size: 13px; color: var(--text-dim);
}
.card-meta-with-logo .idryma-text {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px;
}
a.idryma-link {
  color: inherit; text-decoration: none; border-bottom: 1px solid var(--border-2);
  transition: color 0.15s, border-color 0.15s;
}
a.idryma-link:hover { color: var(--petrol); border-color: var(--petrol); }
.detail-header-with-logo {
  display: flex; align-items: flex-start; gap: 16px;
}
.detail-header-with-logo > div:last-child { flex: 1; }
.cmp-header-with-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.stats-top-with-logo {
  display: flex; align-items: center; gap: 8px;
}

/* ─── BENEFITS (πλεονεκτήματα αρχικής — αντικατέστησε τον συγκριτικό πίνακα) ─── */
.benefits-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 14px;
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit h4 { font-size: 15px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.benefit p { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 0; }
.benefit-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--petrol-soft); color: var(--petrol-dim);
}
.benefit-icon .icon { width: 20px; height: 20px; }

/* HERO κάρτα: ΔΩΡΕΑΝ — καταλαμβάνει 2 σειρές αριστερά, με accent */
.benefit-hero {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface));
  border-color: var(--accent-2);
  justify-content: center;
}
.benefit-hero h4 { font-size: 22px; color: var(--accent-dim); }
.benefit-hero p { font-size: 14px; color: var(--text); }
.benefit-badge {
  align-self: flex-start;
  background: var(--accent); color: #fff;
  font-weight: 800; font-size: 18px;
  padding: 6px 12px; border-radius: 999px;
  letter-spacing: -0.02em;
}
.benefit-note {
  margin-top: 6px; font-size: 12px; color: var(--text-dim);
  border-top: 1px dashed var(--border-2); padding-top: 10px; line-height: 1.5;
}

@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .benefit-hero { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 560px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-hero { grid-column: auto; }
  /* Κουμπιά «Εξερεύνησε…» + κάτω CTA: στοιβάζονται full-width σε κινητό (καθαρά tap targets) */
  .archive-related-links { flex-direction: column; }
  .archive-related-links a { width: 100%; justify-content: center; }
  .school-cta-bottom { flex-direction: column; }
  .school-cta-bottom .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ─── Toast (ειδοποίηση μηχανογραφικού κ.λπ.) ─── */
#lisari-toast {
  position: fixed;
  left: 50%;
  top: 80px;
  transform: translateX(-50%) translateY(-16px);
  background: #1e293b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
}
#lisari-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Combo empty-state ─── */
.combo-empty-state {
  text-align: center;
  padding: 48px 20px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  margin: 24px 0;
}
.combo-empty-title { font-size: 18px; font-weight: 700; color: #334155; margin: 0 0 6px; }
.combo-empty-hint { color: #64748b; margin: 0 0 18px; }
.combo-empty-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ============ CONTACT PAGE ============ */
.contact-page-header {
  text-align: center;
  padding: 48px 0 36px;
}
.contact-page-header h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}
.contact-page-header p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  padding-bottom: 64px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { order: -1; }
}

/* ── CF7 form overrides ── */
.contact-form-wrap .wpcf7-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.contact-form-wrap .wpcf7-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form select,
.contact-form-wrap .wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  margin-bottom: 18px;
}
.contact-form-wrap .wpcf7-form input:focus,
.contact-form-wrap .wpcf7-form select:focus,
.contact-form-wrap .wpcf7-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
  background: var(--surface);
}
.contact-form-wrap .wpcf7-form textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-form-wrap .wpcf7-form input[type="submit"],
.contact-form-wrap .wpcf7-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
}
.contact-form-wrap .wpcf7-form input[type="submit"]:hover,
.contact-form-wrap .wpcf7-submit:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.contact-form-wrap .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 12px;
  margin-top: -14px;
  margin-bottom: 14px;
  display: block;
}
.contact-form-wrap .wpcf7-response-output {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 16px;
  border: 1.5px solid var(--border);
  color: var(--text-dim);
}
.contact-form-wrap .wpcf7-mail-sent-ok {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}
.contact-form-wrap .wpcf7-validation-errors,
.contact-form-wrap .wpcf7-mail-sent-ng,
.contact-form-wrap .wpcf7-spam-blocked {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* ── Info sidebar ── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.contact-info-icon {
  width: 40px; height: 40px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-info-icon .icon { width: 18px; height: 18px; }
.contact-info-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.contact-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.contact-note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.contact-note strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 6px;
}
.contact-note a { color: var(--accent); text-decoration: none; font-weight: 600; }
.contact-note a:hover { text-decoration: underline; }

/* ── Αντίστοιχα Τμήματα (μετεγγραφές) — ΦΕΚ Β'3536/2026 ── */
.antistoixia-intro { font-size: 14px; color: var(--text-dim); line-height: 1.5; margin: 0 0 16px; }
.antistoixia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.antistoixia-card { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  text-decoration: none; transition: all 0.15s; }
.antistoixia-card:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); }
.antistoixia-card .ac-name { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.25; }
.antistoixia-card .ac-meta { font-size: 11px; color: var(--text-dim); }
.antistoixia-card .ac-vasi { font-size: 11px; color: var(--accent); font-weight: 700; margin-top: 1px; }
.antistoixia-note { font-size: 11.5px; color: var(--text-faint); line-height: 1.45; margin: 14px 0 0;
  padding: 10px 12px; background: var(--surface); border: 1px dashed var(--border-2); border-radius: 8px; }
@media (max-width: 560px) { .antistoixia-grid { grid-template-columns: 1fr; } }

/* ── Hub Αντιστοιχιών (page-antistoixies) ── */
.anti-searchbar { max-width: 620px; margin: 0 auto 22px; }
#anti-search { width: 100%; font-size: 15px; padding: 13px 18px; border-radius: 12px;
  border: 1.5px solid var(--border-2); background: var(--surface); color: var(--text); outline: none; }
#anti-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft, rgba(234,88,12,.12)); }
.anti-count { font-size: 12.5px; color: var(--text-dim); margin-top: 8px; text-align: center; }
.anti-groups { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 7px; }
.anti-group { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.anti-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 11px 15px; font-weight: 700; color: var(--text); }
.anti-group > summary:hover { background: var(--surface-2); }
.anti-group > summary::-webkit-details-marker { display: none; }
.anti-group .ag-right { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.anti-group .ag-right::after { content: "▾"; color: var(--text-faint); transition: transform .15s; font-size: 12px; }
.anti-group[open] .ag-right::after { transform: rotate(180deg); }
.anti-group .ag-title { font-size: 14px; }
.anti-group .ag-count { font-size: 11px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.anti-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px; padding: 2px 15px 15px; }
.anti-empty { text-align: center; color: var(--text-dim); padding: 30px; font-size: 14px; }
@media (max-width: 560px) { .anti-members { grid-template-columns: 1fr; } }

/* Επεξηγηματικό κείμενο hub αντιστοιχιών (SEO) */
.anti-info { max-width: 760px; margin: 40px auto 0; }
.anti-info h2 { font-size: 20px; font-weight: 800; margin: 24px 0 8px; color: var(--text); }
.anti-info h2:first-child { margin-top: 0; }
.anti-info p { font-size: 14.5px; line-height: 1.65; color: var(--text-dim); margin: 0; }

/* Hub: FAQ ευθυγράμμιση & απόσταση από το κείμενο (μόνο στη σελίδα αντιστοιχιών) */
#view-antistoixies .anti-info { margin-bottom: 0; }
#view-antistoixies .school-faq { max-width: 760px; margin: 34px auto 0; }
