/*
 * EOTC — single blog post layout (Avada layout "Single Blog Post": title bar 2764 + content template 2785).
 * Matches the Avada Online School demo article: one centred 804px reading column, Lexend 16px/1.72 light body text,
 * large sub-headings, soft share bar, author box, full-width grey comments band, "Recent Posts" cards.
 * Loaded on single posts only by mu-plugins/eotc-mobile.php.
 */
body.single-post {
	--eotc-col: 804px;
	--eotc-green: #18b26f;
	--eotc-green-dark: #0f7b4b;
	--eotc-ink: #222;
	--eotc-body: #444;
}

/* ---- 1. Header (title bar 2764): category pill, title, meta and featured image share the same 804px column ---- */
body.single-post .fusion-tb-page-title-bar .fusion-builder-row { max-width: calc(var(--eotc-col) + 4%) !important; margin-left: auto !important; margin-right: auto !important; }
body.single-post .fusion-tb-page-title-bar .fusion-layout-column { width: 100% !important; }
body.single-post .fusion-tb-page-title-bar .fusion-image-element,
body.single-post .fusion-tb-page-title-bar .fusion-imageframe { display: block !important; width: 100% !important; max-width: none !important; }
body.single-post .fusion-tb-page-title-bar .fusion-imageframe img {
	width: 100% !important; height: auto !important; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 12px;
}

