/* ==========================================================================
   APTH: στοιχεία σε όλο το site (header, footer, κουμπιά, components των shortcodes)
   Breakpoints Flatsome: medium ≤ 849px, small ≤ 549px.
   ========================================================================== */

/* ---------- Λωρίδα φορέων ([apth_partner_logos] στο Top Bar, ΟΧΙ sticky) ---------- */
#top-bar.header-top { min-height: 0; padding: 12px 0; background-color: #fff; border-bottom: 1px solid var(--apth-ink); }
/* Ίδιο container με το κύριο header (max-width 1240 px, padding 15 px): ευθυγράμμιση με το logo. */
#top-bar .flex-row { max-width: 1240px; padding: 0 15px; }
#top-bar .flex-col { margin: 0; padding: 0; }
#top-bar .flex-col.flex-left,
#top-bar .flex-col.flex-right { display: none; }
#top-bar .flex-col.flex-center,
#top-bar .flex-col.flex-grow { flex: 1 1 auto; max-width: 100%; }
#top-bar .nav { display: block; width: 100%; margin: 0; }
#top-bar .nav > li.html_topbar_right { display: block; width: 100%; margin: 0; padding: 0; }
.apth-partners__list { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0; padding: 0; list-style: none; }
.apth-partners__item { display: flex; align-items: center; justify-content: center; margin: 0 !important; padding: 0; }
.apth-partners__item picture,
.apth-partners__link { display: block; line-height: 0; }
.apth-partners__link:focus-visible { outline-offset: 4px; }
img.apth-partners__img { display: block; width: auto; height: 56px; max-width: 220px; object-fit: contain; }

/* ---------- Header ---------- */
.header-wrapper .header-main,
.header-wrapper.stuck .header-main { background-color: var(--apth-paper); border-bottom: 2px solid var(--apth-ink); }
.header-main .header-inner { gap: 16px; }

/* Logo CONSPIRAPOP (PNG/WebP 96 px ύψος, εμφάνιση 48 / 36 px). */
#logo { width: auto !important; }
#logo .apth-logo { display: block; line-height: 0; }
#logo .apth-logo picture { display: block; }
#logo img.apth-logo__img { display: block; width: auto; height: 48px; max-height: none; }

/* Μενού στο κέντρο, ανάμεσα σε λογότυπο και κουμπί. */
#masthead .flex-col.flex-left.flex-grow .nav-left { justify-content: center; }
.header-nav-main.nav > li { margin: 0 12px; }
.header-nav-main.nav > li > a { font-family: var(--apth-font-body); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--apth-ink); }
.header-nav-main.nav > li > a:hover,
.header-nav-main.nav > li.active > a,
.header-nav-main.nav > li.current-menu-item > a { color: var(--apth-accent-text); }

.header-nav .html_topbar_left .apth-lang { font-size: 14px; font-weight: 600; color: var(--apth-ink-muted); }
.header-nav .html_topbar_left .apth-lang:hover { color: var(--apth-accent-text); }

.header-button-1 .button {
	display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 20px;
	background: var(--apth-ink); color: var(--apth-paper); border: 0; border-radius: 0; box-shadow: none;
	font-family: var(--apth-font-body); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; line-height: 1;
}
.header-button-1 .button:hover { background: var(--apth-accent); color: var(--apth-on-accent); box-shadow: none; }

/* Μενού κινητού (off-canvas). */
.mobile-nav .icon-menu { color: var(--apth-ink); }
.off-canvas .nav-sidebar > li > a { font-family: var(--apth-font-body); font-weight: 600; text-transform: none; color: var(--apth-ink); }

/* Στενό desktop/tablet οριζόντιο: ό,τι χρειάζεται για να χωρέσει το μενού σε μία γραμμή. */
@media (min-width: 850px) and (max-width: 1099px) {
	.header-main .header-inner { gap: 8px; }
	.header-nav-main.nav > li { margin: 0 6px; }
	.header-nav-main.nav > li > a { font-size: 14px; }
	#logo img.apth-logo__img { height: 40px; }
	.header-button-1 .button { padding: 0 14px; font-size: 14px; }
}

