/* ========================================
   Conseil Douane - Blog Page Styling
   Modern, Professional Blog Design
   ======================================== */

/* Blog Container & Layout */
.blog .site-main,
.archive .site-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
}

/* Blog Header */
.page-header,
.archive-header {
	text-align: center;
	margin-bottom: 60px;
	padding: 80px 20px 60px;
	background: linear-gradient(135deg, #1e3a8a 0%, #2c5aa0 100%);
	border-radius: 20px;
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.page-header::before,
.archive-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 0.3; }
	50% { transform: scale(1.1); opacity: 0.5; }
}

.page-title,
.archive-title {
	font-size: 48px;
	font-weight: 900;
	margin: 0 0 20px 0;
	letter-spacing: -2px;
	background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	position: relative;
	z-index: 1;
}

.archive-description,
.taxonomy-description {
	font-size: 18px;
	opacity: 0.95;
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.6;
	position: relative;
	z-index: 1;
}

/* Blog Posts Grid */
.blog-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 40px;
	margin-bottom: 60px;
}

/* Individual Post Card */
article.post,
article.hentry,
article.et_pb_post {
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid rgba(30, 58, 138, 0.1);
	margin-bottom: 30px;
}

/* Hover removed as requested */

/* Post Thumbnail - Enhanced & Smaller */
.post-thumbnail,
.entry-thumbnail,
.entry-featured-image-url {
	position: relative;
	width: 100%;
	padding-top: 35%; /* 3:1 aspect ratio - much smaller and flatter */
	overflow: hidden;
	background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
	display: block;
}

.post-thumbnail a,
.entry-thumbnail a,
a.entry-featured-image-url {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Enhanced image styling with opacity */
.post-thumbnail img,
.entry-thumbnail img,
.entry-featured-image-url img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	/* Enhanced image quality */
	filter: brightness(1.02) contrast(1.05) saturate(1.1);
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
	backface-visibility: hidden;
	-webkit-font-smoothing: antialiased;
	/* Soft opacity for subtle appearance */
	opacity: 0.85;
}

/* Hover effects removed as requested */

