/* PhysicsTeacher Home – all selectors are namespaced with .pt- to avoid theme clashes.
   Change the brand colours in the variables below. */
.pt-home {
	--pt-primary: #1d4ed8;      /* main brand colour */
	--pt-primary-dark: #1e3a8a;
	--pt-accent: #f59e0b;
	--pt-ink: #0f172a;
	--pt-muted: #475569;
	--pt-bg: #ffffff;
	--pt-alt: #f1f5f9;
	--pt-border: #e2e8f0;
	--pt-radius: 16px;
	color: var(--pt-ink);
	font-size: 1rem;
	line-height: 1.6;
}
.pt-home *, .pt-home *::before, .pt-home *::after { box-sizing: border-box; }
.pt-home ul { list-style: none; margin: 0; padding: 0; }
.pt-home a { text-decoration: none; }
/* Remove theme spacing above/around the homepage content (gap under the menu) */
body.pt-front { overflow-x: clip; }
body.pt-front .site-content,
body.pt-front .site-main,
body.pt-front #main,
body.pt-front #content,
body.pt-front main,
body.pt-front article,
body.pt-front .entry-content,
body.pt-front .post-content,
body.pt-front .page-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
body.pt-front .entry-header,
body.pt-front .page-header,
body.pt-front .entry-title { display: none; }           /* hides the page title above the hero */
body.pt-front .entry-content > p:empty,
body.pt-front .entry-content > .pt-home + p:empty { display: none; }
/* Full-width hero/sections even if the theme uses a narrow content column */
body.pt-front .pt-home { width: 100vw; position: relative; left: 50%; margin: 0 0 0 -50vw; }

.pt-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.pt-hero {
	background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%); /* light; use #ffffff for plain white */
	color: var(--pt-ink);
	padding: 48px 0 40px;
	text-align: center;
	border-bottom: 1px solid var(--pt-border);
}
.pt-eyebrow {
	display: inline-block; margin: 0 0 16px; padding: 4px 14px;
	background: #dbeafe; color: var(--pt-primary-dark); border-radius: 999px;
	font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.pt-hero h1 {
	margin: 0 auto 16px; max-width: 820px; color: var(--pt-ink);
	font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15;
}
.pt-lead { margin: 0 auto 28px; max-width: 680px; font-size: 1.1rem; color: var(--pt-muted); }

.pt-search {
	display: flex; max-width: 620px; margin: 0 auto 24px;
	background: #fff; border: 1px solid var(--pt-border); border-radius: 999px; padding: 6px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.pt-search input[type="search"] {
	flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none;
	padding: 12px 18px; font-size: 1rem; color: var(--pt-ink); outline: none;
}
.pt-search button {
	border: 0; cursor: pointer; border-radius: 999px; padding: 12px 26px;
	background: var(--pt-accent); color: #111827; font-weight: 700; font-size: 1rem;
}
.pt-search button:hover { filter: brightness(1.07); }
.pt-search:focus-within { outline: 3px solid var(--pt-accent); outline-offset: 2px; }

.pt-audience { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pt-audience li {
	padding: 4px 14px; border: 1px solid var(--pt-border); background: #fff; color: var(--pt-primary-dark);
	border-radius: 999px; font-size: .9rem; font-weight: 600;
}

/* Sections */
.pt-section { padding: 64px 0; background: var(--pt-bg); }
.pt-alt { background: var(--pt-alt); }
.pt-hero + .pt-section { padding-top: 36px; }   /* tighter gap right after the hero */
.pt-h2 { margin: 0 0 8px; text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--pt-ink); }
.pt-sub { margin: 0 0 36px; text-align: center; color: var(--pt-muted); }

/* Cards */
.pt-home .pt-grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pt-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pt-card {
	--c: var(--pt-primary);
	display: flex; flex-direction: column; height: 100%; padding: 24px;
	background: color-mix(in srgb, var(--c) 5%, #fff);
	border: 2px solid var(--c); border-top-width: 8px;
	border-radius: var(--pt-radius); color: var(--pt-ink);
	box-shadow: 0 4px 14px rgba(15, 23, 42, .10);
	transition: transform .2s ease, box-shadow .2s ease;
}
.pt-card:hover, .pt-card:focus-visible {
	transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15, 23, 42, .18);
}
.pt-card:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.pt-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; margin-bottom: 14px; font-size: 1.6rem; border-radius: 14px;
	background: color-mix(in srgb, var(--c) 18%, #fff);
	border: 2px solid var(--c);
}
.pt-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.pt-card-desc { flex: 1; color: var(--pt-muted); font-size: .95rem; }
.pt-card-foot {
	display: flex; justify-content: space-between; align-items: center;
	margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--c);
}
.pt-arrow { transition: transform .2s ease; }
.pt-card:hover .pt-arrow { transform: translateX(5px); }

