/* Edupetal theme */
:root {
	--ep-brand: #b0213b;
	--ep-brand-dark: #7d1328;
	--ep-ink: #17181c;
	--ep-muted: #6b6f78;
	--ep-line: #ececf0;
	--ep-bg: #f6f6f8;
	--ep-card: #fff;
	--ep-radius: 18px;
	--ept-rail: 146px;
	--ept-head: 112px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ep-ink); background: var(--ep-bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--ep-brand); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: #fff; padding: 10px 16px; border-radius: 8px; }

/* Shared primitives (also defined by the plugin) */
.ep-card { background: var(--ep-card); border: 1px solid var(--ep-line); border-radius: var(--ep-radius); padding: 22px 24px; margin-bottom: 20px; }
.ep-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ep-line); background: #fff; color: var(--ep-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: .15s; }
.ep-btn:hover { border-color: var(--ep-ink); }
.ep-btn-primary { background: var(--ep-brand); border-color: var(--ep-brand); color: #fff; }
.ep-btn-dark { background: var(--ep-ink); border-color: var(--ep-ink); color: #fff; }
.ep-btn-dark:hover { background: #000; }
.ep-tag { display: inline-block; background: #e3eefb; color: #0d5c8f; font-size: .85rem; padding: 2px 10px; border-radius: 8px; margin-bottom: 6px; }
.ep-pill { border: 1px solid var(--ep-line); border-radius: 999px; padding: 4px 12px; background: #fff; }
.ep-muted { color: var(--ep-muted); }
.ep-icon, .ept-dot { width: 22px; height: 22px; display: inline-block; flex: none; }
.ept-dot { border-radius: 50%; border: 2px solid currentColor; width: 16px; height: 16px; }

/* Header */
.ept-header { position: sticky; top: 0; z-index: 50; height: var(--ept-head); display: flex; align-items: center; gap: 24px; padding: 0 40px; background: var(--ep-bg); }
.ept-brand { width: calc(var(--ept-rail) + 120px); flex: none; }
.ept-brand img { max-height: 56px; width: auto; }
.ept-wordmark { font-size: 2rem; font-weight: 800; color: var(--ep-brand); text-decoration: none; letter-spacing: -.03em; }
.ept-wordmark span { color: var(--ep-ink); }
.ept-search { flex: 0 1 480px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 0 20px; height: 62px; color: var(--ep-muted); }
.ept-search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 1.15rem; background: transparent; color: var(--ep-ink); }
.ept-search:focus-within { box-shadow: 0 0 0 2px var(--ep-brand); }
.ept-auth { display: flex; gap: 14px; flex: none; margin-left: auto; }
.ept-auth .ep-btn { padding: 16px 26px; font-size: 1.05rem; }
.ept-login { color: var(--ep-brand); border-color: var(--ep-line); }
.ept-burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ep-ink); }

/* Shell */
.ept-shell { display: flex; align-items: flex-start; }
.ept-rail { position: sticky; top: var(--ept-head); width: var(--ept-rail); flex: none; height: calc(100vh - var(--ept-head)); overflow-y: auto; padding: 14px 0 30px; }
.ept-rail-list { list-style: none; margin: 0; padding: 0; }
.ept-rail-list a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; text-decoration: none; color: var(--ep-muted); font-weight: 500; font-size: 1.05rem; }
.ept-rail-list .ep-icon { width: 30px; height: 30px; }
.ept-rail-list a:hover { color: var(--ep-ink); }
.ept-rail-list .current-menu-item > a { color: var(--ep-ink); font-weight: 700; }
.ept-rail-list .current-menu-item .ep-icon { color: var(--ep-brand); background: #fff; border-radius: 50%; padding: 12px; width: 58px; height: 58px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.ept-rail-sep { height: 1px; background: var(--ep-line); margin: 10px 0; }
.ept-main { flex: 1; min-width: 0; background: #fff; border-top-left-radius: 36px; min-height: calc(100vh - var(--ept-head)); padding: 26px 40px 40px; }
.ept-wrap { max-width: 1780px; margin: 0 auto; padding: 0 2%; }
.ept-narrow { max-width: 860px; }
.ept-wide { max-width: 1200px; }

/* Home grid */
.ept-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 580px; gap: 110px; max-width: 1780px; }
.ept-col-aside { position: sticky; top: calc(var(--ept-head) + 20px); }
.ep-take-test { padding: 30px 26px; border-radius: 22px; }

/* Feed */
.ept-feed { margin-top: 50px; }
.ept-feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.ept-feed-head h2 { margin: 0; font-size: 2.3rem; font-weight: 800; }
.ept-customise { padding: 14px 26px; }
.ept-customise .ep-icon { width: 18px; height: 18px; }
.ept-feed-list { display: grid; gap: 18px; }
.ept-post-card { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 18px; margin: 0; }
.ept-post-card:not(:has(.ept-thumb)) { grid-template-columns: 1fr; }
.ept-thumb img { border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ept-post-body h3 { margin: 4px 0 8px; font-size: 1.2rem; }
.ept-post-body h3 a { color: var(--ep-ink); text-decoration: none; }
.ept-post-body h3 a:hover { color: var(--ep-brand); }
.ept-post-body p { margin: 0 0 12px; }
.ept-post-body footer { display: flex; gap: 14px; align-items: center; color: var(--ep-muted); font-size: .9rem; }
.ept-pagination { margin: 26px 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ept-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--ep-line); text-decoration: none; color: var(--ep-ink); }
.ept-pagination .current { background: var(--ep-ink); color: #fff; border-color: var(--ep-ink); }
.ept-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }

/* Pages & single */
.ept-page-head h1, .ept-single h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin: 10px 0 14px; }
.ept-hero img { border-radius: 14px; width: 100%; }
.ept-hero { margin: 0 0 20px; }
.entry-content { font-size: 1.05rem; }
.entry-content > * { max-width: 100%; }
.ept-answer summary { list-style: none; margin-bottom: 12px; }
.ept-answer summary::-webkit-details-marker { display: none; }
.ept-event-card { background: #fff; }
.ept-404 { text-align: center; padding: 60px 30px; }
.search-form { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.search-form input[type=search] { padding: 10px 14px; border: 1px solid var(--ep-line); border-radius: 999px; font: inherit; min-width: 240px; }
.search-form input[type=submit] { padding: 10px 18px; border-radius: 999px; border: 0; background: var(--ep-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ept-comments .comment-list { padding-left: 0; list-style: none; }
.ept-comments .comment-body { padding: 14px 0; border-bottom: 1px solid var(--ep-line); }
.ept-comments textarea, .ept-comments input[type=text], .ept-comments input[type=email], .ept-comments input[type=url] { width: 100%; padding: 10px 12px; border: 1px solid var(--ep-line); border-radius: 10px; font: inherit; }
.ept-footer { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--ep-line); color: var(--ep-muted); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.ept-footer-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.ept-footer-menu a { color: var(--ep-muted); text-decoration: none; }
.widget { font-size: .95rem; }
.widget ul { padding-left: 18px; }

/* Responsive */
@media (max-width: 1500px) {
	.ept-home-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
	.ept-brand { width: auto; }
}
@media (max-width: 1100px) {
	:root { --ept-head: 76px; }
	.ept-home-grid { grid-template-columns: 1fr; }
	.ept-col-aside { position: static; }
	.ept-header { padding: 0 16px; gap: 12px; }
	.ept-burger { display: block; }
	.ept-wordmark { font-size: 1.5rem; }
	.ept-search { height: 46px; }
	.ept-search input { font-size: 1rem; }
	.ept-auth .ep-btn { padding: 10px 16px; font-size: .95rem; }
	.ept-rail { position: fixed; left: 0; top: 0; height: 100vh; z-index: 100; background: #fff; transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 30px rgba(0,0,0,.1); padding-top: 30px; }
	.ept-rail.is-open { transform: none; }
	.ept-scrim:not([hidden]) { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 90; }
	.ept-main { border-radius: 24px 24px 0 0; padding: 20px 16px 30px; }
}
@media (max-width: 720px) {
	.ept-search { position: absolute; top: var(--ept-head); left: 16px; right: 16px; margin: 0; }
	.ept-header { margin-bottom: 58px; }
	.ept-auth .ep-btn-dark { display: none; }
	.ept-post-card { grid-template-columns: 1fr; }
	.ept-feed-head h2 { font-size: 1.7rem; }
}

/* ---------- News feed ---------- */
.ept-topics { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding-bottom: 2px; border-bottom: 1px solid var(--ep-line); }
.ept-topics::-webkit-scrollbar { display: none; }
.ept-topics a { flex: none; padding: 10px 16px; color: var(--ep-muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ept-topics a:hover { color: var(--ep-ink); }
.ept-topics a.is-active { color: var(--ep-ink); border-bottom-color: var(--ep-brand); }

.ept-news-list { display: flex; flex-direction: column; }
.ept-news { display: grid; grid-template-columns: 1fr 200px; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--ep-line); align-items: start; }
.ept-news .ept-news-img { order: 2; display: block; text-decoration: none; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ep-bg); }
.ept-news .ept-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ept-news:hover .ept-news-img img { transform: scale(1.03); }
.ept-thumb-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 60%, #000)); }
.ept-thumb-ph span { color: #fff; font-size: 2.6rem; font-weight: 800; opacity: .9; }
.ept-news-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ept-news-cat { color: var(--ep-brand); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.ept-new { background: var(--ep-brand); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; }
.ept-news-title { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.ept-news-title a { color: var(--ep-ink); text-decoration: none; }
.ept-news-title a:hover { color: var(--ep-brand); }
.ept-news-excerpt { margin: 0 0 12px; color: var(--ep-muted); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ept-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--ep-muted); }
.ept-news-meta img { border-radius: 50%; }
.ept-news-meta .ep-comments { margin-left: auto; color: var(--ep-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ept-news-meta .ep-comments .ep-icon { width: 16px; height: 16px; }

.ept-news-lead { grid-template-columns: 1fr; padding-top: 0; }
.ept-news-lead .ept-news-img { order: 0; aspect-ratio: 16 / 8; border-radius: 16px; }
.ept-news-lead .ept-thumb-ph span { font-size: 5rem; }
.ept-news-lead .ept-news-title { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.ept-news-lead .ept-news-excerpt { -webkit-line-clamp: 3; font-size: 1.05rem; }

.ept-loadmore-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 28px 0; }
.ept-loadmore { min-width: 240px; padding: 14px 26px; }
.ept-allnews { color: var(--ep-muted); font-weight: 600; text-decoration: none; }

/* Trending */
.ept-trending h3 { margin: 0 0 8px; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ep-muted); }
.ept-trending ol { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.ept-trending li { counter-increment: t; border-bottom: 1px solid var(--ep-line); }
.ept-trending li:last-child { border-bottom: 0; }
.ept-trending a { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 14px 0; text-decoration: none; color: var(--ep-ink); }
.ept-trending a::before { content: counter(t); grid-row: span 3; font-size: 1.8rem; font-weight: 800; color: var(--ep-line); line-height: 1; }
.ept-trending a:hover strong { color: var(--ep-brand); }
.ept-trend-cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--ep-brand); letter-spacing: .04em; }
.ept-trending strong { line-height: 1.35; }
.ept-trending .ep-muted { font-size: .8rem; }

/* Single article */
.ept-standfirst { font-size: 1.2rem; color: var(--ep-muted); line-height: 1.5; margin: 0 0 16px; }
.ept-byline { padding: 14px 0; border-top: 1px solid var(--ep-line); border-bottom: 1px solid var(--ep-line); margin-bottom: 22px; font-size: .95rem; }
.ept-byline strong { color: var(--ep-ink); }
.ept-single .entry-content { font-size: 1.12rem; line-height: 1.75; }
.ept-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 8px; padding-top: 20px; border-top: 1px solid var(--ep-line); }
.ept-share > span { font-weight: 700; margin-right: 4px; }
.ept-share .ep-btn { padding: 8px 14px; font-size: .9rem; }
.ept-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ept-tags .ep-pill { text-decoration: none; color: var(--ep-ink); font-size: .85rem; }
.ept-related { margin: 10px 0 30px; }
.ept-related h2 { font-size: 1.4rem; }
.ept-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ept-related-grid .ept-news { grid-template-columns: 1fr; border: 0; padding: 0; gap: 12px; }
.ept-related-grid .ept-news-img { order: 0; aspect-ratio: 16 / 10; }
.ept-related-grid .ept-news-title { font-size: 1.05rem; }
.ept-related-grid .ept-news-excerpt { display: none; }

@media (max-width: 720px) {
	.ept-news { grid-template-columns: 1fr 104px; gap: 14px; padding: 16px 0; }
	.ept-news-lead { grid-template-columns: 1fr; }
	.ept-news-title { font-size: 1.05rem; }
	.ept-news:not(.ept-news-lead) .ept-news-excerpt { display: none; }
	.ept-thumb-ph span { font-size: 1.8rem; }
	.ept-related-grid { grid-template-columns: 1fr; }
}
