/* blog/static/blog/css/style.css */

.blog-page {
    padding: 70px 0 90px;
    background: #ffffff;
    border-bottom: 1px solid #e2e6ed;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1e1e2f;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #6a6a82;
    max-width: 600px;
    margin: 12px auto 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.3s ease;
}

.blog-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.15);
}

.blog-card {
    border: 1px solid #e2e6ed;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-link:hover .blog-card {
    border-color: #ff6b6b;
}

.blog-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #f0f2f5;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card-link:hover .blog-thumb img {
    transform: scale(1.04);
}

.blog-title-text {
    padding: 16px 20px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e1e2f;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
    text-align: right;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .blog-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding: 50px 0 60px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-title {
        font-size: 1.9rem;
    }
    .blog-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 420px) {
    .blog-title {
        font-size: 1.6rem;
    }
    .blog-subtitle {
        font-size: 0.9rem;
    }
    .blog-title-text {
        font-size: 1rem;
        padding: 14px 16px 18px;
    }
}