﻿.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

    .section-header h2 {
        font-size: 30px;
        margin-bottom: 15px;
        color: var(--text-color);
    }

    .section-header .subtitle {
        font-size: 1.3rem;
        color: var(--text-color-hover);
        font-weight: bold;
    }

.latest-blogs {
    padding: 80px 5%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(49%, 1fr));
    gap: 1rem;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .blog-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--orange), var(--orange-hover));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

        .blog-card:hover::before {
            transform: scaleX(1);
        }

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-category {
    background: var(--orange);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    right: 20px;
    top: 20px;
}

.blog-date {
    color: var(--text-color-hover);
    font-size: 11px;
}

.blog-title {
    font-size: 16px;
    margin-top: 2rem;
    margin-bottom: 5px;
    color: var(--text-color);
    line-height: 1.4;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Kaç satırda kesilecek */
    -webkit-box-orient: vertical;
}

.blog-excerpt {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Kaç satırda kesilecek */
    -webkit-box-orient: vertical;
}

.read-more {
    color: var(--orange);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

    .read-more:hover {
        color: var(--orange-hover);
    }

    .read-more::after {
        content: '→';
        transition: transform 0.3s ease;
    }

    .read-more:hover::after {
        transform: translateX(3px);
    }

.blogs-cta {
    text-align: center;
    padding: 40px 0 20px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

    .blogs-cta p {
        color: var(--text-color);
        margin-bottom: 20px;
        font-size: 1.1rem;
        opacity: 0.9;
    }

.blog-cover-image {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
    height: 250px;
}

    .blog-cover-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 300ms;
    }

.blog-card:hover .blog-cover-image img {
    transform: scale(1.02);
}
/* Responsive Tasarım */
@media (max-width: 768px) {
    .latest-blogs {
        padding: 60px 5%;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card {
        padding: 25px;
    }

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blogs-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.1rem;
    }

    .blog-excerpt {
        font-size: 0.9rem;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

    .pagination button {
        background: var(--orange);
        color: var(--bg);
        border: none;
        border-radius: 5px;
        padding: 6px 10px;
        cursor: pointer;
        transition: 0.2s;
        margin-right: 10px;
    }

        .pagination button:disabled {
            background: var(--border-color);
            cursor: not-allowed;
        }

.page-numbers span {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 14px;
    transition: 0.2s;
}

    .page-numbers span.active {
        background: var(--orange);
        color: var(--bg);
        font-weight: bold;
    }

    .page-numbers span:hover {
        background: var(--orange-hover);
        color: var(--bg);
    }