/* Category Badge */
.post-categories,
.cat-links {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.post-categories a,
.cat-links a {
	background: rgba(30, 58, 138, 0.9);
	backdrop-filter: blur(10px);
	color: #ffffff;
	padding: 8px 16px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover removed */

/* Post Content Area */
.entry-content-wrapper,
.post-content {
	padding: 30px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.post-content-inner {
	flex-grow: 1;
}

/* Post Meta */
.entry-meta,
.post-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
	font-size: 14px;
	color: #64748b;
	flex-wrap: wrap;
}

.entry-meta .posted-on,
.entry-meta .byline,
.entry-meta .author,
.post-meta .author,
.post-meta .vcard {
	display: flex;
	align-items: center;
	gap: 6px;
}

.entry-meta .posted-on::before,
.post-meta .published::before {
	content: '📅';
	font-size: 14px;
	margin-right: 4px;
}

.entry-meta .byline::before,
.entry-meta .author::before {
	content: '✍️';
	font-size: 14px;
}

.entry-meta a,
.post-meta a {
	color: #1e3a8a;
	text-decoration: none;
	font-weight: 600;
}

/* Hover removed */

/* Divi specific meta styling */
.post-meta .author.vcard {
	display: inline;
}

.post-meta .published {
	display: inline-flex;
	align-items: center;
}

/* Post Title */
.entry-title {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 16px 0;
	line-height: 1.3;
	color: #1e293b;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

/* Hover removed */

/* Post Excerpt */
.entry-summary,
.entry-content,
.post-content-inner p {
	color: #475569;
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 24px;
	flex-grow: 1;
}

/* Divi post content */
.et_pb_post .post-content {
	background: transparent;
	padding: 30px;
}

.et_pb_post .post-content-inner {
	color: #475569;
	font-size: 16px;
	line-height: 1.7;
}

/* Read More Link - No Hover */
.more-link,
.read-more-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #1e3a8a 0%, #2c5aa0 100%);
	color: #ffffff;
	padding: 12px 28px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
	align-self: flex-start;
}

.more-link::after,
.read-more-link::after {
	content: '→';
	font-size: 16px;
}

/* Hover effects removed */

/* Pagination */
.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 60px 0 40px;
	flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 16px;
	background: #ffffff;
	color: #1e3a8a;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Hover removed */

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
	background: linear-gradient(135deg, #1e3a8a 0%, #2c5aa0 100%);
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
}

.pagination .page-numbers.dots,
.nav-links .page-numbers.dots {
	border: none;
	background: transparent;
	box-shadow: none;
}

.pagination .prev,
.pagination .next,
.nav-links .prev,
.nav-links .next {
	font-weight: 700;
}

/* Sidebar */
.widget-area,
.sidebar {
	padding: 30px;
	background: #f8fafc;
	border-radius: 20px;
	border: 1px solid #e2e8f0;
}

.widget {
	margin-bottom: 40px;
	padding: 30px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	font-size: 22px;
	font-weight: 800;
	color: #1e3a8a;
	margin: 0 0 24px 0;
	padding-bottom: 16px;
	border-bottom: 3px solid #1e3a8a;
	position: relative;
}

.widget-title::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #2c5aa0, transparent);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget ul li {
	padding: 12px 0;
	border-bottom: 1px solid #e2e8f0;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: #475569;
	text-decoration: none;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
}

.widget ul li a::before {
	content: '→';
	color: #1e3a8a;
	font-weight: 700;
}

/* Hover removed */

/* Search Widget */
.widget_search .search-form {
	display: flex;
	gap: 8px;
}

.widget_search .search-field {
	flex: 1;
	padding: 14px 18px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 15px;
	transition: all 0.3s ease;
}

.widget_search .search-field:focus {
	outline: none;
	border-color: #1e3a8a;
	box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.widget_search .search-submit {
	padding: 14px 24px;
	background: linear-gradient(135deg, #1e3a8a 0%, #2c5aa0 100%);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* Hover removed */

/* Recent Posts Widget */
.widget_recent_entries ul li {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.widget_recent_entries .post-date {
	font-size: 13px;
	color: #94a3b8;
	font-weight: 500;
}

/* Tags Cloud */
.tagcloud a,
.wp-block-tag-cloud a {
	display: inline-block;
	padding: 8px 16px;
	margin: 4px;
	background: #f1f5f9;
	color: #1e3a8a;
	border-radius: 50px;
	font-size: 14px !important;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #e2e8f0;
}

/* Hover removed */

/* No Posts Found */
.no-results {
	text-align: center;
	padding: 80px 20px;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results .page-title {
	font-size: 36px;
	color: #1e3a8a;
	margin-bottom: 20px;
}

.no-results .page-content {
	font-size: 18px;
	color: #64748b;
	max-width: 600px;
	margin: 0 auto;
}

/* Sticky Post Indicator */
.sticky {
	position: relative;
}

.sticky::before {
	content: '📌';
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 24px;
	z-index: 3;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ========================================
   Divi Theme Specific Overrides
   ======================================== */

/* Divi clearfix */
.et_pb_post.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* Remove Divi default styles that conflict */
.et_pb_post {
	float: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Ensure Divi images don't have extra margins */
.et_pb_post .entry-featured-image-url {
	margin: 0;
}

/* Fix Divi post content padding */
.et_pb_post .post-content {
	margin: 0;
}

/* Divi category links in meta */
.et_pb_post .post-meta a[rel="tag"] {
	background: rgba(30, 58, 138, 0.1);
	padding: 4px 12px;
	border-radius: 20px;
	color: #1e3a8a;
	font-weight: 600;
}

/* Hover removed */

/* Override Divi h2 styles for entry-title */
.et_pb_post h2.entry-title {
	padding: 0;
	margin: 0 0 16px 0;
}

.et_pb_post h2.entry-title a {
	color: #1e293b;
	text-decoration: none;
}

/* Divi blog grid container */
.et_pb_blog_grid .et_pb_post {
	margin-bottom: 40px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
	.blog-posts-grid {
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
		gap: 30px;
	}
	
	.page-title,
	.archive-title {
		font-size: 40px;
	}
}

@media (max-width: 768px) {
	.blog .site-main,
	.archive .site-main {
		padding: 40px 15px;
	}
	
	.page-header,
	.archive-header {
		padding: 60px 20px 40px;
		margin-bottom: 40px;
	}
	
	.page-title,
	.archive-title {
		font-size: 32px;
	}
	
	.archive-description,
	.taxonomy-description {
		font-size: 16px;
	}
	
	.blog-posts-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.entry-content-wrapper {
		padding: 24px;
	}
	
	.entry-title {
		font-size: 22px;
	}
	
	.widget-area,
	.sidebar {
		margin-top: 40px;
	}
}

@media (max-width: 480px) {
	.page-header,
	.archive-header {
		padding: 40px 15px 30px;
		border-radius: 16px;
	}
	
	.page-title,
	.archive-title {
		font-size: 28px;
		letter-spacing: -1px;
	}
	
	.entry-content-wrapper {
		padding: 20px;
	}
	
	.entry-title {
		font-size: 20px;
	}
	
	.entry-summary,
	.entry-content {
		font-size: 15px;
	}
	
	.more-link,
	.read-more-link {
		width: 100%;
		justify-content: center;
	}
	
	.pagination .page-numbers,
	.nav-links .page-numbers {
		min-width: 44px;
		height: 44px;
		padding: 0 12px;
		font-size: 14px;
	}
	
	.widget {
		padding: 24px;
	}
	
	.widget-title {
		font-size: 20px;
	}
}

/* ========================================
   Animation Classes
   ======================================== */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
	.pagination,
	.nav-links,
	.widget-area,
	.sidebar,
	.more-link,
	.read-more-link {
		display: none;
	}
	
	article.post,
	article.hentry {
		box-shadow: none;
		border: 1px solid #e2e8f0;
		page-break-inside: avoid;
	}
}

