.hero {
	background: linear-gradient(135deg, #0b2b26 0%, #1e4a3b 100%);
	color: white;
	padding: 4rem 2rem;
	text-align: center;
	border-radius: 0 0 2rem 2rem;
	margin-bottom: 2.5rem;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero h1 {
	font-size: 2.8rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 0.75rem;
}

.hero p {
	font-size: 1.2rem;
	max-width: 600px;
	margin: 0 auto;
	opacity: 0.9;
}

/* Container */
.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem 3rem;
}

/* Filter Buttons */
.filter-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 3rem;
}

.filter-btn {
	background: white;
	border: 2px solid #e2e8f0;
	padding: 0.65rem 1.5rem;
	border-radius: 60px;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #1e293b;
	box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.filter-btn.active {
	background: #0f3b30;
	border-color: #0f3b30;
	color: white;
	box-shadow: 0 4px 8px rgba(15, 59, 48, 0.2);
}

.filter-btn:hover:not(.active) {
	background: #f1f5f9;
	border-color: #cbd5e1;
	transform: translateY(-2px);
}

/* Search bar */
.search-section {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1.5rem;
}
.search-box {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	background: white;
	border-radius: 60px;
	border: 1px solid #e2e8f0;
	padding: 0.3rem 0.3rem 0.3rem 1rem;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.search-box input {
	border: none;
	padding: 0.5rem;
	font-size: 0.9rem;
	width: 200px;
	outline: none;
}
.search-box button {
	background: #0f3b30;
	border: none;
	color: white;
	padding: 0.45rem 1.2rem;
	border-radius: 40px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}
.search-box button:hover {
	background: #1e5a48;
}

/* Blog Grid */
/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Card */
.blog-card {
    background: var(--bg-primary-rotated);
    border-radius: 16px;
    border: 2px solid var(--accent-primary-rotated);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
	position: static;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

/* Image */
.card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Content */
.card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
	position: relative;
    z-index: 2;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    background: #e6f4ea;
    color: #0f3b30;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
}

/* Title */
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary-rotated);
    line-height: 1.4;
}

/* Excerpt */
.card-excerpt {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
	color: var(--text-primary1);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Date */
.card-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--accent-primary-rotated);
}

/* Responsive */
@media (max-width: 768px) {
    .card-img {
        height: 180px;
    }

    .card-title {
        font-size: 1rem;
    }
}

/* Modal */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	visibility: hidden;
	opacity: 0;
	transition: all 0.2s;
}
.modal-overlay.active {
	visibility: visible;
	opacity: 1;
}
.modal-container {
	background: var(--bg-primary1);
	max-width: 700px;
	width: 90%;
	max-height: 85vh;
	border-radius: 1.5rem;
	overflow-y: auto;
	box-shadow: 0 25px 40px rgba(0,0,0,0.2);
	animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
	from { transform: scale(0.96); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}
.modal-img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	background: #cbd5e1;
}
.modal-content {
	padding: 1.8rem;
}
.modal-content h2 {
	margin-bottom: 0.5rem;
	font-size: 1.8rem;
}
.modal-category {
	display: inline-block;
	background: var(--accent-primary);
	padding: 0.2rem 1rem;
	border-radius: 30px;
	font-size: 0.75rem;
	font-weight: 600;
	margin: 0.6rem 0 1rem;
}
.modal-body {
	line-height: 1.65;
	color: #2d3a4a;
	margin: 1rem 0;
	white-space: pre-wrap;
}
.close-modal {
	background: #0f3b30;
	border: none;
	color: white;
	padding: 0.6rem 1.5rem;
	border-radius: 40px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 0.5rem;
}
/* Popular sidebar (bonus) */
.popular-sidebar {
	margin-top: 3rem;
	background: var(--bg-primary2);
	border-radius: 1.5rem;
	padding: 1.5rem;
	box-shadow: 0 5px 15px rgba(0,0,0,0.03);
	border: 1px solid #eef2f0;
}
.popular-sidebar h3 {
	font-size: 1.4rem;
	margin-bottom: 1rem;
	font-weight: 600;
	border-left: 5px solid #1e4a3b;
	padding-left: 1rem;
}
.popular-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.popular-item {
	display: flex;
	gap: 1rem;
	align-items: center;
	cursor: pointer;
	transition: background 0.1s;
	padding: 0.5rem;
	border-radius: 0.8rem;
}
.popular-item:hover {
	background: var(--bg-primary2);
}
.popular-img {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	background-color: #e2e8f0;
}
.popular-info h4 {
	font-size: 0.9rem;
	margin-bottom: 0.2rem;
}
.popular-info p {
	font-size: 0.7rem;
	color: #5b6e8a;
}

.loader {
	text-align: center;
	padding: 3rem;
	font-size: 1.2rem;
	color: #1e4a3b;
}

.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    width: 50%;
    gap: 1rem;
	background: var(--bg-primary2);
	padding: 2rem;
	border-radius: 12px;
	border: 2px solid var(--accent-primary-rotated);
}

.testimonial-form input,
.testimonial-form textarea {
    padding: 0.8rem;
	width: 90%;
    border: 1px solid var(--accent-primary-rotated);
    border-radius: 8px;
    font-size: 0.9rem;
	margin-left: 2rem;
}

.testimonial-form textarea {
    min-height: 120px;
    resize: vertical;
}

.testimonial-form button {
    background: var(--accent-primary-rotated);
    color: var(--text-primary1);
	font-weight: bolder;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.testimonial-form button:hover {
    background:transparent;
	color: var(--accent-primary);
	border: 2px solid var(--accent-primary);
}

@media (max-width: 768px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	.testimonial-form {
    max-width: 800px;
    width: 80%;
	}

	.testimonial-form input,
	.testimonial-form textarea {
	margin-left: 0.5rem;
}
@media (max-width: 640px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}
	.hero h1 {
		font-size: 2rem;
	}
	.filter-bar {
		gap: 0.5rem;
	}
	.filter-btn {
		padding: 0.5rem 1rem;
		font-size: 0.8rem;
	}
	.search-box input {
		width: 140px;
	}
}