/*
Theme Name: Postgraduate Writers
Theme URI: https://postgraduatewriters.com/
Author: Postgraduate Writers
Description: Custom academic writing service theme for Postgraduatewriters.com.
Version: 1.0.0
Text Domain: postgraduatewriters
*/

:root {
	--ink: #101828;
	--muted: #5f6b7a;
	--line: #e7edf3;
	--paper: #ffffff;
	--soft: #f6f8fb;
	--brand: #165dff;
	--brand-dark: #0a3bb5;
	--accent: #14b8a6;
	--gold: #f7b500;
	--danger: #ef4444;
	--shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
	--radius: 8px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
}

.site-shell {
	min-height: 100vh;
	overflow-x: hidden;
}

.container {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.top-strip {
	background: #0f172a;
	color: #e5eefc;
	font-size: 13px;
}

.top-strip .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 42px;
}

.trust-list,
.nav-list,
.stats-row,
.pill-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trust-list {
	flex-wrap: wrap;
}

.trust-list li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid rgba(231, 237, 243, 0.9);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(16px);
}

.header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: 74px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	color: #fff;
	background: linear-gradient(135deg, var(--brand), var(--accent));
	font-size: 18px;
}

.nav-list {
	justify-content: center;
	gap: 24px;
	color: #344054;
	font-weight: 650;
	font-size: 14px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-weight: 750;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	color: #fff;
	background: var(--brand);
	box-shadow: 0 12px 26px rgba(22, 93, 255, 0.24);
}

.btn-primary:hover {
	background: var(--brand-dark);
}

.btn-soft {
	color: var(--brand-dark);
	background: #eef4ff;
	border-color: #d7e5ff;
}

.hero {
	position: relative;
	padding: 70px 0 44px;
	background:
		radial-gradient(circle at 78% 12%, rgba(20, 184, 166, 0.15), transparent 28%),
		linear-gradient(180deg, #f7fbff 0%, #fff 68%);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) 430px;
	align-items: center;
	gap: 52px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 8px 12px;
	border: 1px solid #d7e5ff;
	border-radius: 999px;
	color: var(--brand-dark);
	background: #eef4ff;
	font-size: 14px;
	font-weight: 750;
}

.hero h1,
.section-heading h2,
.cta-band h2 {
	margin: 0;
	color: var(--ink);
	line-height: 1.04;
	letter-spacing: 0;
}

.hero h1 {
	max-width: 760px;
	font-size: clamp(42px, 6vw, 74px);
}

.hero-copy {
	max-width: 640px;
	margin: 22px 0 26px;
	color: #475467;
	font-size: 20px;
}

.ratings {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 620px;
	margin-top: 28px;
}

.rating-card,
.order-card,
.expert-card,
.feature-card,
.review-card,
.service-card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.rating-card {
	padding: 14px;
}

.stars {
	color: var(--gold);
	font-size: 14px;
	letter-spacing: 1px;
}

.rating-card strong {
	display: block;
	margin-top: 4px;
	font-size: 18px;
}

.rating-card span {
	color: var(--muted);
	font-size: 13px;
}

.order-card {
	padding: 24px;
	box-shadow: var(--shadow);
}

.order-card h2 {
	margin: 0 0 6px;
	font-size: 24px;
}

.hero-calculator h2 {
	position: relative;
	margin-bottom: 18px;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1;
}

.hero-calculator h2::after {
	content: "";
	display: block;
	width: 74px;
	height: 4px;
	margin-top: 18px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--brand), var(--accent));
}

.order-card p {
	margin: 0 0 18px;
	color: var(--muted);
}

.order-form {
	display: grid;
	gap: 12px;
}

.field label {
	display: block;
	margin-bottom: 6px;
	color: #344054;
	font-size: 13px;
	font-weight: 750;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 0 13px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	color: var(--ink);
	background: #fff;
	font: inherit;
}

.field textarea {
	min-height: 94px;
	padding-top: 12px;
	resize: vertical;
}

.form-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
	color: var(--muted);
	font-size: 13px;
}

.calculator-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 6px 0 2px;
	padding: 16px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.calculator-total span {
	color: #344054;
	font-weight: 800;
}

.calculator-total strong {
	color: var(--ink);
	font-size: 28px;
	line-height: 1;
}

.hero-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.proof-chip,
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	color: #344054;
	font-weight: 700;
	font-size: 14px;
}

.proof-chip {
	padding: 9px 12px;
}

.section {
	padding: 74px 0;
}

.section-muted {
	background: var(--soft);
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 30px;
}

.section-heading h2 {
	max-width: 720px;
	font-size: clamp(32px, 4vw, 52px);
}

.section-heading p {
	max-width: 460px;
	margin: 0;
	color: var(--muted);
}

.expert-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.expert-card {
	padding: 18px;
}

