/* ============================================================
   extra.css — προσθήκες πάνω στο style.css
   ------------------------------------------------------------
   Ξεχωριστό αρχείο επίτηδες: δεν αγγίζει τίποτα από το δικό σου
   design. Αν θέλεις να γυρίσεις πίσω, σβήνεις μία γραμμή από το
   index.html και τελείωσε.

   Περιέχει:
   1. Σκελετοί φόρτωσης (γκρι κουτάκια που γυαλίζουν)
   2. Ασφαλής λίστα παικτών (φόρτωση / εφεδρικό μήνυμα)
   3. Αναζήτηση στα Νέα και τα Άρθρα
   4. Φόρμα επικοινωνίας
   ============================================================ */

/* ---------- 1. ΣΚΕΛΕΤΟΙ ΦΟΡΤΩΣΗΣ ----------
   Εμφανίζονται για ελάχιστα δευτερόλεπτα την πρώτη φορά.
   Από τη δεύτερη επίσκεψη δεν τους βλέπει κανείς, γιατί το
   περιεχόμενο έρχεται από τη μνήμη του browser. */
.skel-card {
  flex: 0 0 clamp(260px, 32%, 340px);
  min-height: 190px;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--glass-border, rgba(255,255,255,.65));
  background: linear-gradient(100deg,
      rgba(255,255,255,.45) 28%,
      rgba(255,255,255,.75) 46%,
      rgba(255,255,255,.45) 64%);
  background-size: 300% 100%;
  animation: skelShine 1.3s ease-in-out infinite;
}
@keyframes skelShine {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skel-card { animation: none; }
}

/* ---------- 2. ΔΥΝΑΜΟΛΟΓΙΟ ----------
   Το iframe δείχνει το chesstu.be, που δεν το ελέγχουμε.
   Αν αργήσει ή πέσει, ο επισκέπτης δεν μένει να κοιτάζει κενό. */
.players-embed-wrap { position: relative; min-height: 260px; }

.players-embed-wrap iframe { opacity: 0; transition: opacity .25s ease; }
.players-embed-wrap iframe.is-ready { opacity: 1; }

