main{
    display: flex;
    justify-content: center
}

a {
    text-decoration: none;
    color: inherit;
}
:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --text-color: #333;
    --light-text: #777;
    --background-color: #f9f9ff;
    --white: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.container2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

}

/* Blog Section Styles */
.blog-section {
    padding: 80px 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    ;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 20%;
    
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 20px;
}
/* View All button container */
.view-all-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

/* View All button styles */
.view-all {
    background: transparent;
    color: #2a52be;
    border: 2px solid #2a52be;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-all:hover {
    background: #2a52be;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 190, 0.3);
}

.view-all i {
    transition: transform 0.3s ease;
}

.view-all:hover i {
    transform: translateX(4px);
}

/* When showing all blogs */
.view-all.show-less i {
    transform: rotate(180deg);
}

.view-all:hover.show-less i {
    transform: rotate(180deg) translateX(4px);
}

/* Blog Posts Grid */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns */
    gap: 30px;
}

/* Blog Card Styles */
.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.post-meta i {
    margin-right: 5px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.post-excerpt {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-posts {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .blog-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}