.avatar {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 12px;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(135deg, #0f172a, var(--brand));
	font-weight: 850;
}

.expert-card h3,
.feature-card h3,
.service-card h3 {
	margin: 0 0 6px;
	font-size: 19px;
}

.expert-meta,
.mini-meta {
	color: var(--muted);
	font-size: 14px;
}

.pill-row {
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.pill {
	padding: 6px 10px;
	font-size: 12px;
}

.expert-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.link-action {
	color: var(--brand);
	font-weight: 800;
	font-size: 14px;
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	counter-reset: steps;
}

.step {
	position: relative;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.step::before {
	counter-increment: steps;
	content: counter(steps);
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-bottom: 18px;
	border-radius: 50%;
	color: #fff;
	background: var(--brand);
	font-weight: 850;
}

.step h3 {
	margin: 0 0 8px;
}

.step p,
.feature-card p,
.service-card p,
.review-card p {
	margin: 0;
	color: var(--muted);
}

.service-card .link-action {
	display: inline-flex;
	margin-top: 16px;
}

.stats-band {
	position: relative;
	padding: 30px 0 36px;
	color: #fff;
	background: #fff;
	overflow: hidden;
}

.stats-band::before {
	display: none;
}

.stats-band .container {
	position: relative;
	z-index: 1;
}

.stats-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	width: min(100% - 32px, var(--container));
	margin: 0 auto;
	padding: 24px 28px;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(31, 94, 255, 0.16), transparent 42%),
		linear-gradient(180deg, #101a30 0%, #071126 100%);
	box-shadow: 0 22px 48px rgba(7, 17, 38, 0.16);
}

.stat {
	min-height: auto;
	padding: 16px 22px;
	border-right: 1px solid rgba(255, 255, 255, 0.14);
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
}

.stat:last-child {
	border-right: 0;
}

.stat strong {
	display: block;
	margin-bottom: 6px;
	font-size: clamp(32px, 3vw, 44px);
	line-height: 1;
	font-weight: 900;
	letter-spacing: 0;
}

.stat span {
	display: block;
	max-width: 190px;
	color: #d7e6ff;
	font-size: 16px;
	line-height: 1.35;
}

.feature-grid,
.service-grid,
.review-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.feature-card,
.service-card,
.review-card {
	padding: 22px;
}

.icon-box {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 8px;
	color: var(--brand);
	background: #eef4ff;
	font-weight: 900;
}

.review-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.review-author {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
}

.subject-cloud {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.subject-cloud a {
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	font-weight: 750;
	text-align: center;
}

.cta-band {
	padding: 56px;
	border-radius: var(--radius);
	color: #fff;
	background:
		linear-gradient(135deg, rgba(22, 93, 255, 0.94), rgba(20, 184, 166, 0.94)),
		#165dff;
}

.cta-band h2 {
	color: #fff;
	font-size: clamp(32px, 4vw, 52px);
}

.cta-band p {
	max-width: 650px;
	margin: 14px 0 24px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 19px;
}

.site-footer {
	padding: 42px 0;
	color: #cbd5e1;
	background: #0b1220;
}

.service-hero {
	padding: 72px 0;
	background:
		radial-gradient(circle at 78% 12%, rgba(20, 184, 166, 0.15), transparent 28%),
		linear-gradient(180deg, #f7fbff 0%, #fff 70%);
}

.service-hero-grid,
.service-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 46px;
	align-items: start;
}

.service-hero h1 {
	max-width: 820px;
	margin: 0;
	font-size: clamp(42px, 6vw, 72px);
	line-height: 1.04;
	letter-spacing: 0;
}

.service-hero p {
	max-width: 720px;
	margin: 22px 0 0;
	color: #475467;
	font-size: 20px;
}

.service-hero-copy {
	max-width: 780px;
	margin-top: 22px;
	color: #475467;
	font-size: 20px;
}

.service-hero-copy p {
	margin: 0 0 14px;
}

.service-hero-copy p:last-child {
	margin-bottom: 0;
}

.service-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.service-panel {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.service-panel h2 {
	margin: 0 0 16px;
	font-size: 24px;
}

.service-panel ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-panel li {
	position: relative;
	padding-left: 28px;
	color: #344054;
	font-weight: 650;
}

.service-panel li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--accent);
	font-weight: 900;
}

.service-heading {
	display: block;
}

.service-steps {
	grid-template-columns: 1fr;
}

.service-steps .step {
	min-height: auto;
}

.service-order-card {
	position: sticky;
	top: 104px;
}

.service-order-card .link-action {
	display: inline-flex;
	margin-top: 14px;
}

.service-list-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.service-list-card {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.service-list-card h3 {
	margin: 0 0 10px;
	font-size: 24px;
}

.service-list-card p {
	margin: 0;
	color: var(--muted);
}

.service-list-card ul {
	display: grid;
	gap: 9px;
	margin: 18px 0 24px;
	padding: 0;
	list-style: none;
}

.service-list-card li {
	position: relative;
	padding-left: 24px;
	color: #344054;
}

.service-list-card li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 900;
}

.service-card-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
}

.post-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.post-card {
	display: flex;
	flex-direction: column;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.post-card h3 {
	margin: 8px 0 10px;
	font-size: 22px;
	line-height: 1.25;
}

.post-card p {
	margin: 0 0 18px;
	color: var(--muted);
}

.post-card .link-action {
	margin-top: auto;
}

.single-post-hero {
	padding: 74px 0 52px;
	background:
		radial-gradient(circle at 78% 12%, rgba(20, 184, 166, 0.15), transparent 28%),
		linear-gradient(180deg, #f7fbff 0%, #fff 74%);
}

.single-post-container {
	max-width: 860px;
}

.single-post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	gap: 44px;
}

.post-kicker,
.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 750;
}

.post-kicker {
	margin-bottom: 14px;
	color: var(--brand-dark);
}

.single-post-hero h1 {
	max-width: 1080px;
	margin: 0;
	color: var(--ink);
	font-size: clamp(42px, 5vw, 68px);
	line-height: 1.05;
	letter-spacing: 0;
}

.post-meta {
	margin-top: 18px;
}

.post-meta a {
	color: var(--brand);
}

.post-category a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 3px 10px;
	border: 1px solid #d7e5ff;
	border-radius: 999px;
	background: #eef4ff;
	color: var(--brand-dark);
	font-size: 13px;
	font-weight: 800;
}