.embed-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--text-muted, #6b645a);
  font-size: .95rem;
  background: #fff;
}
.embed-loading i { color: var(--burgundy, #5e1916); }

.embed-fallback {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 26px 24px;
  background: #fff;
  border-radius: var(--radius, 10px);
}
.embed-fallback > i {
  font-size: 1.5rem;
  color: var(--burgundy, #5e1916);
  margin-top: 2px;
  flex: none;
}
.embed-fallback strong { font-size: 1.1rem; display: block; margin-bottom: 6px; }
.embed-fallback p {
  color: var(--text-muted, #6b645a);
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 60ch;
}
.embed-fallback .map-btn { width: auto; display: inline-flex; margin-top: 0; }

@media (max-width: 600px) {
  .embed-fallback { flex-direction: column; gap: 12px; padding: 20px 18px; }
  .embed-fallback .map-btn { width: 100%; }
}

/* ============================================================
   3. ΑΝΑΖΗΤΗΣΗ ΣΤΑ ΝΕΑ ΚΑΙ ΤΑ ΑΡΘΡΑ
   ------------------------------------------------------------
   Με 30 ανακοινώσεις μέσα, το «πού ήταν εκείνο για το τουρνουά
   των παίδων» γινόταν κύλισμα. Τώρα γράφει δύο λέξεις.
   ============================================================ */
.page-search {
  position: relative;
  max-width: 460px;
  margin: 0 0 14px;
}
.page-search > i {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #6b645a);
  font-size: .95rem;
  pointer-events: none;
}
.page-search input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  font: inherit;
  font-size: 1rem;
  color: var(--text, #1a0f12);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, .65));
  border-radius: var(--radius, 10px);
  box-shadow: 0 1px 3px rgba(26, 15, 18, .05);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.page-search input::placeholder { color: var(--text-muted, #6b645a); opacity: .8; }
.page-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--burgundy, #5e1916);
  box-shadow: 0 0 0 3px rgba(94, 25, 22, .13);
}
/* Το εγγενές «x» του Chrome είναι μικροσκοπικό — το μεγαλώνουμε. */
.page-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  cursor: pointer;
  background: currentColor;
  opacity: .35;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>") center/contain no-repeat;
}
.page-search input::-webkit-search-cancel-button:hover { opacity: .7; }

.search-count {
  margin: -4px 0 18px;
  font-size: .92rem;
  color: var(--text-muted, #6b645a);
}

/* ============================================================
   4. ΦΟΡΜΑ ΕΠΙΚΟΙΝΩΝΙΑΣ
   ============================================================ */
.contact-form-card {
  margin-top: 30px;
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, .65));
  border-radius: var(--radius, 10px);
  box-shadow: 0 2px 10px rgba(26, 15, 18, .05);
}
.cf-title {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 8px;
}
.cf-title i { color: var(--burgundy, #5e1916); }
.cf-intro {
  color: var(--text-muted, #6b645a);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 62ch;
}

.cf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.cf-wide { grid-column: 1 / -1; }

.cf-row { display: flex; flex-direction: column; gap: 7px; }
.cf-row label {
  font-size: .93rem;
  font-weight: 600;
  color: var(--text, #1a0f12);
}
.cf-req { color: var(--burgundy, #5e1916); }
.cf-opt { font-weight: 400; color: var(--text-muted, #6b645a); font-size: .86rem; }

.cf-row input,
.cf-row select,
.cf-row textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text, #1a0f12);
  background: #fff;
  border: 1px solid rgba(26, 15, 18, .16);
  border-radius: 9px;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.cf-row textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.cf-row select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b645a'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 22px;
  padding-right: 38px;
}
.cf-row input::placeholder,
.cf-row textarea::placeholder { color: #9c938c; }
.cf-row input:focus,
.cf-row select:focus,
.cf-row textarea:focus {
  outline: none;
  border-color: var(--burgundy, #5e1916);
  box-shadow: 0 0 0 3px rgba(94, 25, 22, .13);
}

/* Η παγίδα για τα ρομπότ. Κρυμμένη, αλλά ΟΧΙ με display:none —
   κάποια ρομπότ αγνοούν τα πεδία που είναι εντελώς κρυφά. */
.cf-trap {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cf-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 20px;
  margin-top: 22px;
}
.cf-actions .btn-primary { flex: none; }
.cf-note { font-size: .9rem; color: var(--text-muted, #6b645a); }
.cf-note a { color: var(--burgundy, #5e1916); text-decoration: underline; }

.cf-msg {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 9px;
  font-size: .95rem;
  line-height: 1.5;
}
.cf-msg.err { background: #fdecec; color: #8d2020; border: 1px solid #f3c9c9; }
.cf-msg.ok  { background: #ecf6ef; color: #1f5c35; border: 1px solid #c7e4d1; }

/* Το ευχαριστώ, αφού σταλεί. Αντικαθιστά όλη τη φόρμα, ώστε να
   μην μπορεί να πατήσει «αποστολή» δεύτερη φορά κατά λάθος. */
.cf-done { text-align: center; padding: 20px 10px; }
.cf-done > i { font-size: 2.6rem; color: #2f7a4a; margin-bottom: 14px; }
.cf-done h3 { font-size: 1.35rem; margin-bottom: 10px; }
.cf-done p { color: var(--text-muted, #6b645a); line-height: 1.6; max-width: 48ch; margin: 0 auto 8px; }
.cf-done-sub { font-size: .9rem; opacity: .85; }

@media (max-width: 680px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-actions { flex-direction: column; align-items: stretch; }
  .cf-actions .btn-primary { width: 100%; justify-content: center; }
  .cf-note { text-align: center; }
  .page-search { max-width: 100%; }
}

/* ============================================================
   5. ΣΚΑΚΙΣΤΙΚΑ ΠΡΟΒΛΗΜΑΤΑ
   ------------------------------------------------------------
   Η σκακιέρα είναι SVG, όχι φωτογραφία. Τα κομμάτια είναι τα
   συμπαγή σύμβολα Unicode: υπάρχουν σε κάθε γραμματοσειρά, ενώ
   τα «κούφια» λείπουν από αρκετά κινητά. Τα λευκά τα βάφουμε
   λευκά με σκούρο περίγραμμα — το κλασικό κόλπο.
   ============================================================ */

.chess-pos {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.chess-pos .bp {
  font-size: 82px;
  text-anchor: middle;
  dominant-baseline: central;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2",
               "DejaVu Sans", system-ui, sans-serif;
  pointer-events: none;
}

.chess-pos .bp-b { fill: #1b1b1b; }

/* Τα λευκά: λευκό γέμισμα με σκούρο περίγραμμα, ώστε να
   ξεχωρίζουν και πάνω στο ανοιχτό τετράγωνο. */
.chess-pos .bp-w {
  fill: #ffffff;
  stroke: #1b1b1b;
  stroke-width: 2.4px;
  paint-order: stroke fill;
}

.chess-pos .bc {
  font-size: 15px;
  fill: var(--text-muted, #6b645a);
  text-anchor: middle;
  dominant-baseline: central;
  font-family: var(--body, system-ui, sans-serif);
  font-weight: 600;
}


/* ------------------------------------------------------------
   Η κάρτα ενός προβλήματος
   ------------------------------------------------------------ */

.puzzle-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.puzzle-card { padding: 0; overflow: hidden; }

.puzzle-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.puzzle-board { padding: 22px; }

.puzzle-info {
  padding: 22px 24px 24px 4px;
  min-width: 0;
}

.puzzle-info h3 { margin: 0 0 10px; font-size: 1.5rem; }

.puzzle-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 16px;
}

.puzzle-goal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--burgundy, #5e1916);
}

.puzzle-level {
  border-radius: 20px;
  padding: 2px 11px;
  font-size: .8rem;
  font-weight: 700;
}

.puzzle-level.lvl-easy   { background: #e3f1e7; color: #1f5c35; }
.puzzle-level.lvl-medium { background: #fdf0d6; color: #6b4a08; }
.puzzle-level.lvl-hard   { background: #fbe4e2; color: #7c2420; }

.puzzle-when { color: var(--text-muted, #6b645a); font-size: .88rem; }

.puzzle-hint,
.puzzle-solution {
  margin-bottom: 14px;
  border: 1px dashed rgba(26, 15, 18, .22);
  border-radius: 9px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .5);
}

.puzzle-hint summary,
.puzzle-solution summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--burgundy, #5e1916);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.puzzle-hint summary::-webkit-details-marker,
.puzzle-solution summary::-webkit-details-marker { display: none; }

.puzzle-hint p,
.puzzle-solution p {
  margin-top: 10px;
  line-height: 1.6;
  color: var(--text-body, #4d4d4d);
}

.puzzle-closed {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border-radius: 9px;
  background: rgba(26, 15, 18, .05);
  color: var(--text-muted, #6b645a);
  font-size: .93rem;
}


/* ------------------------------------------------------------
   Η φόρμα της λύσης
   ------------------------------------------------------------ */

.puzzle-form {
  border-top: 1px dashed rgba(26, 15, 18, .18);
  padding-top: 16px;
}

.pf-intro {
  color: var(--text-muted, #6b645a);
  font-size: .93rem;
  margin-bottom: 14px;
}

.pf-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

.pf-row label { font-size: .9rem; font-weight: 600; }

.pf-row input,
.pf-row textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: .98rem;
  color: var(--text-dark, #1a0f12);
  background: #fff;
  border: 1px solid rgba(26, 15, 18, .18);
  border-radius: 9px;
  -webkit-appearance: none;
  appearance: none;
}

.pf-row textarea { resize: vertical; line-height: 1.55; }

.pf-row input:focus,
.pf-row textarea:focus {
  outline: none;
  border-color: var(--burgundy, #5e1916);
  box-shadow: 0 0 0 3px rgba(94, 25, 22, .13);
}

.pf-deadline {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--text-muted, #6b645a);
}


/* ------------------------------------------------------------
   Η μικρή κάρτα στην αρχική
   ------------------------------------------------------------ */

.puzzle-mini {
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.puzzle-mini-board { width: 100%; }

.puzzle-mini h3 { font-size: 1.25rem; margin: 0; }

.puzzle-mini p {
  color: var(--text-muted, #6b645a);
  font-size: .92rem;
  margin: 0;
}


@media (max-width: 760px) {
  .puzzle-grid { grid-template-columns: 1fr; }
  .puzzle-board { padding: 16px 16px 0; }
  .puzzle-info { padding: 16px; }
}






/* ============================================
   ΔΙΟΡΘΩΣΗ ΦΩΤΟΓΡΑΦΙΑΣ ΑΡΧΙΚΟΥ BANNER
   ============================================ */

.hero-photo.has-photo {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #ffffff;
}










/* ============================================
   ΜΕΓΑΛΥΤΕΡΕΣ ΚΑΡΤΕΣ ΝΕΩΝ ΚΑΙ ΑΡΘΡΩΝ
   ΣΤΗΝ ΑΡΧΙΚΗ ΣΕΛΙΔΑ
   ============================================ */

/* Πιο φαρδιές κάρτες */
#home-news > .post-card,
#home-articles > .post-card {
  flex: 0 0 clamp(350px, 62%, 500px);
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Ο τίτλος εμφανίζεται μέχρι 3 γραμμές */
#home-news .post-card h3,
#home-articles .post-card h3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  line-height: 1.35;
}

/* Περισσότερη περιγραφή πριν από το άνοιγμα */
#home-news .post-card p,
#home-articles .post-card p {
  -webkit-line-clamp: 6;
  line-clamp: 6;
  line-height: 1.6;
  font-size: 0.96rem;
}

/* Το Διάβασε περισσότερα παραμένει χαμηλά */
#home-news .post-card .read-link,
#home-articles .post-card .read-link {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  color: var(--burgundy);
  font-weight: 700;
  font-size: 0.93rem;
}

/* Σε κινητά οι κάρτες χωράνε στην οθόνη */
@media (max-width: 700px) {
  #home-news > .post-card,
  #home-articles > .post-card {
    flex-basis: min(90%, 430px);
  }
}






/* ================================================
   COMPACT HOME — ΠΡΩΤΑ ΤΟ ΠΕΡΙΕΧΟΜΕΝΟ
   Μικρότερο banner και άμεσα ορατά νέα.
   ================================================ */

/* ---------- DESKTOP / TABLET ---------- */

#home .hero {
  grid-template-columns: minmax(0, 1fr) 26%;
  align-items: center;
  min-height: 0;
}

#home .hero-text {
  min-width: 0;
  padding: 16px 22px;
}

#home .hero h1 {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.16;
  margin: 0 0 7px;
}

#home .hero p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  max-width: 65ch;
}

#home .hero-photo {
  order: 0;
  min-height: 0;
  height: 145px;
  background-position: center;
}

#home .hero-photo.has-photo {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-color: #ffffff;
}

#home .hero-actions {
  margin-top: 10px;
  gap: 8px;
}

#home .hero-actions button {
  padding: 8px 12px;
  font-size: 0.83rem;
}

/* Λιγότερο κενό πριν από τις ενότητες */
#home > .titled-section {
  margin-top: 22px;
}

#home .section-head {
  margin-bottom: 12px;
  padding-bottom: 7px;
}

#home .section-head h2 {
  font-size: 1.55rem;
}

/* Οι κάρτες ξεκινούν από αριστερά */
#home-news.carousel > :first-child,
#home-articles.carousel > :first-child {
  margin-left: 0;
}

#home-news.carousel > :last-child,
#home-articles.carousel > :last-child {
  margin-right: 0;
}

/* ---------- TABLET ---------- */

@media (max-width: 820px) {

  #home .hero {
    grid-template-columns: minmax(0, 1fr) 25%;
  }

  #home .hero-text {
    padding: 14px 16px;
  }

  #home .hero h1 {
    font-size: 1.4rem;
  }

  #home .hero-photo {
    order: 0;
    min-height: 0;
    height: 125px;
  }

  #home > .titled-section {
    margin-top: 17px;
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

  /* Το banner γίνεται σύντομη εισαγωγή */
  #home .hero {
    display: block;
    min-height: 0;
  }

  #home .hero-text {
    padding: 12px 14px;
  }

  /* Το μεγάλο λογότυπο δεν πιάνει οθόνη */
  #home .hero-photo {
    display: none;
  }

  #home .hero h1 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0 0 5px;
  }

  /* Μέχρι δύο γραμμές εισαγωγικού κειμένου */
  #home .hero p {
    font-size: 0.82rem;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  /* Μικρότερα κουμπιά */
  #home .hero-actions {
    margin-top: 8px;
    gap: 6px;
  }

  #home .hero-actions button {
    padding: 7px 10px;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  /* Τα Νέα ανεβαίνουν πιο ψηλά */
  #home > .titled-section {
    margin-top: 15px;
  }

  #home .section-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  #home .section-head h2 {
    font-size: 1.28rem;
    gap: 7px;
  }

  #home .section-head .head-tools {
    gap: 5px;
    flex-shrink: 0;
  }

  #home .section-head .see-more {
    font-size: 0.75rem;
    gap: 4px;
  }

  #home .section-head .car-arrow {
    width: 29px;
    height: 29px;
  }

  /*
   * ΚΑΡΤΕΣ ΝΕΩΝ ΚΑΙ ΑΡΘΡΩΝ
   *
   * Αντί για μεγάλη φωτογραφία από πάνω,
   * μικρή φωτογραφία αριστερά και κείμενο
   * δεξιά, ώστε ο τίτλος να φαίνεται αμέσως.
   */

  #home-news > .post-card,
  #home-articles > .post-card {
    flex: 0 0 92%;
    min-width: 0;
    width: auto;

    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;

    column-gap: 11px;
    row-gap: 4px;

    align-content: start;
    align-items: start;

    padding: 11px;
    min-height: 142px;
  }

  /* Μικρή φωτογραφία στα αριστερά */
  #home-news > .post-card > img,
  #home-articles > .post-card > img {
    grid-column: 1;
    grid-row: 1 / span 4;

    width: 82px;
    height: 112px;

    aspect-ratio: auto;
    max-height: none;
    min-height: 0;

    object-fit: contain;
    object-position: center;

    background: #ffffff;
    border-radius: 7px;
    margin: 0;
  }

  /* Ημερομηνία */
  #home-news > .post-card > .news-date-badge,
  #home-articles > .post-card > .news-date-badge {
    grid-column: 2;
    grid-row: 1;

    width: fit-content;
    max-width: 100%;

    font-size: 0.66rem;
    padding: 2px 6px;
    margin: 0;
  }

  /* Τίτλος — μέχρι 3 γραμμές */
  #home-news > .post-card > h3,
  #home-articles > .post-card > h3 {
    grid-column: 2;
    grid-row: 2;

    font-size: 0.93rem;
    line-height: 1.28;
    margin: 0;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  /* Σύντομη περιγραφή */
  #home-news > .post-card > p,
  #home-articles > .post-card > p {
    grid-column: 2;
    grid-row: 3;

    font-size: 0.77rem;
    line-height: 1.35;
    margin: 0;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  /* Σύνδεσμος ανάγνωσης */
  #home-news > .post-card > .read-link,
  #home-articles > .post-card > .read-link {
    grid-column: 2;
    grid-row: 4;

    margin: 0;
    padding: 3px 0 0;

    font-size: 0.75rem;
    font-weight: 700;
    color: var(--burgundy);
  }

  /* Κάρτες που δεν έχουν φωτογραφία */
  #home-news > .post-card:not(:has(> img)),
  #home-articles > .post-card:not(:has(> img)) {
    grid-template-columns: minmax(0, 1fr);
  }

  #home-news > .post-card:not(:has(> img)) > *,
  #home-articles > .post-card:not(:has(> img)) > * {
    grid-column: 1;
  }
}





