/* ============================================================================
   themata-v8.css — Θέματα (articles hub) for /themata and /themata/{category}
   Same design tokens as home-v8 (DM Serif Display + Inter, accent #5089b0).
   Self-contained: does not require home-v8.css. Loads after bootstrap.css.
   ============================================================================ */
:root {
    --th-bg: #FFFFFF;
    --th-text: #1A1A1A;
    --th-muted: #6E7780;
    --th-line: #E8ECEF;
    --th-accent: #5089b0;
    --th-accent-dark: #356a90;
    --th-accent-soft: #EAF1F6;
    --th-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --th-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.themata-v8 { background: var(--th-bg); color: var(--th-text); font-family: var(--th-ui); }
.themata-v8 a { transition: color .15s ease; }

/* ─────────── Hero band ─────────── */
.th-hero {
    margin-top: 84px;                       /* clear fixed navbar */
    background: linear-gradient(180deg, var(--th-accent-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--th-line);
    padding: 44px 0 26px;
}
@media (max-width: 767px) { .th-hero { margin-top: 50px; padding: 26px 0 16px; } }
.th-hero .container { max-width: 1170px; }
.th-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: var(--th-accent); margin: 0 0 10px;
}
.th-eyebrow a { color: inherit; text-decoration: none; }
.th-h1 {
    font-family: var(--th-display); font-weight: 400; letter-spacing: -0.5px;
    font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; margin: 0 0 12px; color: var(--th-text);
}
.th-lead { font-size: 16px; line-height: 1.65; color: #3a4148; max-width: 820px; margin: 0 0 18px; font-weight: 300; }
.th-lead p { margin: 0 0 10px; }
.th-lead a { color: var(--th-accent-dark); text-decoration: underline; }
.th-intro { font-size: 15.5px; line-height: 1.7; color: #3a4148; max-width: 860px; margin: 0 0 14px; }
.th-intro p { margin: 0 0 10px; }
.th-intro a { color: var(--th-accent-dark); text-decoration: underline; }

/* search */
.th-search { display: flex; max-width: 520px; margin: 0 0 18px; }
.th-search input {
    flex: 1; height: 44px; border: 1px solid #cfd6dc; border-right: 0; border-radius: 22px 0 0 22px;
    padding: 0 18px; font: 14px var(--th-ui); color: var(--th-text); background: #fff; outline: none;
}
.th-search input:focus { border-color: var(--th-accent); }
.th-search button {
    height: 44px; padding: 0 20px; border: 0; border-radius: 0 22px 22px 0; background: var(--th-accent);
    color: #fff; font: 600 13px var(--th-ui); letter-spacing: .5px; cursor: pointer;
}
.th-search button:hover { background: var(--th-accent-dark); }

/* category chips */
.th-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.th-chips li { margin: 0; }
.th-chips a {
    display: inline-block; padding: 8px 14px; border: 1px solid #cfd6dc; border-radius: 20px; background: #fff;
    color: var(--th-text); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; line-height: 1.2;
}
.th-chips a:hover { border-color: var(--th-accent); color: var(--th-accent-dark); }
.th-chips a.active, .th-chips a.active:hover { background: var(--th-text); border-color: var(--th-text); color: #fff; }
.th-chips a span { color: var(--th-muted); font-weight: 400; margin-left: 4px; font-size: 12px; }
.th-chips a.active span { color: rgba(255,255,255,.7); }
@media (max-width: 767px) {
    .th-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-right: -15px; padding-right: 15px; scrollbar-width: none; }
    .th-chips::-webkit-scrollbar { display: none; }
}

/* ─────────── Breadcrumb ─────────── */
.th-crumb { font-size: 12px; color: var(--th-muted); padding: 14px 0 0; }
.th-crumb a { color: var(--th-accent-dark); text-decoration: none; }
.th-crumb a:hover { text-decoration: underline; }
.th-crumb .sep { margin: 0 6px; color: #b9c2ca; }

/* ─────────── Sections ─────────── */
.th-main { padding-bottom: 30px; }
.th-main .container { max-width: 1170px; }
.th-section { padding: 30px 0 6px; }
.th-section + .th-section { border-top: 1px solid var(--th-line); }
.th-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.th-section-head h2 {
    font-family: var(--th-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15;
    margin: 0; letter-spacing: -0.3px; color: var(--th-text);
}
.th-section-head h2 a { color: inherit; text-decoration: none; }
.th-section-head h2 a:hover { color: var(--th-accent-dark); }
.th-section-head p { margin: 4px 0 0; font-size: 14px; color: var(--th-muted); max-width: 720px; }
.th-more { flex: none; font-size: 13px; font-weight: 600; color: var(--th-accent-dark); text-decoration: none; white-space: nowrap; padding-bottom: 2px; }
.th-more:hover { text-decoration: underline; }
@media (max-width: 600px) { .th-section-head { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* ─────────── Card grid ─────────── */
.th-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 22px; margin: 0 0 20px; }
.th-grid.th-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
@media (max-width: 991px) { .th-grid, .th-grid.th-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .th-grid, .th-grid.th-grid-4 { grid-template-columns: 1fr; gap: 20px; } }

.th-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--th-line); border-radius: 10px;
    overflow: hidden; transition: box-shadow .2s ease, transform .2s ease;
}
.th-card:hover { box-shadow: 0 10px 28px rgba(26,26,26,.09); transform: translateY(-2px); }
.th-card-media { display: block; position: relative; background: #f2f4f6; aspect-ratio: 16 / 10; overflow: hidden; }
.th-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .35s ease; }
.th-card:hover .th-card-media img { transform: scale(1.03); }
.th-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.th-card-cat { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--th-accent); text-decoration: none; margin-bottom: 6px; }
.th-card-cat:hover { color: var(--th-accent-dark); }
.th-card-title { font-family: var(--th-display); font-weight: 400; font-size: 19px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.2px; }
.th-grid-4 .th-card-title { font-size: 17px; }
.th-card-title a { color: var(--th-text); text-decoration: none; }
.th-card-title a:hover { color: var(--th-accent-dark); }
.th-card-excerpt { font-size: 13.5px; line-height: 1.55; color: #4b535b; margin: 0 0 10px; flex: 1; }
.th-grid-4 .th-card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-card-meta { font-size: 12px; color: var(--th-muted); }

/* compact (popular) cards */
.th-compact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; margin: 0 0 12px; counter-reset: pop; }
@media (max-width: 991px) { .th-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .th-compact { grid-template-columns: 1fr; } }
.th-pop { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--th-line); border-radius: 10px; text-decoration: none; color: var(--th-text); background: #fff; }
.th-pop:hover { border-color: var(--th-accent); color: var(--th-text); }
.th-pop img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; background: #f2f4f6; }
.th-pop-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.th-pop-cat { display: block; font-size: 11px; color: var(--th-muted); margin-top: 3px; font-weight: 400; }

/* ─────────── Boxes ─────────── */
.th-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    background: var(--th-text); color: #fff; border-radius: 12px; padding: 22px 26px; margin: 26px 0 6px;
}
.th-cta strong { font-family: var(--th-display); font-weight: 400; font-size: 22px; line-height: 1.2; display: block; }
.th-cta span { font-size: 14px; opacity: .8; display: block; margin-top: 4px; }
.th-cta a.th-btn { flex: none; background: #fff; color: var(--th-text); border-radius: 22px; padding: 11px 22px; font-weight: 600; font-size: 14px; text-decoration: none; }
.th-cta a.th-btn:hover { background: var(--th-accent-soft); }

.th-eeat {
    display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
    border: 1px solid var(--th-line); border-radius: 12px; padding: 20px 22px; margin: 26px 0 10px; background: #fafbfc;
}
.th-eeat-logo { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--th-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.th-eeat-logo img { width: 44px; height: auto; }
.th-eeat h2 { font-family: var(--th-display); font-weight: 400; font-size: 20px; margin: 0 0 6px; }
.th-eeat p { font-size: 14px; line-height: 1.6; color: #3a4148; margin: 0 0 6px; }
.th-eeat a { color: var(--th-accent-dark); }
@media (max-width: 480px) { .th-eeat { grid-template-columns: 1fr; } }

.th-empty { padding: 30px 0; color: var(--th-muted); font-size: 15px; }
.th-notice { background: #fff6e5; border: 1px solid #f3d9a4; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 16px 0 0; }
.gap { height: 20px; }
