/* Ensure no empty space below footer */
html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Fix WhatsApp Button Positioning */
.whatsapp-btn {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 9999;
}

/* Fix Scroll Up Button Positioning */
.scroll-up {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9998;
	width: 45px;
	height: 45px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.scroll-up.active {
	opacity: 1;
	visibility: visible;
}

/* Blog Banner Animations */
@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInDown {
	0% {
		opacity: 0;
		transform: translateY(-15px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.animated-title {
	animation: fadeInDown 0.8s ease-out;
	animation-fill-mode: both;
}

.animated-subtitle {
	animation: fadeInUp 1s ease-out 0.2s;
	animation-fill-mode: both;
}

.scroll-down-btn {
	animation: fadeInUp 1.2s ease-out 0.4s;
	animation-fill-mode: both;
}

@keyframes bounce {

	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateX(-50%) translateY(0);
	}

	40% {
		transform: translateX(-50%) translateY(-10px);
	}

	60% {
		transform: translateX(-50%) translateY(-5px);
	}
}

/* Blog Card Styles */
.blog-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
	position: relative;
	height: 240px;
	overflow: hidden;
}

.blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
	transform: scale(1.1);
}

.blog-category {
	position: absolute;
	top: 15px;
	left: 15px;
	background: #36B4E5;
	color: white;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.blog-card-content {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.blog-meta {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
	color: #888;
	font-size: 13px;
}

.blog-meta i {
	margin-right: 5px;
	color: #36B4E5;
}

.blog-card-content h3 {
	font-size: 20px;
	font-weight: 700;
	color: #2D1A0C;
	margin-bottom: 12px;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.blog-card:hover h3 {
	color: #36B4E5;
}

.blog-card-content p {
	color: #666;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 20px;
	flex-grow: 1;
}

.read-more {
	color: #36B4E5;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: gap 0.3s ease;
}

.read-more:hover {
	gap: 12px;
	color: #2D1A0C;
}

.read-more.disabled {
	color: #999;
	cursor: not-allowed;
	pointer-events: none;
}

/* Placeholder Card Styles */
.placeholder-card {
	opacity: 0.7;
	position: relative;
}

.placeholder-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.3);
	pointer-events: none;
}

.placeholder-card .blog-category {
	background: #999;
}

.placeholder-card:hover {
	transform: none;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.placeholder-card:hover .blog-card-image img {
	transform: none;
}

.placeholder-card h3 {
	color: #999;
}

.placeholder-card:hover h3 {
	color: #999;
}

.placeholder-card .blog-card-content p {
	color: #aaa;
	font-style: italic;
}

/* Empty Card Styles */
.empty-card {
	border: 2px dashed #ddd;
}

.empty-card .blog-card-image {
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.empty-state {
	text-align: center;
	color: #999;
}

.empty-state i {
	font-size: 48px;
	margin-bottom: 10px;
	opacity: 0.3;
}

.empty-state p {
	font-size: 14px;
	font-weight: 500;
	margin: 0;
}

.empty-card h3 {
	color: #ccc;
}

.empty-card .blog-card-content p {
	color: #ddd;
}

.empty-card .blog-meta {
	color: #ddd;
}

.empty-card:hover {
	transform: none;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.read-more i {
	font-size: 12px;
}

/* Article Modal Styles */
.article-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	overflow-y: auto;
}

.article-modal.active {
	display: block;
}

.article-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 10001;
}

.article-modal-content {
	position: relative;
	max-width: 900px;
	margin: 50px auto;
	background: white;
	border-radius: 12px;
	z-index: 10002;
	animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.article-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 20px;
	color: #2D1A0C;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	z-index: 10003;
}

.article-modal-close:hover {
	background: #36B4E5;
	color: white;
	transform: rotate(90deg);
}

.article-modal-body {
	padding: 50px;
}

.article-full-image {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 30px;
}

.article-full-category {
	display: inline-block;
	background: #36B4E5;
	color: white;
	padding: 8px 20px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 15px;
}

.article-full-meta {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
	color: #888;
	font-size: 14px;
}

.article-full-meta i {
	margin-right: 5px;
	color: #36B4E5;
}

.article-full-title {
	font-size: 36px;
	font-weight: 700;
	color: #2D1A0C;
	margin-bottom: 25px;
	line-height: 1.3;
}

.article-full-content {
	color: #444;
	font-size: 16px;
	line-height: 1.8;
}

.article-full-content h2 {
	font-size: 28px;
	font-weight: 700;
	color: #2D1A0C;
	margin-top: 35px;
	margin-bottom: 20px;
}

.article-full-content h3 {
	font-size: 22px;
	font-weight: 600;
	color: #2D1A0C;
	margin-top: 30px;
	margin-bottom: 15px;
}

.article-full-content p {
	margin-bottom: 20px;
}

.article-full-content ul,
.article-full-content ol {
	margin-bottom: 20px;
	padding-left: 30px;
}

.article-full-content li {
	margin-bottom: 10px;
}

.article-full-content blockquote {
	border-left: 4px solid #36B4E5;
	padding-left: 20px;
	margin: 30px 0;
	font-style: italic;
	color: #666;
}

.article-share {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.article-share h4 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #2D1A0C;
}

.article-share-buttons {
	display: flex;
	gap: 10px;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
}

.share-btn.facebook {
	background: #1877f2;
	color: white;
}

.share-btn.twitter {
	background: #1da1f2;
	color: white;
}

.share-btn.linkedin {
	background: #0077b5;
	color: white;
}

.share-btn.whatsapp {
	background: #25d366;
	color: white;
}

.share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
	.blog-card-image {
		height: 200px;
	}

	.blog-card-content h3 {
		font-size: 18px;
	}

	.blog-meta {
		flex-direction: column;
		gap: 8px;
	}

	#blog-heading {
		font-size: 32px !important;
	}

	.article-modal-content {
		margin: 20px;
		border-radius: 8px;
	}

	.article-modal-body {
		padding: 30px 20px;
	}

	.article-full-image {
		height: 250px;
	}

	.article-full-title {
		font-size: 28px;
	}

	.article-full-content {
		font-size: 15px;
	}

	.article-full-content h2 {
		font-size: 24px;
	}

	.article-full-content h3 {
		font-size: 20px;
	}

	.article-share-buttons {
		flex-wrap: wrap;
	}

	.share-btn {
		font-size: 13px;
		padding: 8px 15px;
	}
}