@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --brand-color: #e61b23;
    --text-dark: #0f0f12;
    --text-muted: #666;
}

.blog-hero {
    background-image: url('~/img/Loading.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    text-align: center;
    padding: 150px 0 120px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .blog-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(43, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
        z-index: 1;
    }

    .blog-hero .container {
        position: relative;
        z-index: 2;
    }

    .blog-hero h1 {
        font-family: 'Poppins', sans-serif;
        font-weight: 300;
        font-size: 45px;
        line-height: 1;
        color: #fff;
        margin: 0;
    }

.article-section {
    padding: 60px 0;
    background: #fff;
}

.article-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.article-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .article-meta i {
        color: #999;
    }

.article-image {
    width: 100%;
    max-width: 1520px;
    height: 421px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 30px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.46;
}

.article-content p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 20px;
    line-height: 32px;
    color: #000000;
    margin-bottom: 0;
    text-align: left;
}

.related-posts-section {
    padding: 60px 0 100px;
    background: #fff;
    position: relative;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.related-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 30px;
    text-align: left;
    color: #000;
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    padding: 0;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.posts {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 20px;
}

    .posts::-webkit-scrollbar {
        display: none;
    }

.post-card {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: none;
}

    .post-card .thumb {
        width: 100%;
        height: 200px;
        overflow: hidden;
        margin-bottom: 15px;
        border-radius: 20px;
    }

        .post-card .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 20px;
            transition: transform 0.4s ease;
        }

    .post-card:hover .thumb img {
        transform: scale(1.06);
    }

    .post-card .tarih {
        font-family: 'Poppins', sans-serif;
        font-size: 12px;
        color: #999;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .post-card .post-title {
        margin: 0 0 10px;
    }

        .post-card .post-title a {
            font-family: 'Inter', sans-serif;
            font-weight: 300;
            font-size: 20px;
            color: #000;
            text-decoration: none;
            line-height: 1.3;
        }

    .post-card .ozet {
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        color: #666;
        line-height: 1.6;
        margin-bottom: 15px;
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .post-card .more {
        font-family: 'Poppins', sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: #666;
        text-align: right;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
    }

        .post-card .more i {
            color: #FF001F;
            font-size: 10px;
        }

        .post-card .more:hover {
            color: var(--brand-color);
        }

.slider-container .carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

    .slider-container .carousel-arrow svg {
        width: 24px;
        height: 24px;
        stroke: #999;
        stroke-width: 1.5;
    }

.slider-container .carousel-left {
    left: -50px;
}

.slider-container .carousel-right {
    right: -50px;
}

.pagination-wrapper {
    display: none;
}

.page-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #E6E6E6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #383838;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

    .page-btn.active {
        background-color: #FF001F;
        color: #fff;
        border-color: #FF001F;
    }


@media (max-width: 991px) {
    .blog-hero h1 {
        font-size: 36px;
    }

    .article-content h2 {
        font-size: 26px;
    }

    .article-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .article-image {
        height: auto;
        max-height: 300px;
    }

    .slider-container {
        padding: 0;
    }

        .slider-container .carousel-arrow {
            display: none;
        }

    .posts {
        display: block;
        max-width: 500px;
        margin: 0 auto;
        padding: 0 20px 20px;
    }

    .post-card {
        display: none;
        width: 100%;
        margin-bottom: 0;
        flex-direction: column;
    }

        .post-card.active-card {
            display: flex;
            animation: fadeIn 0.5s ease;
        }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .pagination-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
        padding-bottom: 40px;
    }
}