/* ================================================
   ΔΙΟΡΘΩΣΗ MOBILE ΚΑΙ ΚΑΡΤΩΝ
   ΝΕΑ - ΑΝΑΚΟΙΝΩΣΕΙΣ - ΑΡΘΡΑ
   ================================================ */

/* Η σελίδα δεν επιτρέπεται να μετακινείται
   οριζόντια. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Τα εσωτερικά στοιχεία δεν ξεπερνούν
   το διαθέσιμο πλάτος της οθόνης. */
.shell,
.content,
#home,
#home > .titled-section {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#home .section-head,
#home .head-tools {
  min-width: 0;
  max-width: 100%;
}

/* ================================================
   ΕΙΚΟΝΕΣ ΔΗΜΟΣΙΕΥΣΕΩΝ

   Ίδια αναλογία 16:9 σε όλες τις κάρτες.
   Γεμίζουν ολόκληρο το διαθέσιμο πλάτος.
   ================================================ */

.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;

  min-height: 0;
  max-height: none;

  object-fit: cover;
  object-position: center;

  border-radius: 8px;
  margin-bottom: 10px;
}

/* Οι μεγάλες ανακοινώσεις χρησιμοποιούν
   επίσης πλήρη κάλυψη εικόνας. */
.wide-card .thumb {
  background-size: cover;
  background-position: center;
}

