/* Lupos Blog Directory Styling 
    Targeting 3-4 cards per line with B2B Teal Accents
*/

:root {
    --lupos-teal: #008080;
    --lupos-teal-light: #e6f2f2;
    --lupos-text-gray: #7f888f;
    --lupos-dark: #3d4449;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Grid Configuration */
.blog-grid {
    display: grid;
    /* Forces 3-4 cards per line on desktop based on container width */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Card Styling */
.blog-card {
    background: #ffffff;
    border: 1px solid #efefef;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--lupos-teal);
}

/* Featured Image Animation */
.image-wrapper {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

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

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

/* Info Panel */
.blog-info-panel {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-info-panel time {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lupos-teal);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

.blog-info-panel h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-info-panel h3 a {
    text-decoration: none;
    color: var(--lupos-dark);
    border-bottom: none;
}

.blog-card:hover .blog-info-panel h3 a {
    color: var(--lupos-teal);
}

/* Excerpt with 3-line limit (Line Clamp) */
.blog-info-panel p.excerpt {
    font-size: 0.9rem;
    color: var(--lupos-text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    /* Standard line-clamp logic */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link */
.read-more {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--lupos-teal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.read-more:hover {
    border-color: var(--lupos-teal);
}

/* Mobile Adjustments */
@media screen and (max-width: 736px) {
    .blog-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    
    .image-wrapper {
        height: 250px; /* Larger image on mobile for better visibility */
    }
}