/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Custom child theme for Astra
Author: Sumit Bisht (Web developer)
Author URI: https://example.com/
Template: astra
Version: 1.0.0
*/

.custom-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 20px 0;
}

.blog-grid-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.25rem; /* Medium font size */
    line-height: 1.4;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.blog-card-title a {
    text-decoration: none;
    color: #2c3e50;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 992px) {
    .custom-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .custom-blog-grid {
        grid-template-columns: 1fr;
    }
}


/* new */
.head-ani {
    /* Create a repeating gradient shifting from dark red/maroon to bright pink/red back to dark red */
    background: linear-gradient(
        90deg, 
        #8A142B 0%, 
        #C62443 25%, 
        #FF5C77 50%, 
        #C62443 75%, 
        #8A142B 100%
    );
    background-size: 200% auto;
    
    /* Clip the background gradient to the text only */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Continuous running animation */
    animation: textGradientRun 3s linear infinite;
}

@keyframes textGradientRun {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}
