.blog-slider-section {
    padding: 100px 0;
    background: #050505;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 10px;
    overflow: visible; /* allow title to show if it would be clipped */
}

.slider-header h2 {
    flex: 1 1 auto; /* allow grow/shrink */
    min-width: 0;   /* critical: allow flex child to shrink instead of overflowing */
    margin: 0;
    white-space: normal; /* allow wrapping */
    color: var(--soft-white, #fff);
    font-weight: 700;
}

.slider-header .section-title .text-accent {
    color: var(--primary-red, #E60000);
}

.slider-navigation {
    display: flex;
    gap: 15px;
    position: relative;
}

/* Navigasyon Butonları Özelleştirme */
.swiper-button-next, .swiper-button-prev {
    position: static !important;
    width: 45px !important;
    height: 45px !important;
    background: #121212;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff !important;
    transition: 0.3s;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px !important;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

/* Swiper Slide Container */
.swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Blog Kart Tasarımı */
.blog-card {
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(224, 30, 47, 0.4);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: #fff;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
}

.blog-card-content p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    margin-top: auto;
}

.read-more:hover {
    gap: 12px;
}

.swiper-pagination-bullet {
    background: #444 !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-red) !important;
}

/* Ensure swiper slides stretch and cards have equal height */
.blogSwiper,
.blogSwiper .swiper-wrapper,
.blogSwiper .swiper-slide {
    height: 100%;
    display: flex;
    align-items: stretch;
}

/* Make slider blog-card a column-flex container with fixed height */
.blogSwiper .swiper-slide .blog-card {
    display: flex;
    flex-direction: column;
    height: 420px; /* sabit yükseklik — gerektiğinde değiştirin */
    overflow: hidden;
}

/* Image area fixed height so all cards align */
.blogSwiper .swiper-slide .blog-card__image {
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

/* Ensure img scales and fills area */
.blogSwiper .swiper-slide .blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content fills remaining space */
.blogSwiper .swiper-slide .blog-card__content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex: 1 1 auto;
}

/* Excerpt truncation so heights stay consistent */
.blogSwiper .swiper-slide .blog-card__excerpt {
    margin: 0;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    font-size: 0.95rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* gösterilecek satır sayısı */
    -webkit-box-orient: vertical;
}

/* Read more link pinned to bottom area */
.blogSwiper .swiper-slide .blog-card__link {
    margin-top: 16px;
    align-self: flex-start;
}

/* Responsive: reduce heights on smaller screens */
@media (max-width: 768px) {
    .blogSwiper .swiper-slide .blog-card {
        height: auto;
    }
    .blogSwiper .swiper-slide .blog-card__image {
        height: 180px;
    }
    .blogSwiper .swiper-slide .blog-card__excerpt {
        -webkit-line-clamp: 3;
    }
}

/* Remove large box-shadows and use transform for hover */
.blogSwiper .swiper-slide .blog-card {
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: transform 0.25s ease;
    will-change: transform;
}
.blogSwiper .swiper-slide .blog-card:hover {
    transform: translateY(-6px);
}

/* limit image repaint cost */
.blogSwiper .swiper-slide .blog-card__image img {
    backface-visibility: hidden;
    transform: translateZ(0);
}