/* ================================================
   CAROUSEL ΑΡΧΙΚΗΣ
   ================================================ */

#home-news.carousel,
#home-articles.carousel {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;

  gap: 18px;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  box-sizing: border-box;

  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;

  scroll-snap-type: x proximity;

  padding: 5px 0 12px;
}

/* Ακυρώνουμε παλιές μετατοπίσεις. */
#home-news.carousel > :first-child,
#home-articles.carousel > :first-child {
  margin-left: 0;
}

#home-news.carousel > :last-child,
#home-articles.carousel > :last-child {
  margin-right: 0;
}

/* Κανονικές κάρτες desktop. */
#home-news.carousel > .post-card,
#home-articles.carousel > .post-card {
  flex: 0 0 clamp(280px, 42%, 420px);

  width: auto;
  max-width: 100%;
  min-width: 0;

  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  padding: 16px;
  text-align: left;

  scroll-snap-align: center;

  overflow-wrap: anywhere;
}

/* Εικόνες carousel:
   ίδιο μέγεθος, πλήρες πλάτος. */
#home-news.carousel > .post-card > img,
#home-articles.carousel > .post-card > img {
  display: block;

  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;

  max-height: none;
  min-height: 0;

  object-fit: cover;
  object-position: center;

  margin: 0 0 10px;
}