@media (max-width: 849px) {
	#logo img.apth-logo__img { height: 36px; }
}

/* Κινητό: φορείς σε πλέγμα 2 × 2, ύψος 40 px. */
@media (max-width: 767px) {
	#top-bar.header-top { padding: 10px 0; }
	.apth-partners__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
	img.apth-partners__img { height: 40px; max-width: 100%; }
}

/* ---------- Κοινά ---------- */
.apth-eyebrow { margin: 0 0 12px; font-family: var(--apth-font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--apth-accent-text); }
.apth-eyebrow--muted { color: var(--apth-ink-muted); }
.apth-eyebrow--on-dark { color: var(--apth-accent-on-dark); }
.apth-glitch { text-shadow: 3px 0 0 var(--apth-accent), -3px 0 0 var(--apth-violet); }

/* ---------- Instant Quiz ([apth_instant_quiz]) ---------- */
.apth-iq { display: flex; flex-direction: column; gap: 24px; padding: 32px; background: #fff; border: 2px solid var(--apth-ink); box-shadow: 8px 8px 0 var(--apth-ink); color: var(--apth-ink); }
.apth-iq [hidden] { display: none !important; }
.apth-iq__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; color: var(--apth-ink-muted); }
.apth-iq__quote { margin: 0; padding: 0; border: 0; background: none; font-family: var(--apth-font-head); font-style: normal; font-weight: 800; font-size: 28px; line-height: 1.3; color: var(--apth-ink); }
.apth-iq__question { margin: 0 0 12px; font-weight: 600; font-size: 15px; }
.apth-iq__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.apth-iq .apth-iq__option {
	min-height: 56px; margin: 0; padding: 8px 12px; width: 100%;
	background: var(--apth-paper); color: var(--apth-ink); border: 2px solid var(--apth-ink); border-radius: 0; box-shadow: none;
	font-family: var(--apth-font-head); font-weight: 800; font-size: 17px; line-height: 1.2; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.apth-iq .apth-iq__option:hover { background: var(--apth-ink); color: var(--apth-paper); }
.apth-iq__result { display: flex; flex-direction: column; gap: 16px; }
.apth-iq__verdict { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 20px; background: var(--apth-ink); color: var(--apth-paper); font-size: 16px; }
.apth-iq__verdict strong { color: inherit; }
.apth-iq__verdict .apth-iq__correct { color: var(--apth-accent-on-dark); }
.apth-iq__explain { margin: 0; font-size: 16px; line-height: 1.55; color: var(--apth-ink-soft); }
.apth-iq__dist { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.apth-iq__dist-title { font-weight: 600; }
.apth-iq__bar { display: flex; height: 28px; border: 2px solid var(--apth-ink); }
.apth-iq__seg { flex: 1; }
.apth-iq__seg--real { background: var(--apth-ink); }
.apth-iq__seg--fake { background: var(--apth-accent); }
.apth-iq__seg--conspiracy { background: var(--apth-violet-light); }
.apth-iq__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; color: var(--apth-ink-soft); }
.apth-iq__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.apth-iq .apth-iq__again {
	min-height: 44px; margin: 0; padding: 0 18px; background: transparent; color: var(--apth-ink); border: 2px solid var(--apth-ink); border-radius: 0;
	font-family: var(--apth-font-body); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.apth-iq .apth-iq__again:hover { background: var(--apth-ink); color: var(--apth-paper); }
.apth-iq__analysis { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--apth-accent); color: var(--apth-on-accent); font-weight: 700; font-size: 15px; }
.apth-iq__analysis:hover { background: var(--apth-ink); color: var(--apth-on-accent); }

@media (max-width: 549px) {
	.apth-iq { padding: 20px; gap: 20px; box-shadow: 6px 6px 0 var(--apth-ink); }
	.apth-iq__quote { font-size: 22px; }
	.apth-iq__options { grid-template-columns: 1fr; }
	.apth-iq__legend { flex-direction: column; }
}

/* ---------- Κάρτες quiz ([apth_latest_quizzes]) ---------- */
.apth-quiz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.apth-quiz-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: #fff; border: 2px solid var(--apth-ink); }
.apth-quiz-card__badges { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; }
.apth-badge { padding: 3px 8px; border: 1px solid var(--apth-ink); }
.apth-badge--ink { padding: 4px 8px; border: 0; background: var(--apth-ink); color: var(--apth-paper); }
.apth-quiz-card__title { margin: 0; font-family: var(--apth-font-head); font-weight: 800; font-size: 22px; line-height: 1.25; }
.apth-quiz-card__start { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--apth-accent); color: var(--apth-on-accent); font-weight: 700; }
.apth-quiz-card__start:hover { background: var(--apth-ink); color: var(--apth-on-accent); }