.single-post-section {
	padding-top: 46px;
}

.single-post-bottom-cta {
	padding-top: 0;
}

.single-post-featured {
	margin: 0 0 28px;
	overflow: hidden;
	border-radius: var(--radius);
}

.single-post-content {
	max-width: 820px;
	color: #344054;
	font-size: 18px;
	line-height: 1.75;
}

.single-post-content > *:first-child {
	margin-top: 0;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
	margin: 1.65em 0 0.55em;
	color: var(--ink);
	line-height: 1.2;
}

.single-post-content h1 {
	margin: 0 0 0.75em;
	color: var(--ink);
	font-size: 40px;
	line-height: 1.15;
}

.single-post-content h2 {
	font-size: 34px;
}

.single-post-content h3 {
	font-size: 26px;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol,
.single-post-content blockquote {
	margin: 0 0 1.2em;
}

.single-post-content ul,
.single-post-content ol {
	padding-left: 1.35em;
}

.single-post-content li + li {
	margin-top: 0.45em;
}

.single-post-content img {
	max-width: 100%;
	height: auto;
	margin: 12px 0 24px;
	border-radius: var(--radius);
}

.single-post-content img.aligncenter,
.single-post-content .aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.single-post-content a {
	color: var(--brand);
	font-weight: 750;
}

.single-post-content blockquote {
	padding-left: 18px;
	border-left: 4px solid var(--accent);
	color: var(--ink);
	font-size: 20px;
}

.post-page-links {
	margin-top: 28px;
	font-weight: 750;
}

.single-post-sidebar {
	position: sticky;
	top: 112px;
}

.single-post-cta h2 {
	margin: 0 0 10px;
	font-size: 28px;
	line-height: 1.15;
}

.single-post-cta .btn {
	width: 100%;
	margin-top: 6px;
}

.single-post-cta .link-action {
	display: inline-flex;
	margin-top: 16px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr repeat(3, 1fr);
	gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
	margin: 0 0 12px;
	color: #fff;
}

.footer-grid p,
.footer-grid ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-grid li + li {
	margin-top: 8px;
}

.copyright {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
}

@media (max-width: 980px) {
	.header-inner {
		grid-template-columns: 1fr auto;
	}

	.main-nav {
		display: none;
	}

	.hero-grid,
	.footer-grid,
	.service-hero-grid,
	.service-content-grid,
	.single-post-layout {
		grid-template-columns: 1fr;
	}

	.order-card {
		max-width: 560px;
	}

	.service-order-card {
		position: static;
	}

	.single-post-sidebar {
		position: static;
	}

	.expert-grid,
	.steps,
	.stats-row,
	.feature-grid,
	.service-grid,
	.review-grid,
	.service-list-grid,
	.post-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.subject-cloud {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.stats-row {
		padding: 20px;
	}

	.stat:nth-child(2) {
		border-right: 0;
	}

	.stat:nth-child(1),
	.stat:nth-child(2) {
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	}
}

@media (max-width: 640px) {
	.top-strip .container,
	.section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.header-actions .btn-soft {
		display: none;
	}

	.hero {
		padding-top: 42px;
	}

	.hero h1 {
		font-size: 42px;
	}

	.hero-copy {
		font-size: 18px;
	}

	.ratings,
	.expert-grid,
	.steps,
	.stats-row,
	.feature-grid,
	.service-grid,
	.review-grid,
	.service-list-grid,
	.post-card-grid,
	.subject-cloud {
		grid-template-columns: 1fr;
	}

	.service-card-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.stat {
		min-height: auto;
		padding: 18px 4px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	}

	.stat:last-child {
		border-bottom: 0;
	}

	.stat span {
		max-width: none;
	}

	.cta-band {
		padding: 32px 22px;
	}
}
