/*
 * Components — buttons, post cards, badges, nav, widgets,
 *              pagination, search, author box, related posts,
 *              newsletter CTA, footer widgets, alerts
 */

/* ── Buttons ─────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.6rem 1.3rem;
	border: 2px solid transparent;
	border-radius: 7px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.btn:focus-visible {
	outline: 3px solid rgba(176,48,96,0.35);
	outline-offset: 2px;
}

.btn-primary {
	background: #b03060;
	color: #fff;
	border-color: #b03060;
}

.btn-primary:hover {
	background: #8f2450;
	border-color: #8f2450;
	color: #fff;
	text-decoration: none;
}

.btn-dark {
	background: #1f2430;
	color: #fff;
	border-color: #1f2430;
}

.btn-dark:hover {
	background: #b03060;
	border-color: #b03060;
	color: #fff;
	text-decoration: none;
}

.btn-outline {
	background: transparent;
	color: #b03060;
	border-color: #b03060;
}

.btn-outline:hover {
	background: #b03060;
	color: #fff;
	text-decoration: none;
}

.btn-ghost {
	background: transparent;
	color: #374151;
	border-color: rgba(0,0,0,0.15);
}

.btn-ghost:hover {
	background: rgba(0,0,0,0.05);
	text-decoration: none;
}

.btn-sm {
	padding: 0.38rem 0.9rem;
	font-size: 0.8rem;
}

.btn-lg {
	padding: 0.8rem 1.8rem;
	font-size: 1rem;
}

/* ── Badge / Category pill ───────────────────────────── */
.badge {
	display: inline-block;
	padding: 0.22rem 0.7rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	background: #b03060;
	color: #fff;
	text-decoration: none;
	transition: background 0.15s ease;
}

.badge:hover {
	background: #8f2450;
	color: #fff;
	text-decoration: none;
}

.post-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.65rem;
}

/* ── Post Card ───────────────────────────────────────── */
.post-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #f0eaf3;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.post-card-thumbnail {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f3eef6;
	position: relative;
}

.post-card-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card-thumbnail img {
	transform: scale(1.04);
}

/* Badge overlaid on thumbnail */
.post-card-thumbnail .badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
}

.post-card-body {
	padding: 1.25rem 1.25rem 1.4rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card-title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.post-card-title a {
	color: #1f2430;
	text-decoration: none;
}

.post-card-title a:hover {
	color: #b03060;
}

.post-card-excerpt {
	color: #6b7280;
	font-size: 0.875rem;
	line-height: 1.65;
	flex: 1;
	margin-bottom: 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* ── Post Meta ───────────────────────────────────────── */
.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	font-size: 0.78rem;
	color: #9ca3af;
	margin-bottom: 0.6rem;
}

.post-meta a {
	color: #9ca3af;
	text-decoration: none;
}

.post-meta a:hover {
	color: #b03060;
}

.post-meta .sep {
	opacity: 0.4;
}

.reading-time {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
}

/* Tag pills in post meta */
.post-tags-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.6rem;
}

.tag-pill {
	display: inline-block;
	padding: 0.18rem 0.6rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	background: #f3eef6;
	color: #6b7280;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.tag-pill:hover {
	background: rgba(176,48,96,0.1);
	color: #b03060;
}

/* ── Sidebar & Widgets ───────────────────────────────── */
.widget {
	background: #fff;
	border-radius: 12px;
	padding: 1.4rem;
	margin-bottom: 1.5rem;
	border: 1px solid #f0eaf3;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.widget-title {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #b03060;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid rgba(176,48,96,0.12);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget ul li {
	padding: 0.45rem 0;
	border-bottom: 1px solid rgba(0,0,0,0.05);
	font-size: 0.875rem;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: #374151;
	text-decoration: none;
}

.widget ul li a:hover {
	color: #b03060;
}

/* Footer widgets */
.footer-widget .widget-title {
	color: #e5e7eb;
	border-bottom-color: rgba(255,255,255,0.08);
}

.footer-widget ul li {
	border-bottom-color: rgba(255,255,255,0.05);
}

.footer-widget ul li a {
	color: #9ca3af;
}

.footer-widget ul li a:hover {
	color: #fff;
}

.footer-widget p {
	color: #9ca3af;
	font-size: 0.875rem;
}

/* ── Search form (sidebar/widget) ────────────────────── */
.search-form {
	display: flex;
	gap: 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.search-form .search-field {
	flex: 1;
	padding: 0.55rem 0.85rem;
	border: none;
	font-size: 0.875rem;
	background: #faf7fb;
	color: #1f2430;
}

.search-form .search-field:focus {
	outline: none;
	background: #fff;
}

.search-form .search-submit {
	padding: 0.55rem 1rem;
	background: #1f2430;
	color: #fff;
	border: none;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.search-form .search-submit:hover {
	background: #b03060;
}

/* ── Pagination ──────────────────────────────────────── */
.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2.5rem;
	gap: 1rem;
}

.pagination a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 1.1rem;
	border-radius: 7px;
	border: 1px solid #e5e7eb;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pagination a:hover {
	border-color: #b03060;
	color: #b03060;
}

/* Numbered pagination */
.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 2.5rem;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 0.6rem;
	border-radius: 7px;
	border: 1px solid #e5e7eb;
	font-size: 0.875rem;
	color: #374151;
	text-decoration: none;
	transition: all 0.15s ease;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
	background: #b03060;
	border-color: #b03060;
	color: #fff;
}

