/* Blog Section Styles */
.blog-section {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.blog-section h2 {
    text-align: center;
    color: lightyellow;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.blog-slider-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: var(--secondary-color);
}

.blog-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.blog-card {
    min-width: calc((100% - 40px) / 3);
    flex: 0 0 calc((100% - 40px) / 3);
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
    background: lightyellow;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Removing the hover scale effect */
.blog-card:hover .blog-image img {
    transform: none;
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    transition: none;
}

.blog-content {
    padding: 1.5rem;
    position: relative;
    min-height: 300px;
}

.blog-content h3 {
    margin-top: 15px;
    color: black;
    font-size: 1.2rem;
}

.blog-content p {
    color: black;
    font-size: 15px;
    margin: 15px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.read-more {
    position: absolute;
    bottom: 10px;
    left: 25px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 5px 15px;
    border: 1px solid black;
    border-radius: 20px;
}

.read-more:hover {
    color: white;
    background-color: black;
}

.blog-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: lightgray;
    color: black;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.blog-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    background: gray;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.prev-blog {
    left: 10px;
}

.next-blog {
    right: 10px;
}

/* Tablet için responsive tasarım */
@media screen and (max-width: 992px) {
    .blog-section h2 {
        font-size: 2rem;
    }

    .blog-card {
        min-width: calc((100% - 20px) / 2);
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .blog-content {
        min-height: 300px;
        padding: 1rem;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content p {
        -webkit-line-clamp: 6;
        font-size: 14px;
        line-height: 1.5;
        margin: 10px 0;
    }
}

/* Büyük mobil cihazlar için responsive tasarım */
@media screen and (max-width: 768px) {
    .blog-section {
        padding: 2rem 0;
    }

    .blog-card {
        min-width: 100%;
        flex: 0 0 100%;
    }

    .blog-content {
        min-height: auto;
        padding: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .blog-content p {
        -webkit-line-clamp: none;
        overflow: visible;
        font-size: 14px;
        line-height: 1.6;
        margin: 15px 0;
        display: block;
    }

    .read-more {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 15px;
        display: inline-block;
    }

    .blog-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .prev-blog {
        left: 5px;
    }

    .next-blog {
        right: 5px;
    }

    .blog-slider-container {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .blog-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Küçük mobil cihazlar için responsive tasarım */
@media screen and (max-width: 480px) {

    .blog-content {
        padding: 1rem;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }

    .blog-content p {
        font-size: 13px;
        line-height: 1.5;
        margin: 10px 0;
    }

    .blog-image {
        height: 180px;
    }
}