/* dimofilesteres.css — Δημοφιλέστερες Σχολές 2026 (page-dimofilesteres.php). */

.dim-wrap { max-width: 860px; }

.dim-hero { text-align: center; margin: 8px 0 34px; }
.dim-hero h1 { font-size: clamp(26px, 6vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 12px; }
.dim-lead { color: var(--text-dim); font-size: 16px; line-height: 1.65; max-width: 640px; margin: 0 auto; }

.dim-section { margin: 0 0 42px; }
.dim-section > h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; padding-left: 13px; border-left: 4px solid var(--accent); }
.dim-section p { line-height: 1.7; margin: 0 0 12px; }
.dim-note { color: var(--text-dim); font-size: 14px; margin-bottom: 16px !important; }

/* Ranked list */
.dim-list { display: flex; flex-direction: column; gap: 4px; }
.dim-row {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 10px; transition: background .15s;
}
.dim-row:hover { background: var(--surface-2); }
.dim-rank { font-size: 14px; font-weight: 800; color: var(--text-faint); text-align: center; }
.dim-row:nth-child(1) .dim-rank { color: var(--accent-dim); font-size: 16px; }
.dim-row:nth-child(2) .dim-rank, .dim-row:nth-child(3) .dim-rank { color: var(--accent); }
.dim-info { min-width: 0; }
.dim-name { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.25; }
.dim-idr { font-size: 11.5px; color: var(--text-faint); margin: 1px 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dim-track { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 999px; }
.dim-val { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* CTA */
.dim-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.dim-btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  text-decoration: none; background: var(--surface); border: 1.5px solid var(--border-2); color: var(--text); transition: all .15s;
}
.dim-btn:hover { border-color: var(--accent); color: var(--accent-dim); }
.dim-btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(234,88,12,.5); }
.dim-btn--solid:hover { background: var(--accent-dim); color: #fff; }

.dim-sources { font-size: 13px; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 16px; }
.dim-empty { color: var(--text-dim); text-align: center; padding: 40px 0; }

@media (max-width: 680px) {
  .dim-section > h2 { font-size: 20px; }
  .dim-idr { white-space: normal; }
}
