/*--------------------------------------------------------------
# Homepage Styles
--------------------------------------------------------------*/

/* Main Container */
.main {
	padding: 2rem 0;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* Featured Post Block */
.featured-post {
	margin-bottom: 4rem;
}

.view-all-btn{
    border: 1px solid rgba(105, 106, 117, 0.3);
    border-radius: 6px;
    display: flex
;
    margin: 30px auto;
    padding: 12px 20px;
    width: 152px;
    height: 48px;
    font-family: "Work Sans", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #696a75;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.view-all-btn:hover{
	    color: #696a75;

}


.featured-post__article {
	display: flex;
	
	flex-direction:column;
	border-radius: 1rem;
	position:relative;
	
	background: var(--bg-primary);
	
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	min-height: 400px;
}

.featured-post__content{
	    left: 64px;
	    background-color: var(--bg-header);
    padding: 2rem;
	box-shadow: 0 12px 24px -6px rgba(24, 26, 42, 0.12);
    position: absolute;
	    padding: 2rem;
    display: flex
;
    max-width: 598px;
	border: 1px solid var(--border-light);
    flex-direction: column;
    justify-content: center;
	
    border-radius: 12px;
    color: var(--text-primary);
    width: 100%;
    display: flex
;
    flex-direction: column;
    justify-content: center;
    color: var(--text-primary);
    bottom: -64px;
}

.featured-post__article:hover {
	transform: translateY(-2px);
}

.featured-post__content {
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: var(--text-primary);
}

.featured-post__image {
	position: relative;
	overflow: hidden;
	border-radius:20px;
	height:580px;
}

.featured-post__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.featured-post__article:hover .featured-post__img {
	transform: scale(1.05);
}



.category-tag {
	display: inline-block;
	background-color: #3b82f6;
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.05em;
}

time{
	font-family:inherit;
}

.category-tag--small {
border-radius: 6px;
	background: rgba(75, 107, 251, 0.05);
	font-weight: 500;
font-size: 14px;
line-height: 143%;
color: #4b6bfb;
padding: 4px 10px;
	
}

.featured-post__title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.featured-post__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.featured-post__title a:hover {
	color: var(--text-link);
}

.featured-post__meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: auto;
}

.post-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #97989f;
}

.post-author__avatar {
	border-radius: 50%;
}

.post-author__name {
	font-weight: 500;
	font-size: 0.875rem;
	color: #97989f;
}

.post-date {
	font-size: 0.875rem;
	font-weight:400;
	color: #97989f;}

/* Advertisement Block */
.advertisement-block {
margin: 140px 0 80px;
    display: flex
;
    justify-content: center;
}

.advertisement {
	width: 100%;
	max-width: 750px;
	height: 100px;
	background: var(--bg-ad, #e8e8ea);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	color: var(--text-ad, #9ca3af);
	font-family: "Work Sans", sans-serif;
}

.advertisement__label {
font-family: "Work Sans", sans-serif;
font-weight: 400;
font-size: 14px;
line-height: 143%;
text-align: center;
color: var(--text-ad, #696a75);
}

.advertisement__content {
font-family: "Work Sans", sans-serif;
font-weight: 600;
font-size: 20px;
line-height: 120%;
text-align: center;
color: var(--text-ad, #696a75);
}


.advertisement__content span{
	font-family: "Work Sans", sans-serif;
font-weight: 400;
font-size: 18px;
line-height: 144%;
text-align: center;
color: var(--text-ad, #696a75);
}

.bottom_ada{
	margin-top:50px !important;
}

/* Recent Posts Section */
.recent-posts {

}

.recent-posts__header {
	margin-bottom: 2rem;
}


.recent-posts__header h2 {
	font-size: 2rem;
	font-weight: 700;
	
	color: var(--text-primary);
	margin: 0;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 20px;
}

.post-card {
	background: var(--bg-primary);
border: 1px solid var(--border-light);
border-radius: 12px;
	padding: 16px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.post-card__image {
	position: relative;
	width: 100%;
	height: 240px;
	overflow: hidden;
}

.post-card__img {
	width: 100%;
	height: 100%;

	object-fit: cover;
	transition: transform 0.3s ease;
}

.post-card__image{
		border-radius:6px;
	overflow:hidden;
}

.post-card:hover .post-card__img {
	transform: scale(1.05);
}

.post-card__content {
	padding: 24px 0;
}

.post-card__category {
	margin-bottom: 1rem;
}

.post-card__title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom:0;
	margin-top:0;
}

.post-card__title a {
	color: var(--text-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.post-card__title a:hover {
	color: var(--text-link);
}

.post-card__excerpt {
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 1rem;
	font-size: 0.875rem;
}

.post-card__meta {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: 20px;
}

.post-author--small .post-author__avatar {
	width: 24px;
	height: 24px;
}

.post-author--small .post-author__name {
font-weight: 500;
font-size: 16px;
line-height: 150%;
color: #97989f;
}

.post-card .post-date {
font-weight: 500;
font-size: 16px;
line-height: 150%;
color: #97989f;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.main {
		padding: 1rem 0;
	}
	
	.featured-post__content {
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-header);
    padding: 2rem;
    box-shadow: 0 12px 24px -6px rgba(24, 26, 42, 0.12);
    position: absolute;
    padding: 2rem;
    display: flex
;
    max-width: 598px;
    flex-direction: column;
    justify-content: center;
    border-radius: 5px;
    color: var(--text-primary);
    width: 90%;
    display: flex
;
    flex-direction: column;
    justify-content: center;
    color: var(--text-primary);
    bottom: -110px;
}
	
	.advertisement-block {
    margin: 40px 0 40px;
    display: flex
;
    justify-content: center;
}
	
	.container {
		padding: 0 0.75rem;
	}
	
	.featured-post {
		margin-bottom: 2rem;
	}
	
	.featured-post__article {
		grid-template-columns: 1fr;
		grid-template-rows: 300px auto;
	}
	
	.featured-post__image {
		order: -1;
	        height: 510px !important;
        border-radius: 6px;
	}
	
	.featured-post__content {
		padding: 1.5rem;
	}
	
	.featured-post__title {
		font-size: 1.75rem;
	}
	
	.featured-post__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		margin-top: 1rem;
	}
	
	.posts-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.recent-posts__header h2 {
		font-size: 1.5rem;
	}
}

@media screen and (max-width: 480px) {
	.featured-post__image {
		height: 250px;
	}
	
	.featured-post__content {
		padding: 1.5rem 1rem 1rem;
	}
	
	.featured-post__title {
		font-size: 1.5rem;
	}
	
	.post-card__content {
		padding: 1rem 0; 
	}
} 