/* ---------- Footer (UX Block apth-footer + κάτω γραμμή) ---------- */
.apth-footer { color: var(--apth-on-dark); }
.apth-footer__title { margin: 0 0 16px; font-family: var(--apth-font-head); font-weight: 900; font-size: 24px; line-height: 1.25; color: var(--apth-paper); }
.apth-newsletter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.apth-newsletter input[type=email] {
	flex: 1 1 240px; min-height: 48px; height: auto; margin: 0; padding: 0 16px;
	background: transparent; color: var(--apth-paper); border: 2px solid var(--apth-paper); border-radius: 0; box-shadow: none; font-size: 16px;
}
.apth-newsletter input[type=email]::placeholder { color: #A8A397; }
.apth-newsletter button {
	min-height: 48px; margin: 0; padding: 0 22px; background: var(--apth-accent); color: var(--apth-on-accent); border: 0; border-radius: 0;
	font-family: var(--apth-font-head); font-weight: 800; font-size: 16px; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.apth-newsletter button:hover { background: var(--apth-paper); color: var(--apth-ink); }
.apth-footer__note { margin: 0; font-size: 13px; color: var(--apth-on-dark); }
.apth-menu__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.apth-menu .apth-menu__list li { margin: 0; }
.apth-menu__list a { font-size: 15px; color: var(--apth-on-dark); }
.apth-menu__list a:hover { color: var(--apth-accent-on-dark); }

/* Κείμενο χρηματοδότησης (Ρυθμίσεις → Φορείς), πάνω από τη γραμμή copyright:
   λογότυπο χρηματοδότη σε λευκό πλαίσιο + μικρός τίτλος + κείμενο. */
.apth-funding { padding: 0 0 28px; background-color: var(--apth-ink); color: var(--apth-on-dark); }
.apth-funding .container { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.apth-funding__inner { display: flex; align-items: center; gap: 28px; }
.apth-funding__logo { flex: 0 0 auto; display: block; padding: 12px 16px; background: #fff; line-height: 0; }
.apth-funding__logo picture { display: block; }
img.apth-funding__img { display: block; width: auto; height: 52px; max-width: 220px; object-fit: contain; }
a.apth-funding__logo:focus-visible { outline: 3px solid var(--apth-accent-on-dark); outline-offset: 3px; }
.apth-funding__body { max-width: 880px; }
.apth-funding__label { margin: 0 0 6px; font-family: var(--apth-font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--apth-accent-on-dark); }
.apth-funding__text { font-size: 14px; line-height: 1.6; }
.apth-funding__text p { margin: 0 0 8px; }
.apth-funding__text p:last-child { margin-bottom: 0; }
.apth-funding__text strong { font-weight: 600; color: var(--apth-paper); }
.apth-funding__text a { color: var(--apth-paper); text-decoration: underline; text-underline-offset: 2px; }
.apth-funding__text a:hover { color: var(--apth-accent-on-dark); }

@media (max-width: 767px) {
	.apth-funding__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
	img.apth-funding__img { height: 40px; }
	.apth-funding__text { font-size: 13.5px; }
}

.absolute-footer { padding: 0 0 20px; background-color: var(--apth-ink) !important; color: var(--apth-on-dark); font-size: 13px; }
.absolute-footer .container { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.absolute-footer .footer-text, .absolute-footer .copyright-footer { color: var(--apth-on-dark); opacity: 1; }