.pt-c1  { --c: #2563eb; }
.pt-c2  { --c: #16a34a; }
.pt-c3  { --c: #ea580c; }
.pt-c4  { --c: #0d9488; }
.pt-c5  { --c: #7c3aed; }
.pt-c6  { --c: #dc2626; }
.pt-c7  { --c: #0891b2; }
.pt-c8  { --c: #c026d3; }
.pt-c9  { --c: #2563eb; }
.pt-c10 { --c: #0d9488; }
.pt-c11 { --c: #ea580c; }
.pt-c12 { --c: #7c3aed; }
.pt-c13 { --c: #16a34a; }

/* Topic hubs */
.pt-groups { display: grid; gap: 28px; }
.pt-group {
	padding: 24px; background: #fff; border: 1px solid var(--pt-border); border-radius: var(--pt-radius);
}
.pt-h3 { margin: 0 0 14px; font-size: 1.1rem; color: var(--pt-primary-dark); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-home .pt-chips-center { justify-content: center; margin-top: 36px; }
.pt-chips a {
	display: inline-block; padding: 6px 16px; border-radius: 999px;
	background: #eff6ff; border: 1px solid #bfdbfe; color: var(--pt-primary-dark);
	font-size: .95rem; font-weight: 600;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pt-chips a:hover, .pt-chips a:focus-visible {
	background: var(--pt-primary); border-color: var(--pt-primary); color: #fff;
}
.pt-chips a:focus-visible { outline: 3px solid var(--pt-accent); outline-offset: 2px; }

/* Latest posts */
.pt-posts { display: grid; gap: 20px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pt-post-link {
	display: flex; flex-direction: column; height: 100%; overflow: hidden;
	background: #fff; border: 1px solid var(--pt-border); border-radius: var(--pt-radius); color: var(--pt-ink);
	transition: box-shadow .2s ease, transform .2s ease;
}
.pt-post-link:hover, .pt-post-link:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, .1); }
.pt-post-link:focus-visible { outline: 3px solid var(--pt-primary); outline-offset: 3px; }
.pt-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pt-alt); }
.pt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-post-body { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.pt-tag {
	align-self: flex-start; padding: 2px 10px; border-radius: 999px;
	background: #dbeafe; color: var(--pt-primary-dark); font-size: .78rem; font-weight: 700;
}
.pt-post-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.pt-post-meta { font-size: .85rem; color: var(--pt-muted); }

/* About */
.pt-about { max-width: 800px; text-align: center; }
.pt-about p { color: var(--pt-muted); font-size: 1.05rem; }
.pt-home .pt-points { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0 0; }
.pt-points li {
	padding: 4px 14px; border: 1px solid var(--pt-border); background: var(--pt-alt); color: var(--pt-primary-dark);
	border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.pt-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.pt-home a.pt-btn,
.pt-home a.pt-btn:visited {
	display: inline-block; padding: 12px 28px; border-radius: 999px; border: 2px solid var(--pt-primary);
	background: transparent; color: var(--pt-primary); font-weight: 700; text-decoration: none;
}
.pt-home a.pt-btn:hover,
.pt-home a.pt-btn:focus-visible {
	background: var(--pt-primary); border-color: var(--pt-primary); color: #fff;
}
.pt-home a.pt-btn:focus-visible { outline: 3px solid var(--pt-accent); outline-offset: 2px; }

@media (max-width: 600px) {
	.pt-hero { padding: 48px 0 56px; }
	.pt-section { padding: 44px 0; }
	.pt-search { flex-direction: column; border-radius: 20px; gap: 6px; }
	.pt-search button { width: 100%; }
	.pt-group { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.pt-card, .pt-post-link, .pt-arrow, .pt-chips a { transition: none; }
	.pt-card:hover, .pt-post-link:hover { transform: none; }
}