/* Μία κάρτα: στο κέντρο. */
#home-news.carousel:has(> .post-card:only-child),
#home-articles.carousel:has(> .post-card:only-child) {
  justify-content: center;
}

/* Δύο κάρτες: συμμετρικές στο desktop. */
@media (min-width: 701px) {

  #home-news.carousel:has(> .post-card:nth-child(2):last-child),
  #home-articles.carousel:has(> .post-card:nth-child(2):last-child) {
    justify-content: center;
  }

  #home-news.carousel:has(> .post-card:nth-child(2):last-child) > .post-card,
  #home-articles.carousel:has(> .post-card:nth-child(2):last-child) > .post-card {
    flex: 0 0 min(410px, calc((100% - 18px) / 2));
  }
}

/* Τίτλοι */
#home-news.carousel > .post-card > h3,
#home-articles.carousel > .post-card > h3 {
  font-size: 1.2rem;
  line-height: 1.35;

  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Περιγραφές */
#home-news.carousel > .post-card > p,
#home-articles.carousel > .post-card > p {
  font-size: 0.96rem;
  line-height: 1.5;

  -webkit-line-clamp: 4;
  line-clamp: 4;
}

/* Σύνδεσμος ανάγνωσης */
#home-news.carousel > .post-card > .read-link,
#home-articles.carousel > .post-card > .read-link {
  display: block;

  margin-top: auto;
  padding-top: 12px;

  font-size: 0.92rem;
  font-weight: 700;

  color: var(--burgundy);
}

