/**
 * Related Pages Styles
 * 
 * @package Blog Content
 */

/* ========================================
   Related Pages Section
   ======================================== */

.related-pages-section {
	margin: 60px 0 40px;
	padding: 50px 0;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border-top: 3px solid #007bff;
	border-bottom: 1px solid #e0e0e0;
}

.related-pages-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Title */
.related-pages-title {
	font-family: 'Poppins', sans-serif;
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 40px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.related-pages-title .title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
	color: #ffffff !important;
	border-radius: 50%;
	font-size: 1.25rem;
}

.related-pages-title .title-icon::before {
	color: #ffffff !important;
}

.related-pages-title .title-icon svg {
	fill: #ffffff !important;
	color: #ffffff !important;
}

.related-pages-title .title-icon svg path {
	fill: #ffffff !important;
}

.related-pages-title .title-icon i {
	color: #ffffff !important;
}

.related-pages-title .title-icon .fa-solid,
.related-pages-title .title-icon .fa-regular,
.related-pages-title .title-icon .fa-brands {
	color: #ffffff !important;
}

/* Grid */
.related-pages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

/* Card */
.related-page-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.related-page-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 24px rgba(0, 123, 255, 0.2);
}

/* Thumbnail */
.related-page-thumbnail {
	position: relative;
	overflow: hidden;
	height: 220px;
	background: #f0f0f0;
}

.related-page-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.related-page-card:hover .related-page-thumbnail img {
	transform: scale(1.1);
}

.thumbnail-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(0, 123, 255, 0.9) 0%, rgba(0, 86, 179, 0.9) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.related-page-card:hover .thumbnail-overlay {
	opacity: 1;
}

.thumbnail-overlay i {
	font-size: 2.5rem;
	color: #fff;
	transform: translateX(-10px);
	transition: transform 0.3s ease;
}

.related-page-card:hover .thumbnail-overlay i {
	transform: translateX(0);
}

/* Content */
.related-page-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.related-page-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 15px 0;
	color: #1a1a1a;
}

.related-page-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.related-page-title a:hover {
	color: #007bff;
}

.related-page-excerpt {
	font-size: 0.938rem;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
	flex: 1;
}

/* Footer */
.related-page-footer {
	padding-top: 15px;
	border-top: 1px solid #f0f0f0;
}

.related-page-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #007bff;
	font-weight: 600;
	font-size: 0.938rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.related-page-link:hover {
	color: #0056b3;
	gap: 12px;
}

.related-page-link i {
	font-size: 0.875rem;
	transition: transform 0.3s ease;
}

.related-page-link:hover i {
	transform: translateX(3px);
}

/* No thumbnail style */
.related-page-card:not(:has(.related-page-thumbnail)) .related-page-content {
	padding: 30px 25px;
}

/* ========================================
   Alternative Compact Style
   ======================================== */

.related-pages-section.compact .related-pages-grid {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.related-pages-section.compact .related-page-card {
	flex-direction: row;
	align-items: center;
}

.related-pages-section.compact .related-page-thumbnail {
	width: 120px;
	height: 120px;
	flex-shrink: 0;
}

.related-pages-section.compact .related-page-content {
	padding: 20px;
}

.related-pages-section.compact .related-page-title {
	font-size: 1.063rem;
	margin-bottom: 10px;
}

.related-pages-section.compact .related-page-excerpt {
	display: none;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
	.related-pages-section {
		margin: 40px 0 30px;
		padding: 40px 0;
	}

	.related-pages-title {
		font-size: 1.625rem;
		margin-bottom: 30px;
		flex-direction: column;
		gap: 10px;
	}

	.related-pages-title .title-icon {
		width: 45px;
		height: 45px;
		font-size: 1.125rem;
	}

	.related-pages-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.related-page-thumbnail {
		height: 200px;
	}

	.related-page-content {
		padding: 20px;
	}

	.related-page-title {
		font-size: 1.125rem;
	}

	.related-page-excerpt {
		font-size: 0.875rem;
	}
}

@media (max-width: 480px) {
	.related-pages-section {
		padding: 30px 0;
	}

	.related-pages-container {
		padding: 0 15px;
	}

	.related-pages-title {
		font-size: 1.5rem;
	}

	.related-page-thumbnail {
		height: 180px;
	}

	.related-page-content {
		padding: 18px;
	}
}

/* ========================================
   Loading State (optional)
   ======================================== */

.related-pages-grid.loading {
	opacity: 0.5;
	pointer-events: none;
}

.related-page-card.skeleton {
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
	.related-pages-section {
		display: none;
	}
}


