/* ==========================================================
   BÄST I TEST THEME — homepage, category, archive, pages
   ========================================================== */

.bit-home,
.bit-archive,
.bit-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 24px 60px;
}

/* ---------- Hero (homepage) ---------- */

.bit-hero {
	text-align: center;
	margin-bottom: 48px;
}

.bit-hero h1 {
	font-size: 2.4rem;
	line-height: 1.25;
	margin-bottom: 20px;
}

.bit-hero-sub {
	font-size: 1.1rem;
	margin-bottom: 20px;
}

.bit-hero-body {
	max-width: 800px;
	margin: 0 auto;
	color: #444;
	line-height: 1.7;
}

.bit-trust-row {
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 20px;
	font-size: 0.85rem;
	color: #6b7280;
}

.bit-trust-row .bit-icon {
	font-style: normal;
	color: #d89a2e;
	margin-right: 4px;
}

/* ---------- Category pill on grid cards ---------- */

.bit-card-category {
	display: inline-block;
	background: #fbf0da;
	color: #7a4e0a;
	font-size: 0.72rem;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}

/* ---------- Blog section (homepage) ---------- */

.bit-blog-section {
	margin-top: 48px;
}

.bit-blog-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bit-blog-row {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid #ede9de;
	border-radius: 10px;
	padding: 12px;
}

.bit-blog-row-image img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.bit-blog-row h3 {
	font-size: 1rem;
	margin: 0 0 4px;
	color: #1a1a1a;
}

/* ---------- Team section (homepage) ---------- */

.bit-team-section {
	margin-top: 48px;
}

.bit-team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
}

.bit-team-photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 10px;
	display: block;
}

.bit-team-initial {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #18181b;
	color: #d89a2e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 auto 10px;
}

.bit-team-name {
	font-weight: 700;
	margin: 0 0 2px;
	font-size: 0.95rem;
}

.bit-team-role {
	color: #6b7280;
	font-size: 0.8rem;
	margin: 0;
}

@media (max-width: 700px) {
	.bit-team-grid { grid-template-columns: repeat(2, 1fr); }
	.bit-blog-row { flex-direction: row; }
}

/* ---------- Post list (homepage "Siste tester") ---------- */

.bit-latest h2,
.bit-archive-header h1,
.bit-sister-sites h2 {
	font-size: 1.6rem;
	margin-bottom: 24px;
}

.bit-post-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.bit-post-row {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: start;
}

.bit-post-row-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.bit-post-row-content h3 {
	font-size: 1.3rem;
	margin: 0 0 8px;
	line-height: 1.35;
}

.bit-post-row-meta {
	color: #6b7280;
	font-size: 0.88rem;
	margin-bottom: 12px;
}

.bit-post-row-cta {
	display: inline-block;
	border: 1px solid #1a1a1a;
	border-radius: 999px;
	padding: 8px 20px;
	font-weight: 700;
	font-size: 0.9rem;
}

.bit-post-row-cta:hover {
	background: #1a1a1a;
	color: #fff;
}

@media (max-width: 600px) {
	.bit-post-row {
		grid-template-columns: 1fr;
	}
}

/* ---------- Post grid (category pages, search, tag, author) ---------- */

.bit-archive-header {
	margin-bottom: 32px;
}

.bit-archive-description {
	color: #444;
	line-height: 1.7;
	max-width: 800px;
}

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

.bit-grid-card-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	margin-bottom: 14px;
}

.bit-grid-card-content h2 {
	font-size: 1.15rem;
	line-height: 1.35;
	margin: 0 0 8px;
}

.bit-grid-card-meta {
	color: #6b7280;
	font-size: 0.85rem;
}

@media (max-width: 900px) {
	.bit-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.bit-post-grid { grid-template-columns: 1fr; }
}

/* ---------- Pagination ---------- */

.bit-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.bit-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #1a1a1a;
}

.bit-pagination .page-numbers:hover {
	background: #f3f4f6;
}

.bit-pagination .page-numbers.current {
	background: #1a1a1a;
	color: #fff;
}

.bit-pagination .page-numbers.dots {
	background: none;
}

/* ---------- Sister sites ---------- */

.bit-sister-sites {
	margin-top: 60px;
	border-top: 1px solid #eee;
	padding-top: 40px;
}

.bit-sister-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.bit-sister-grid p {
	color: #444;
}

@media (max-width: 700px) {
	.bit-sister-grid { grid-template-columns: 1fr; }
}

/* ---------- Generic pages (About, Contact) ---------- */

.bit-page-header h1 {
	font-size: 2rem;
	margin-bottom: 24px;
}

.bit-page-content {
	line-height: 1.7;
}

.bit-page-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ---------- Regular post content (single.php) ---------- */

.bit-article-content h2 {
	font-size: 1.5rem;
	margin: 36px 0 16px;
}

.bit-article-content h3 {
	font-size: 1.2rem;
	margin: 28px 0 12px;
}

.bit-article-content p {
	margin-bottom: 18px;
}

.bit-article-content ul,
.bit-article-content ol {
	margin-bottom: 18px;
	padding-left: 24px;
}

.bit-article-content li {
	margin-bottom: 6px;
}

.bit-article-content blockquote {
	border-left: 3px solid #d89a2e;
	margin: 24px 0;
	padding: 4px 20px;
	color: #444;
	font-style: italic;
}

.bit-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 20px 0;
}

/* ---------- Vendor/buy button (from [Product_Venders_Links] shortcode) ---------- */

.bit-vendor-box {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 20px 0;
}

.bit-vendor-price {
	font-weight: 700;
	font-size: 1.1rem;
}

.bit-vendor-button {
	display: inline-block;
	background-color: #28a745;
	color: #ffffff;
	padding: 10px 20px;
	text-decoration: none;
	font-weight: bold;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.bit-vendor-button:hover {
	background-color: #218838;
	color: #ffffff;
}