/*
 * Articles landing page (page-articles.php)
 *
 * Extracted from style.css (BDLD_CSS_SPLIT). Loaded only on the
 * templates that use these rules.
 */

/* ---- Articles landing page (page-articles.php) ---- */
.bdld-articles-page {
	background: #fff;
}

.bdld-hero {
	padding: 56px 24px 40px;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.bdld-hero h1 {
	font-family: 'Libre Baskerville', Georgia, serif;
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
	font-weight: 700;
	color: #222;
	margin: 0 0 14px;
	line-height: 1.25;
}

.bdld-hero p {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 1.1rem;
	line-height: 1.65;
	color: #666;
	margin: 0 0 16px;
}

.bdld-hero-count {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.9rem;
	color: #999;
}

.bdld-section-featured {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 56px;
}

.bdld-featured-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: center;
}

.bdld-featured-img {
	display: block;
	border-radius: 10px;
	overflow: hidden;
}

.bdld-featured-img img {
	width: 100%;
	height: auto;
	aspect-ratio: 18 / 10;
	object-fit: cover;
	display: block;
}

.bdld-featured-kicker {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #991B1F;
	display: block;
	margin-bottom: 10px;
}

.bdld-featured-title {
	font-family: 'Libre Baskerville', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 10px;
	line-height: 1.35;
}

.bdld-featured-title a {
	color: #222;
	text-decoration: none;
}

.bdld-featured-byline {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.88rem;
	color: #666;
	margin-bottom: 12px;
}

.bdld-featured-byline a {
	color: #011F5B;
	text-decoration: none;
	font-weight: 600;
}

.bdld-featured-byline a:hover {
	color: #991B1F;
}

.bdld-featured-excerpt {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.98rem;
	line-height: 1.7;
	color: #444;
	margin: 0 0 18px;
}

.bdld-featured-cta {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.92rem;
	font-weight: 600;
	color: #011F5B;
	text-decoration: none;
}

.bdld-section-articles {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 72px;
}

.bdld-section-articles > h2 {
	font-family: 'Libre Baskerville', Georgia, serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 8px;
	padding-bottom: 10px;
	border-bottom: 2px solid #011F5B;
}

.bdld-section-articles > p {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.92rem;
	color: #888;
	margin: 0 0 28px;
}

.bdld-articles-wrap {
	position: relative;
}

.bdld-articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.bdld-articles-loader {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 10;
	justify-content: center;
	align-items: center;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 8px;
}

.bdld-articles-loader .spinner {
	width: 30px;
	height: 30px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #011F5B;
	border-radius: 50%;
	animation: bdld_spin 1s linear infinite;
}

.bdld-articles-empty {
	font-family: 'EB Garamond', Georgia, serif;
	color: #888;
	text-align: center;
	padding: 40px 0;
}

.bdld-section-subjects {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 64px;
}

.bdld-section-subjects h2 {
	font-family: 'Libre Baskerville', Georgia, serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 16px;
}