/* ── Author box ──────────────────────────────────────── */
.author-box {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	margin-top: 2.5rem;
	border: 1px solid #f0eaf3;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.author-box-avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.author-box-name {
	margin: 0 0 0.3rem;
	font-size: 1rem;
}

.author-box-bio {
	font-size: 0.875rem;
	color: #4b5563;
	margin: 0 0 0.75rem;
}

/* ── Related posts ───────────────────────────────────── */
.related-posts {
	margin-top: 3rem;
}

.related-posts-title {
	font-size: 1.1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid rgba(176,48,96,0.12);
}

.related-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.25rem;
}

.related-post-card {
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #f0eaf3;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	transition: transform 0.2s ease;
}

.related-post-card:hover {
	transform: translateY(-2px);
}

.related-post-card img {
	width: 100%;
	height: 130px;
	object-fit: cover;
}

.related-post-card-body {
	padding: 0.85rem;
}

.related-post-card-title {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0 0 0.3rem;
	line-height: 1.35;
}

.related-post-card-title a {
	color: #1f2430;
	text-decoration: none;
}

.related-post-card-title a:hover {
	color: #b03060;
}

/* ── Newsletter / CTA box ────────────────────────────── */
.newsletter-box {
	background: linear-gradient(135deg, #b03060 0%, #7c1d42 100%);
	color: #fff;
	border-radius: 14px;
	padding: 2.5rem 2rem;
	text-align: center;
	margin: 3rem 0;
}

.newsletter-box h2 {
	color: #fff;
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
}

.newsletter-box p {
	color: rgba(255,255,255,0.82);
	margin-bottom: 1.5rem;
}

.newsletter-form {
	display: flex;
	gap: 0.6rem;
	max-width: 440px;
	margin: 0 auto;
}

.newsletter-form input[type="email"] {
	flex: 1;
	padding: 0.65rem 1rem;
	border: none;
	border-radius: 7px;
	font-size: 0.9rem;
	background: rgba(255,255,255,0.95);
	color: #1f2430;
}

.newsletter-form input[type="email"]:focus {
	outline: 2px solid rgba(255,255,255,0.5);
}

.newsletter-form button {
	padding: 0.65rem 1.3rem;
	background: #fff;
	color: #b03060;
	border: none;
	border-radius: 7px;
	font-weight: 700;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background 0.15s ease;
}

.newsletter-form button:hover {
	background: #f3e8ed;
}

@media (max-width: 480px) {
	.newsletter-form {
		flex-direction: column;
	}
}

/* ── Post navigation (prev/next) ─────────────────────── */
.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0,0,0,0.07);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	background: #fff;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	border: 1px solid #f0eaf3;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	display: block;
	color: #374151;
	text-decoration: none;
}

.post-navigation a:hover {
	color: #b03060;
}

.post-navigation .nav-label {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #9ca3af;
	margin-bottom: 0.3rem;
}

.post-navigation .nav-title {
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.35;
}

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

	.post-navigation .nav-next {
		text-align: left;
	}
}

/* ── About page components ───────────────────────────── */
.about-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
	padding: 3rem 0 2rem;
}

.about-hero-image img {
	border-radius: 14px;
	width: 100%;
	object-fit: cover;
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about-hero-content .page-title {
	font-size: 2.2rem;
	margin-bottom: 1rem;
}

.about-hero-content .lead {
	font-size: 1.05rem;
	color: #4b5563;
	line-height: 1.75;
	margin-bottom: 1.5rem;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.75rem;
	margin-top: 1.5rem;
}

.team-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #f0eaf3;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	text-align: center;
	padding-bottom: 1.25rem;
	transition: transform 0.2s ease;
}

.team-card:hover {
	transform: translateY(-3px);
}

.team-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.team-card-name {
	margin: 1rem 0 0.2rem;
	font-size: 1rem;
	padding: 0 1rem;
}

.team-card-role {
	font-size: 0.78rem;
	color: #b03060;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 0 1rem;
}

.team-card-bio {
	font-size: 0.85rem;
	color: #6b7280;
	padding: 0.6rem 1rem 0;
	line-height: 1.55;
}

.stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1.5rem;
	background: #fff;
	border-radius: 14px;
	padding: 2rem;
	border: 1px solid #f0eaf3;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	margin: 2.5rem 0;
	text-align: center;
}

.stat-item-number {
	font-size: 2.2rem;
	font-weight: 800;
	color: #b03060;
	line-height: 1;
	margin-bottom: 0.35rem;
}

.stat-item-label {
	font-size: 0.8rem;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.value-card {
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	border: 1px solid #f0eaf3;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	border-top: 3px solid #b03060;
}

.value-card-icon {
	font-size: 1.75rem;
	margin-bottom: 0.75rem;
}

.value-card-title {
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.value-card-text {
	font-size: 0.875rem;
	color: #6b7280;
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 760px) {
	.about-hero {
		grid-template-columns: 1fr;
	}
}

/* ── Section heading ─────────────────────────────────── */
.section-heading {
	font-size: 1.5rem;
	margin-bottom: 0.4rem;
}

.section-subheading {
	color: #6b7280;
	font-size: 0.95rem;
	margin-bottom: 2rem;
}

/* ── Alert / Notice ──────────────────────────────────── */
.alert {
	padding: 0.9rem 1.2rem;
	border-radius: 8px;
	font-size: 0.875rem;
	margin-bottom: 1rem;
	border-left: 4px solid transparent;
}

.alert-info    { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.alert-success { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.alert-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.alert-error   { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