/* ================================================
   MOBILE
   ================================================ */

@media (max-width: 700px) {

  /* Το πλάτος της σελίδας παραμένει σταθερό. */
  #home,
  #home > .titled-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /* Οι τίτλοι ενοτήτων δεν σπρώχνουν
     τη σελίδα έξω από την οθόνη. */
  #home .section-head {
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
  }

  #home .section-head .head-tools {
    flex-wrap: wrap;
    gap: 5px;
  }

  /* Μόνο το carousel κάνει οριζόντιο scroll. */
  #home-news.carousel,
  #home-articles.carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    gap: 12px;
    padding: 4px 0 12px;

    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;

    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }

  /* Μία κάρτα στο κέντρο. */
  #home-news.carousel:has(> .post-card:only-child),
  #home-articles.carousel:has(> .post-card:only-child) {
    justify-content: center;
  }

  /* Κάθε κάρτα γεμίζει το διαθέσιμο πλάτος
     χωρίς να ξεπερνά την οθόνη. */
  #home-news.carousel > .post-card,
  #home-articles.carousel > .post-card,
  #home-news.carousel:has(> .post-card:nth-child(2):last-child) > .post-card,
  #home-articles.carousel:has(> .post-card:nth-child(2):last-child) > .post-card {
    flex: 0 0 100%;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 13px;
    gap: 0;

    min-height: 0;

    text-align: left;
    scroll-snap-align: center;
  }

  /* Ημερομηνία πρώτη. */
  #home-news.carousel > .post-card > .news-date-badge,
  #home-articles.carousel > .post-card > .news-date-badge {
    order: 1;

    align-self: flex-start;
    max-width: 100%;

    font-size: 0.75rem;
    margin: 0 0 7px;
  }

  /* Τίτλος πριν από τη φωτογραφία,
     ώστε ο επισκέπτης να βλέπει άμεσα το νέο. */
  #home-news.carousel > .post-card > h3,
  #home-articles.carousel > .post-card > h3 {
    order: 2;

    font-size: 1.12rem;
    line-height: 1.35;

    margin: 0 0 11px;

    display: -webkit-box;
    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;
    line-clamp: 3;

    overflow: hidden;
  }

  /* Φωτογραφία σε όλο το πλάτος.
     Όλες ακριβώς στην ίδια αναλογία. */
  #home-news.carousel > .post-card > img,
  #home-articles.carousel > .post-card > img {
    order: 3;

    display: block;

    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;

    min-height: 0;
    max-height: none;

    object-fit: cover;
    object-position: center;

    border-radius: 8px;

    margin: 0 0 11px;
  }

  /* Ευανάγνωστη περιγραφή. */
  #home-news.carousel > .post-card > p,
  #home-articles.carousel > .post-card > p {
    order: 4;

    font-size: 0.96rem;
    line-height: 1.5;

    margin: 0;

    display: -webkit-box;
    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;
    line-clamp: 3;

    overflow: hidden;
  }

  /* Διάβασε περισσότερα */
  #home-news.carousel > .post-card > .read-link,
  #home-articles.carousel > .post-card > .read-link {
    order: 5;

    margin-top: auto;
    padding-top: 10px;

    font-size: 0.91rem;
    font-weight: 700;
  }
}