/* ---- 2. Article column ---- */
body.single-post .eotc-post-body > .fusion-builder-row,
body.single-post .eotc-post-comments > .fusion-builder-row,
body.single-post .eotc-post-recent > .fusion-builder-row { max-width: calc(var(--eotc-col) + 4%) !important; margin-left: auto !important; margin-right: auto !important; }
body.single-post .eotc-post-col > .fusion-column-wrapper { padding-left: 0 !important; padding-right: 0 !important; }
body.single-post .eotc-post-body .fusion-content-tb { padding: 0 !important; margin: 0 !important; }
body.single-post .eotc-post-body .fusion-content-tb,
body.single-post .eotc-post-body .fusion-content-tb p,
body.single-post .eotc-post-body .fusion-content-tb li {
	font-family: Lexend, sans-serif !important; font-size: 16px !important; line-height: 1.72 !important; font-weight: 300 !important; color: var(--eotc-body) !important;
}
body.single-post .eotc-post-body .fusion-content-tb p { margin: 0 0 20px !important; }
body.single-post .eotc-post-body .fusion-content-tb strong,
body.single-post .eotc-post-body .fusion-content-tb b { font-weight: 600 !important; color: var(--eotc-ink); }
/* no red drop-cap box */
body.single-post .eotc-post-body .fusion-dropcap {
	float: none !important; display: inline !important; background: none !important; color: inherit !important; font-size: inherit !important;
	line-height: inherit !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; width: auto !important; height: auto !important;
}
/* sub-headings: large and clear (overrides the old 20px h3 rule in legacy.css) */
body.single-post .eotc-post-body .fusion-content-tb h2 { font-size: 36px !important; line-height: 1.3 !important; font-weight: 500 !important; color: var(--eotc-ink) !important; margin: 40px 0 16px !important; }
body.single-post .eotc-post-body .fusion-content-tb h3 { font-size: 30px !important; line-height: 1.3 !important; font-weight: 500 !important; color: var(--eotc-ink) !important; margin: 36px 0 14px !important; }
body.single-post .eotc-post-body .fusion-content-tb h4 { font-size: 22px !important; line-height: 1.35 !important; font-weight: 500 !important; color: var(--eotc-ink) !important; margin: 28px 0 10px !important; }
/* lists: green "+" markers like the demo checklist */
body.single-post .eotc-post-body .fusion-content-tb ul { list-style: none !important; padding-left: 0 !important; margin: 0 0 22px !important; }
body.single-post .eotc-post-body .fusion-content-tb ul > li { position: relative; padding-left: 26px !important; margin-bottom: 8px !important; }
body.single-post .eotc-post-body .fusion-content-tb ul > li::before { content: "+"; position: absolute; left: 4px; top: 0; color: var(--eotc-green); font-weight: 600; }
body.single-post .eotc-post-body .fusion-content-tb ol { padding-left: 22px !important; margin: 0 0 22px !important; }
body.single-post .eotc-post-body .fusion-content-tb ol > li { margin-bottom: 8px !important; padding-left: 4px; }
/* links */
body.single-post .eotc-post-body .fusion-content-tb a { color: var(--eotc-green-dark) !important; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
/* quotes: green panel with a yellow edge (demo style) */
body.single-post .eotc-post-body .fusion-content-tb blockquote {
	margin: 28px 0 !important; padding: 24px 28px !important; border: 0 !important; border-left: 4px solid #fcc943 !important;
	background: #ecf9ee !important; border-radius: 0 12px 12px 0; font-style: normal !important;
}
body.single-post .eotc-post-body .fusion-content-tb blockquote p { font-size: 17px !important; font-weight: 400 !important; color: var(--eotc-ink) !important; margin: 0 !important; }
/* images inside the article */
body.single-post .eotc-post-body .fusion-content-tb img { border-radius: 12px; height: auto; max-width: 100%; }
body.single-post .eotc-post-body .fusion-content-tb figure,
body.single-post .eotc-post-body .fusion-content-tb .wp-block-image { margin: 28px 0 !important; }

/* ---- 3. Share bar ---- */
body.single-post .eotc-share-box > .fusion-column-wrapper {
	display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: 40px !important; padding: 22px 28px !important; border-radius: 14px; background: #eaf7fb !important;
}
body.single-post .eotc-share-box .fusion-title { margin: 0 !important; flex: 1 1 auto; }
body.single-post .eotc-share-box .fusion-title-heading { font-size: 15px !important; font-weight: 500 !important; color: var(--eotc-ink) !important; margin: 0 !important; }
body.single-post .eotc-share-box .fusion-sharing-box,
body.single-post .eotc-share-box .fusion-social-networks { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
body.single-post .eotc-share-box .fusion-social-networks-wrapper { gap: 4px; justify-content: flex-end; }
body.single-post .eotc-share-box a.fusion-social-network-icon { color: #1d6fa5 !important; font-size: 16px !important; }

/* ---- 4. Author box ---- */
body.single-post .eotc-author-box > .fusion-column-wrapper {
	margin-top: 24px !important; padding: 28px 32px !important; border: 0 !important; border-radius: 14px; background: #f5f3ff !important;
	display: grid !important; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; text-align: left !important;
}
body.single-post .eotc-author-box .fusion-image-element { grid-row: 1 / span 2; margin: 0 !important; }
body.single-post .eotc-author-box .fusion-image-element img { width: 64px !important; height: 64px !important; border-radius: 50%; object-fit: cover; }
body.single-post .eotc-author-box .fusion-title { margin: 0 !important; text-align: left !important; }
body.single-post .eotc-author-box .fusion-title-heading { font-size: 17px !important; font-weight: 600 !important; text-align: left !important; color: var(--eotc-ink) !important; }
body.single-post .eotc-author-box .fusion-text { margin: 6px 0 0 !important; text-align: left !important; font-size: 15px; line-height: 1.6; color: var(--eotc-body); font-weight: 300; }
body.single-post .eotc-author-box .fusion-text:empty { display: none; }

/* ---- 5. Comments: full-width light grey band ---- */
body.single-post .fusion-fullwidth.eotc-post-comments { background: #f7f7f7 !important; }
body.single-post .eotc-post-comments h2,
body.single-post .eotc-post-comments h3 { font-size: 20px !important; font-weight: 500 !important; color: var(--eotc-ink) !important; }
body.single-post .eotc-post-comments .comment-respond textarea,
body.single-post .eotc-post-comments .comment-respond input[type="text"],
body.single-post .eotc-post-comments .comment-respond input[type="email"],
body.single-post .eotc-post-comments .comment-respond input[type="url"] {
	background: #fff !important; border: 1px solid #e6e6e6 !important; border-radius: 6px !important; font-size: 15px !important; box-shadow: none !important;
}
body.single-post .eotc-post-comments .comment-respond input[type="submit"],
body.single-post .eotc-post-comments .comment-respond .fusion-button {
	background: var(--eotc-green) !important; border: 0 !important; border-radius: 8px !important; color: #fff !important; padding: 14px 26px !important; font-weight: 600 !important;
}
body.single-post .eotc-post-comments .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* ---- 6. Recent posts ---- */
body.single-post .eotc-recent-title .fusion-title-heading { font-size: 36px !important; font-weight: 500 !important; color: var(--eotc-ink) !important; }
body.single-post .eotc-recent-posts li.eotc-hide-card,
body.single-post .eotc-recent-posts li.eotc-extra-card { display: none !important; }

/* ---- 7. Phones ---- */
@media (max-width: 767px) {
	body.single-post .eotc-post-body .fusion-content-tb h2 { font-size: 28px !important; }
	body.single-post .eotc-post-body .fusion-content-tb h3 { font-size: 24px !important; margin-top: 28px !important; }
	body.single-post .eotc-share-box > .fusion-column-wrapper { padding: 18px 20px !important; justify-content: center; text-align: center; }
	body.single-post .eotc-share-box .fusion-social-networks-wrapper { justify-content: center; }
	body.single-post .eotc-author-box > .fusion-column-wrapper { padding: 22px 20px !important; }
	body.single-post .eotc-recent-title .fusion-title-heading { font-size: 28px !important; }
	body.single-post .fusion-tb-page-title-bar .fusion-imageframe img { border-radius: 10px; }
}

/* ---- 8. Post content built with Avada (its own section inside the template column): no extra 30px indent ---- */
body.single-post .eotc-post-body .fusion-content-tb .fusion-fullwidth { padding-left: 0 !important; padding-right: 0 !important; }
body.single-post .eotc-post-body .fusion-content-tb .fusion-fullwidth > .fusion-builder-row { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: 100% !important; }
body.single-post .eotc-post-body .fusion-content-tb .fusion-layout-column > .fusion-column-wrapper { margin-left: 0 !important; margin-right: 0 !important; }
/* body / comments / recent columns line up exactly with the title bar column */
@media (min-width: 768px) {
	body.single-post .eotc-post-col { width: 100% !important; max-width: calc(var(--eotc-col) + 3px) !important; margin-left: auto !important; margin-right: auto !important; flex: 0 1 auto !important; }
	body.single-post .eotc-post-col > .fusion-column-wrapper { margin-left: 0 !important; margin-right: 0 !important; }
}

/* ---- 9. Share bar: title and icons on one line, compact icons ---- */
body.single-post .eotc-share-box > .fusion-column-wrapper { flex-direction: row !important; flex-wrap: wrap !important; }
body.single-post .eotc-share-box .fusion-title { flex: 1 1 260px !important; width: auto !important; }
body.single-post .eotc-share-box .fusion-sharing-box { flex: 0 1 auto !important; width: auto !important; }
body.single-post .eotc-share-box .fusion-social-networks { flex-wrap: wrap; }
body.single-post .eotc-share-box .fusion-social-networks > span,
body.single-post .eotc-share-box .fusion-social-networks a { height: auto !important; line-height: 1 !important; }
body.single-post .eotc-share-box .fusion-social-networks a { display: inline-flex !important; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }
body.single-post .eotc-share-box .fusion-social-network-icon { margin: 0 !important; }
/* drop cap fully neutralised: the first letter reads as normal text */
body.single-post .eotc-post-body .fusion-dropcap { font: inherit !important; text-transform: none !important; vertical-align: baseline !important; letter-spacing: inherit !important; }
body.single-post .eotc-post-body .fusion-dropcap::before, body.single-post .eotc-post-body .fusion-dropcap::after { content: none !important; }
/* share bar: no extra space under the icons; tight icon row on phones */
body.single-post .eotc-share-box > .fusion-column-wrapper { min-height: 0 !important; padding-bottom: 22px !important; }
body.single-post .eotc-share-box > .fusion-column-wrapper::before,
body.single-post .eotc-share-box > .fusion-column-wrapper::after { display: none !important; }
body.single-post .eotc-share-box .fusion-sharing-box, body.single-post .eotc-share-box .fusion-title { margin-bottom: 0 !important; min-height: 0 !important; }
body.single-post .eotc-share-box .fusion-sharing-box > *:not(.fusion-social-networks) { display: none !important; }
body.single-post .eotc-share-box .fusion-social-networks { display: flex !important; flex-wrap: wrap !important; gap: 2px !important; justify-content: flex-start !important; }
@media (max-width: 767px) {
	body.single-post .eotc-share-box > .fusion-column-wrapper { text-align: left; justify-content: flex-start; }
	body.single-post .eotc-share-box .fusion-title { flex-basis: 100% !important; }
	body.single-post .eotc-share-box .fusion-social-networks a { min-width: 40px; min-height: 40px; }
}
body.single-post .eotc-share-box .fusion-social-networks > span { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }
/* tighter gap between the featured image and the article */
body.single-post .fusion-tb-page-title-bar > .fusion-fullwidth:last-child { padding-bottom: 40px !important; }
body.single-post .fusion-fullwidth.eotc-post-body { padding-top: 0 !important; }
/* share bar: 6 networks families actually use (Facebook, X, LinkedIn, WhatsApp, Telegram, Email) — others hidden here only */
body.single-post .eotc-share-box .fusion-social-networks > span:has(.fusion-bluesky, .fusion-reddit, .fusion-tumblr, .fusion-pinterest, .fusion-xing) { display: none !important; }
@media (max-width: 767px) {
	body.single-post .eotc-share-box > .fusion-column-wrapper { padding-left: 16px !important; padding-right: 16px !important; }
	body.single-post .eotc-share-box .fusion-social-networks { gap: 0 !important; }
}

/* ---- 10. Photos inside articles (portrait event photos, <figure class="eotc-photo">) ---- */
body.single-post .eotc-post-body .fusion-content-tb figure.eotc-photo { margin: 28px auto 32px !important; max-width: 420px; text-align: center; }
body.single-post .eotc-post-body .fusion-content-tb figure.eotc-photo img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px -14px rgba(16, 24, 40, .35); }
body.single-post .eotc-post-body .fusion-content-tb figure.eotc-photo figcaption { margin-top: 10px; font-size: 14px !important; line-height: 1.5; color: #667085 !important; font-style: italic; }
@media (max-width: 767px) { body.single-post .eotc-post-body .fusion-content-tb figure.eotc-photo { max-width: 100%; } }

/* ---- 11. Wide photos and pairs of photos (event write-ups): <figure class="eotc-photo is-wide">, <div class="eotc-photo-row"> ---- */
body.single-post .eotc-post-body .fusion-content-tb figure.eotc-photo.is-wide { max-width: 100%; }
body.single-post .eotc-post-body .fusion-content-tb .eotc-photo-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin: 28px 0 32px; }
body.single-post .eotc-post-body .fusion-content-tb .eotc-photo-row figure.eotc-photo { margin: 0 !important; max-width: 100%; }
@media (max-width: 767px) { body.single-post .eotc-post-body .fusion-content-tb .eotc-photo-row { gap: 10px; } }
