/**
 * @file footer.css
 * @description 
 * @author Erdinç Taze
 * @copyright 
 */

 /* Blog Card Styles */
 .blog-section {
    padding: 3rem 0 !important;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    height: 100%;
    max-height: 280px;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FE0000, #ff4444);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(254, 0, 0, 0.15);
    border-color: rgba(254, 0, 0, 0.2);
}

.blog-card-body {
    padding: 1.25rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.blog-card-title a:hover {
    color: #FE0000;
}

.blog-card:hover .blog-card-title a {
    color: #FE0000;
}

.blog-card-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
}

.blog-read-more {
    color: #FE0000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #cc0000;
    text-decoration: none;
}

.blog-read-more i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.blog-card:hover .blog-read-more i {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .blog-card-body {
        padding: 1rem 0.875rem;
    }
    
    .blog-card-title {
        font-size: 1rem;
    }
    
    .blog-section {
        padding: 2.5rem 0 !important;
    }

    .blog-card {
        max-height: 260px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .blog-card-body {
        padding: 0.875rem 0.75rem;
    }

    .blog-card {
        max-height: 240px;
    }
}

/* Animation for cards appearing */
.blog-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.15s; }
.blog-card:nth-child(3) { animation-delay: 0.2s; }
.blog-card:nth-child(4) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}