/* ============================================
   ΔΙΟΡΘΩΣΗ ΑΡΧΙΚΟΥ BANNER ΣΤΟ ΚΙΝΗΤΟ

   - Μικρή φωτογραφία πάνω δεξιά
   - Ολόκληρη περιγραφή
   - Χωρίς αποσιωπητικά
   - Συμπαγής διάταξη
   ============================================ */

@media (max-width: 600px) {

  /* Τίτλος αριστερά, φωτογραφία δεξιά.
     Περιγραφή και κουμπιά από κάτω. */
  #home .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    grid-template-areas:
      "title photo"
      "description description"
      "buttons buttons";

    gap: 8px 12px;
    align-items: center;

    padding: 13px 14px;
    min-height: 0;
  }

  /* Επιτρέπει στα εσωτερικά στοιχεία
     να τοποθετηθούν στο grid. */
  #home .hero-text {
    display: contents;
  }

  /* Τίτλος */
  #home .hero h1 {
    grid-area: title;

    font-size: 1.25rem;
    line-height: 1.25;

    margin: 0;
    min-width: 0;

    overflow: visible;
    white-space: normal;
  }

  /* Φωτογραφία - λογότυπο */
  #home .hero-photo {
    display: flex !important;

    grid-area: photo;
    order: 0;

    width: 82px;
    height: 82px;
    min-height: 0;

    align-items: center;
    justify-content: center;

    border-radius: 9px;
    overflow: hidden;

    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;

    font-size: 2rem;
  }

  /* Εμφάνιση ολόκληρης φωτογραφίας */
  #home .hero-photo.has-photo {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  /* ΟΛΟΚΛΗΡΗ ΠΕΡΙΓΡΑΦΗ */
  #home .hero p,
  #home #hero-text {
    grid-area: description;

    display: block !important;

    font-size: 0.88rem;
    line-height: 1.48;

    margin: 0;
    width: 100%;
    max-width: 100%;

    /* Καμία περικοπή */
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: initial !important;

    max-height: none !important;
    overflow: visible !important;

    text-overflow: clip !important;
    white-space: normal !important;

    overflow-wrap: break-word;
  }

  /* Κουμπιά */
  #home .hero-actions {
    grid-area: buttons;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;
    margin: 2px 0 0;
  }

  #home .hero-actions button {
    padding: 7px 11px;
    font-size: 0.8rem;
    line-height: 1.3;
  }
}

/* Ακόμη μικρότερα κινητά */
@media (max-width: 360px) {

  #home .hero {
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 7px 9px;
    padding: 11px;
  }

  #home .hero-photo {
    width: 70px;
    height: 70px;
  }

  #home .hero h1 {
    font-size: 1.12rem;
  }
}




/* Το κουμπί μεγέθυνσης ΚΑΤΩ από τη σκακιέρα */

#data-puzzles .puzzle-card .puzzle-board .pz-enlarge-hint {
  position: static;
  display: table;

  width: fit-content;
  max-width: 100%;

  margin: 12px auto 0;
  padding: 8px 14px;

  border-radius: 8px;
  background: #5e1916;
  color: #ffffff;

  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}



/* ==========================================
   ΟΜΟΡΦΟ ΕΞΩΦΥΛΛΟ ΟΤΑΝ ΔΕΝ ΥΠΑΡΧΕΙ ΦΩΤΟΓΡΑΦΙΑ
   Για Νέα και Άρθρα.
   ========================================== */

