/* Existing styles... */

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Colorful Blog Card Bottom Borders (like service cards) */
.blog-card:nth-child(1) {
    border-bottom: 3px solid #ff5252;
}

.blog-card:nth-child(2) {
    border-bottom: 3px solid #448aff;
}

.blog-card:nth-child(3) {
    border-bottom: 3px solid #ffeb3b;
}

.blog-card:nth-child(4) {
    border-bottom: 3px solid #69f0ae;
}

.blog-card:nth-child(5) {
    border-bottom: 3px solid #e040fb;
}

.blog-card:nth-child(6) {
    border-bottom: 3px solid #ff9800;
}

.blog-card:nth-child(7) {
    border-bottom: 3px solid #00bcd4;
}

.blog-card:nth-child(8) {
    border-bottom: 3px solid #f44336;
}

.blog-card:nth-child(9) {
    border-bottom: 3px solid #9c27b0;
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.15), 0 10px 20px rgba(156, 39, 176, 0.1);
}

.blog-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

/* Overlay effect on hover */
.blog-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: 0.3s;
}

.blog-card:hover .blog-img::after {
    opacity: 1;
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.3;
}

.blog-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    background: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Match button color to border */
.blog-card:nth-child(1) .read-more {
    background: #ff5252;
    box-shadow: 0 4px 10px rgba(255, 82, 82, 0.3);
}

.blog-card:nth-child(2) .read-more {
    background: #448aff;
    box-shadow: 0 4px 10px rgba(68, 138, 255, 0.3);
}

.blog-card:nth-child(3) .read-more {
    background: #fbc02d;
    color: #333;
    box-shadow: 0 4px 10px rgba(251, 192, 45, 0.3);
}

/* Dark text for yellow */
.blog-card:nth-child(4) .read-more {
    background: #00e676;
    box-shadow: 0 4px 10px rgba(0, 230, 118, 0.3);
}

.blog-card:nth-child(5) .read-more {
    background: #e040fb;
    box-shadow: 0 4px 10px rgba(224, 64, 251, 0.3);
}

.blog-card:nth-child(6) .read-more {
    background: #ff9800;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.blog-card:nth-child(7) .read-more {
    background: #00bcd4;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}

.blog-card:nth-child(8) .read-more {
    background: #f44336;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

.blog-card:nth-child(9) .read-more {
    background: #9c27b0;
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.3);
}


.read-more:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}