.bdld-subjects-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bdld-subject-pill {
	display: inline-block;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.9rem;
	color: #011F5B;
	background: #EEF4FB;
	border: 1px solid #d0dfe8;
	border-radius: 20px;
	padding: 7px 16px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bdld-section-journal {
	background: #EEF4FB;
	padding: 48px 24px;
}

.bdld-section-journal > div {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.bdld-section-journal h2 {
	font-family: 'Libre Baskerville', Georgia, serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 8px;
}

.bdld-section-journal p {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.98rem;
	line-height: 1.65;
	color: #666;
	margin: 0 0 22px;
}

.bdld-journal-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.bdld-journal-cta-solid,
.bdld-journal-cta-outline {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bdld-journal-cta-solid {
	color: #fff;
	background: #011F5B;
}

.bdld-journal-cta-outline {
	color: #011F5B;
	background: #fff;
	border: 1px solid #011F5B;
}

.bdld-section-newsletter {
	background: #EEF4FB;
	padding: 48px 24px;
}

.bdld-section-newsletter > div {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.bdld-section-newsletter h2 {
	font-family: 'Libre Baskerville', Georgia, serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 8px;
}

.bdld-section-newsletter p {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.92rem;
	color: #666;
	margin: 0 0 20px;
}

/* Article page hover / pagination / responsive overrides (moved from page-articles.php inline <style>) */
@keyframes bdld_spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.bdld-card-excerpt { display: none !important; }
.bdld-featured-title a { transition: color 0.2s ease; }
.bdld-featured-title a:hover { color: #991B1F !important; }
.bdld-featured-cta:hover { color: #991B1F !important; }
.bdld-article-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.bdld-article-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(1, 31, 91, 0.12); border-color: #011F5B; }
.bdld-card-image img { transition: transform 0.4s ease; }
.bdld-article-card:hover .bdld-card-image img { transform: scale(1.04); }
.bdld-card-title a { transition: color 0.2s ease; }
.bdld-card-title a:hover { color: #991B1F !important; }
.bdld-card-cta { transition: color 0.2s ease; }
.bdld-card-cta:hover { color: #011F5B !important; }
.bdld-subject-pill:hover { color: #991B1F !important; border-color: #991B1F !important; }
.bdld-journal-cta-solid:hover { background: #31BFF0 !important; color: #ffffff !important; }
.bdld-journal-cta-outline:hover { background: #011F5B !important; color: #ffffff !important; }
.site-main .tnp-submit:hover { background-color: #31BFF0 !important; }

.bdld-pagination {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 6px !important;
	flex-wrap: wrap !important;
	margin-top: 36px !important;
	text-align: center !important;
}
.bdld-pagination .page-numbers {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 36px !important;
	height: 36px !important;
	padding: 0 10px !important;
	font-family: 'EB Garamond', Georgia, serif !important;
	font-size: 0.88rem !important;
	font-weight: 400 !important;
	color: #011F5B !important;
	background: #fff !important;
	border: 1px solid #d0dfe8 !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}
.bdld-pagination a.page-numbers:hover,
.bdld-pagination a.page-numbers:focus {
	background: #011F5B !important;
	color: #fff !important;
	border-color: #011F5B !important;
}
.bdld-pagination .page-numbers.current {
	background: #011F5B !important;
	color: #fff !important;
	border-color: #011F5B !important;
	font-weight: 600 !important;
	pointer-events: none !important;
}
.bdld-pagination .prev,
.bdld-pagination .next {
	font-weight: 600 !important;
	padding: 0 14px !important;
}

@media (max-width: 768px) {
	.bdld-hero { padding: 36px 20px 28px !important; }
	.bdld-hero h1 { font-size: 1.6rem !important; }
	.bdld-hero p { font-size: 1rem !important; }
	.bdld-featured-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
	.bdld-featured-grid .bdld-featured-img img { height: auto !important; max-height: 260px !important; }
	.bdld-featured-title { font-size: 1.3rem !important; }
	.bdld-articles-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
	.bdld-section-featured { padding: 0 16px 40px !important; }
	.bdld-section-articles { padding: 0 16px 48px !important; }
	.bdld-section-subjects { padding: 0 16px 40px !important; }
	.bdld-section-journal { padding: 36px 16px !important; }
	.bdld-section-newsletter { padding: 36px 16px !important; }
}

@media (max-width: 480px) {
	.bdld-hero { padding: 24px 16px 18px !important; }
	.bdld-hero h1 { font-size: 1.2rem !important; }
	.bdld-hero p { font-size: 0.85rem !important; }
	.bdld-hero .bdld-hero-count { font-size: 0.78rem !important; }
	.bdld-featured-title { font-size: 1.05rem !important; }
	.bdld-section-featured { padding: 0 16px 28px !important; }
	.bdld-section-featured p { font-size: 0.88rem !important; }
	.bdld-section-featured .bdld-featured-cta { font-size: 0.82rem !important; }
	.bdld-section-featured span { font-size: 0.7rem !important; }
	.bdld-articles-grid {
		grid-template-columns: 1fr !important;
		gap: 10px !important;
		display: flex !important;
		flex-direction: column !important;
	}
	.bdld-section-articles { padding: 0 16px 32px !important; }
	.bdld-section-articles h2 { font-size: 1.05rem !important; }
	.bdld-section-articles > p { font-size: 0.8rem !important; }
	.bdld-article-card {
		display: flex !important;
		flex-direction: row !important;
		align-items: stretch !important;
	}
	.bdld-card-image {
		width: 90px !important;
		min-width: 90px !important;
		height: 90px !important;
		flex-shrink: 0 !important;
	}
	.bdld-card-image img {
		width: 90px !important;
		height: 90px !important;
		object-fit: cover !important;
	}
	.bdld-card-excerpt { display: none !important; }
	.bdld-card-body { padding: 8px 10px !important; }
	.bdld-card-title { font-size: 0.85rem !important; margin-bottom: 3px !important; line-height: 1.3 !important; }
	.bdld-card-meta { font-size: 0.7rem !important; margin-bottom: 3px !important; }
	.bdld-card-cta { font-size: 0.72rem !important; }
	.bdld-card-body span { font-size: 0.62rem !important; padding: 2px 6px !important; }
	.bdld-section-subjects { padding: 0 16px 28px !important; }
	.bdld-section-subjects h2 { font-size: 0.9rem !important; margin-bottom: 10px !important; text-align: center !important; }
	.bdld-section-subjects > div { justify-content: center !important; }
	.bdld-subject-pill { font-size: 0.72rem !important; padding: 4px 10px !important; gap: 6px !important; }
	.bdld-journal-buttons { flex-direction: column !important; align-items: center !important; }
	.bdld-section-journal { padding: 24px 16px !important; }
	.bdld-section-journal h2 { font-size: 0.95rem !important; }
	.bdld-section-journal p { font-size: 0.85rem !important; }
	.bdld-journal-cta-solid, .bdld-journal-cta-outline { font-size: 0.82rem !important; padding: 8px 18px !important; }
	.bdld-section-newsletter { padding: 24px 16px !important; }
	.bdld-section-newsletter h2 { font-size: 0.95rem !important; }
	.bdld-section-newsletter p { font-size: 0.82rem !important; }
	.tnp-field input[type="text"],
	.tnp-field input[type="email"] { font-size: 16px !important; }
}


/* ---- Articles renderer (functions.php bdld_articles_render_cards / bdld_archive shortcode) ---- */
.bdld-archive h2 {
	margin-top: 35px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
}

.bdld-archive li {
	margin-bottom: 8px;
}

.bdld-article-card {
	background: #EEF4FB;
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.bdld-card-image {
	display: block;
	height: 180px;
	overflow: hidden;
	background: #f0f0f0;
}

.bdld-card-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.bdld-card-fallback {
	width: 100%;
	height: 180px;
	background: #EEF4FB;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bdld-card-fallback span {
	font-family: 'Libre Baskerville', Georgia, serif;
	font-size: 1.6rem;
	color: #011F5B;
	opacity: 0.15;
}

.bdld-card-body {
	padding: 18px;
}

.bdld-card-type {
	display: inline-block;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #991B1F;
	background: rgba(153, 27, 31, 0.07);
	border-radius: 4px;
	padding: 3px 8px;
	margin-bottom: 10px;
}

.bdld-card-title {
	font-family: 'Libre Baskerville', Georgia, serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 6px;
	line-height: 1.4;
}

.bdld-card-title a {
	color: #222;
	text-decoration: none;
}

.bdld-card-meta {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.82rem;
	color: #888;
	margin-bottom: 8px;
}

.bdld-card-meta a {
	color: #011F5B;
	text-decoration: none;
	font-weight: 600;
}

.bdld-card-meta a:hover {
	color: #991B1F;
}

.bdld-card-excerpt {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #555;
	margin: 0 0 12px;
}

.bdld-card-cta {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: #991B1F;
	text-decoration: none;
}


