.excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    min-height: calc(1.6em * 3);
}

.read-more-btn {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    background-color: #a5a5a5;
    padding: 8px 20px 8px 20px;text-decoration: none !important;
}
.read-more-btn:hover {
    text-decoration: underline;
}
/* Banner Section */
.banner-blog {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 80px;
}

.banner-blog img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 5s ease;
}

.banner-blog:hover img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(165,165,165,0.3) 100%);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
}

.main-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: "Michroma", sans-serif;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.5);
    animation: titleFloat 3s ease-in-out infinite alternate;
}

@keyframes titleFloat {
    from { transform: translateY(-5px); }
    to { transform: translateY(5px); }
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}



/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(165, 165, 165, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(165, 165, 165, 0.1);
}

.blog-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(165, 165, 165, 0.25);
    border-color: rgba(165, 165, 165, 0.3);
}

/* Card Glow Effect */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(165,165,165,0.03) 50%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Image Container */
.image-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: grayscale(20%);
}

.blog-card:hover .blog-img {
    transform: scale(1.15) rotate(1deg);
    filter: grayscale(0%);
}

/* Image Overlay */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8) 100%);
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.blog-card:hover .img-overlay {
    opacity: 0.4;
}

/* Category Tag */
.category-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Card Content */
.card-content {
    padding: 30px;
    position: relative;
    z-index: 2;
    background: white;
}

.date {
    color: #a5a5a5;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.date::before {
    content: "✦";
    font-size: 1rem;
    color: black;
}

.card-title {
    font-size: 20px;
    color: black;
    margin-bottom: 20px;
    line-height: 1.4;
    font-family: "Michroma", sans-serif;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #a5a5a5;
    transition: width 0.3s ease;
}

.blog-card:hover .card-title::after {
    width: 100px;
}

.excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(165, 165, 165, 0.2);
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a5a5a5 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(165, 165, 165, 0.3);
}

.author-name {
    color: black;
    font-weight: 600;
    font-size: 0.95rem;
}

.read-time {
    color: #a5a5a5;
    font-size: 0.8rem;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-time::before {
    content: "⏱️";
    font-size: 0.9rem;
}

/* Decorative Elements */
.card-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(165,165,165,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.deco-1 { top: -30px; right: -30px; }
.deco-2 { bottom: -30px; left: -30px; }

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 30px;
    }
    
    .banner-blog {
        height: 400px;
        margin-bottom: 50px;
    }
    
    .main-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        padding: 0 15px;
    }
    
    .banner-blog {
        height: 300px;
    }
    
    .main-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
}


/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* Floating Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(165, 165, 165, 0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-1000px) rotate(720deg); }
}