/* Ίδιο ύψος με τις πραγματικές φωτογραφίες */
.post-card:not(:has(> img))::before {
  content: "♞";
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  margin-bottom: 10px;
  border-radius: 8px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(70px, 8vw, 105px);
  line-height: 1;
  font-weight: normal;
  color: #f3deb4;

  background:
    repeating-conic-gradient(
      rgba(255,255,255,.055) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 56px 56px,
    linear-gradient(135deg, #442020, #783a31);

  text-shadow: 0 6px 24px rgba(0,0,0,.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* Διαφορετικό σχέδιο για τις ανακοινώσεις */
.post-card[data-post="announcements"]:not(:has(> img))::before {
  content: "♜";
  background:
    repeating-conic-gradient(
      rgba(255,255,255,.055) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 56px 56px,
    linear-gradient(135deg, #173b39, #37635a);
}

/* Και στις μεγάλες κάρτες των Νέων */
.wide-card .thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    repeating-conic-gradient(
      rgba(255,255,255,.055) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 56px 56px,
    linear-gradient(135deg, #442020, #783a31);

  color: #f3deb4;
  font-size: 3.6rem;
}

.wide-card .thumb.placeholder i {
  color: #f3deb4;
  text-shadow: 0 6px 24px rgba(0,0,0,.25);
}


/* =========================================
   ΕΞΩΦΥΛΛΑ ΧΩΡΙΣ ΦΩΤΟΓΡΑΦΙΑ
   ΝΕΑ: ΚΟΚΚΙΝΟ + ΑΛΟΓΟ
   ΑΡΘΡΑ: ΜΠΛΕ + ΠΥΡΓΟΣ
   ========================================= */

/* Κοινό μέγεθος και εμφάνιση */
.post-card:not(:has(> img))::before {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  margin-bottom: 10px;
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(70px, 8vw, 105px);
  font-weight: normal;
  line-height: 1;
  color: #f4ddad;
  text-shadow: 0 6px 24px rgba(0,0,0,.25);
}

/* ΝΕΑ — μπορντό με άλογο */
.post-card[data-post="announcements"]:not(:has(> img))::before {
  content: "♞";
  background:
    repeating-conic-gradient(
      rgba(255,255,255,.055) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 56px 56px,
    linear-gradient(135deg, #4d1e20, #8b3e38);
}

/* ΑΡΘΡΑ — βαθύ μπλε με πύργο */
.post-card[data-post="articles"]:not(:has(> img))::before {
  content: "♜";
  background:
    repeating-conic-gradient(
      rgba(255,255,255,.055) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 56px 56px,
    linear-gradient(135deg, #1d3455, #4b6991);
}

/* Μεγάλες κάρτες Νέων χωρίς φωτογραφία */
.wide-card .thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-conic-gradient(
      rgba(255,255,255,.055) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 56px 56px,
    linear-gradient(135deg, #4d1e20, #8b3e38);
}

.wide-card .thumb.placeholder i {
  color: #f4ddad;
  font-size: 3.6rem;
}




/* ==========================================
   ΕΝΙΑΙΑ ΔΙΑΤΑΞΗ ΚΑΡΤΩΝ ΝΕΩΝ & ΑΡΘΡΩΝ
   Desktop + Mobile
   ========================================== */

/* Όλες οι κάρτες έχουν κάθετη διάταξη */
#home .post-card,
#news .post-card,
#articles .post-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

/* 1. ΠΑΝΤΑ ΠΡΩΤΗ Η ΕΙΚΟΝΑ */
#home .post-card > img,
#home .post-card > .fallback-cover,
#news .post-card > img,
#news .post-card > .fallback-cover,
#articles .post-card > img,
#articles .post-card > .fallback-cover {
  order: -10 !important;

  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 10;

  flex: 0 0 auto !important;
  align-self: stretch;

  object-fit: cover;
  object-position: center;

  margin: 0 0 12px !important;
  border-radius: 9px;
  box-sizing: border-box;
}

/* 2. ΗΜΕΡΟΜΗΝΙΑ */
#home .post-card > .news-date-badge,
#news .post-card > .news-date-badge,
#articles .post-card > .news-date-badge {
  order: 0 !important;
  align-self: flex-start !important;
  margin-bottom: 5px;
}

/* 3. ΤΙΤΛΟΣ */
#home .post-card > h3,
#news .post-card > h3,
#articles .post-card > h3 {
  order: 1 !important;
  margin: 5px 0 7px;
  width: 100%;
}

/* 4. ΘΕΜΑΤΙΚΑ TAGS */
#home .post-card > .post-topic-chips,
#news .post-card > .post-topic-chips,
#articles .post-card > .post-topic-chips {
  order: 2 !important;
}

/* 5. ΠΕΡΙΓΡΑΦΗ */
#home .post-card > p,
#news .post-card > p,
#articles .post-card > p {
  order: 3 !important;
  margin-top: 8px;
}

/* 6. ΔΙΑΒΑΣΕ ΠΕΡΙΣΣΟΤΕΡΑ - ΠΑΝΤΑ ΚΑΤΩ */
#home .post-card > .read-link,
#news .post-card > .read-link,
#articles .post-card > .read-link {
  order: 4 !important;
  margin-top: auto !important;
  padding-top: 14px;
  align-self: flex-start;
}

/* Καμία εικόνα δεν ξεχειλίζει σε κινητό */
@media (max-width: 700px) {
  #home .post-card,
  #news .post-card,
  #articles .post-card {
    min-width: 0;
    overflow: hidden;
  }
}


