/*
Theme Name: Blocksy Child
Template: blocksy
*/

@media(min-width:768px) {
	.single article,
	.blog section {
		padding: 50px 0;
	}
	
	[data-prefix="blog"] .entry-header .page-title {
		font-size: 70px;
	}
}

.hero-section[data-type=type-2]>[class*=ct-container] {
	padding-top: 0px;
}

.custom-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.post-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0px 10px 30px -12px rgba(49, 84, 120, 0.62);
	transition: transform 0.3s ease-in-out;
}

.post-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-in-out;
}

.post-item:hover .post-image {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    bottom: -25%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #2264ad80, rgba(0, 0, 0, 0));
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    transition: bottom 0.4s ease-in-out;
}

.post-item:hover .post-overlay {
    bottom: 0;
}

.post-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
	color: #fff;
}

.post-excerpt {
    font-size: 14px;
    max-width: 80%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-button {
    text-align: center;
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.blog-button a:hover {
	 color: #fff;
}

.view-all-btn {
    background-color: #1E3A8A;
    border-radius: 8px 8px 8px 8px;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    padding: 12px 24px;
    fill: #fff;
    text-align: center;
    transition: all .3s;
    display: flex;
    width: 20em;
    justify-content: center;
}

.view-all-btn:hover {
    background-color: var(--e-global-color-blocksy_palette_2);
}

@media (max-width: 768px) {
    .custom-post-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .post-title {
        font-size: 18px;
    }
    .post-overlay {
        height: 60%;
        bottom: -60%;
		transition: bottom 0.3s ease-in-out;
    }
    .post-item:hover .post-overlay {
        bottom: 0;
    }
	
	.post-item:active .post-image {
        transform: scale(1.03);
    }
}


.btn-whatsapp {
    display: block;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
	margin: 20px 0;
    border-radius: 5px;
	text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}