/* Reusable blog section (Slider & Grid) */
.home-blogs-section {
    padding-top: var(--home-space-regular, clamp(50px, 7vw, 70px));
    padding-bottom: var(--home-space-regular, clamp(50px, 7vw, 70px));
}

.home-blogs-section .section-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.home-blogs-section .section-header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 560px;
}

.home-blogs-section .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary, #ea580c);
    margin-bottom: 12px;
}

.home-blogs-section .section-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--primary, #ea580c);
    border-radius: 2px;
}

.home-blogs-section .section-title {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--gray-900, #0f172a);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.home-blogs-section .section-subtitle {
    margin-top: 14px;
    font-size: 1rem;
    color: var(--gray-500, #64748b);
    line-height: 1.7;
}

/* ================= SLIDER WRAPPER ================= */
.home-blogs-slider-wrap {
    position: relative;
    padding: 0 50px; /* Oklar için yanlarda boşluk bırak */
}

.home-blogs-slider-viewport {
    overflow: hidden;
    padding: 10px 5px 25px;
}

.home-blogs-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.home-blogs-slider-track > .home-blog-card {
    flex: 0 0 auto;
    min-width: 0;
    /* Genişlik JS tarafından dinamik olarak set edilir */
}

/* --- Arrows (Absolute Positioned) --- */
.home-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(234, 88, 12, 0.25);
    background: #fff;
    color: var(--navy, #0f172a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 0;
}

.home-blogs-slider-prev {
    left: -10px;
}

.home-blogs-slider-next {
    right: -10px;
}

.home-slider-arrow:hover:not(:disabled) {
    background: var(--primary, #ea580c);
    color: #fff;
    border-color: var(--primary, #ea580c);
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.home-slider-arrow:disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ================= BLOG CARD ================= */
.home-blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(234, 88, 12, 0.08);
}

.hb-image-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.5; /* Daha geniş ve dengeli görünüm */
    height: auto;
    overflow: hidden;
}

.hb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.home-blog-card:hover .hb-image {
    transform: scale(1.08);
}

.hb-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--primary, #ea580c);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hb-content {
    padding: 22px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hb-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray-500, #64748b);
    margin-bottom: 12px;
}

.hb-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hb-meta svg {
    color: var(--primary, #ea580c);
}

.hb-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hb-title a {
    color: var(--navy, #0f172a);
    text-decoration: none;
    background: linear-gradient(to right, var(--primary, #ea580c), var(--primary, #ea580c)) no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: background-size 0.3s cubic-bezier(0.2, 1, 0.3, 1), color 0.3s ease;
}

.home-blog-card:hover .hb-title a {
    background-size: 100% 2px;
    color: var(--primary, #ea580c);
}

.hb-desc {
    font-size: 0.9rem;
    color: var(--gray-600, #475569);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hb-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy, #0f172a);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hb-read-more svg {
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.hb-read-more:hover {
    color: var(--primary, #ea580c);
}

.hb-read-more:hover svg {
    transform: translateX(4px);
}

/* --- Dots --- */
.home-blogs-slider-dots {
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.home-blogs-slider-dots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #cbd5e1;
    transition: all 0.3s ease;
}

.home-blogs-slider-dots button.active {
    width: 20px;
    border-radius: 10px;
    background: var(--primary, #ea580c);
}

@media (max-width: 1100px) {
    .home-blogs-slider-wrap {
        padding: 0 40px;
    }
    /* Kart genişlikleri JS ile dinamik hesaplanır */
}

@media (max-width: 992px) {
    .home-blogs-slider-wrap {
        padding: 0;
    }
    .home-blogs-slider-prev,
    .home-blogs-slider-next,
    .home-slider-arrow {
        display: none !important;
    }
    .home-blogs-slider-dots {
        display: none !important;
    }
    .home-blogs-slider-viewport {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 10px 24px 25px !important;
        margin: 0 -24px !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-padding-left: 24px;
    }
    .home-blogs-slider-viewport::-webkit-scrollbar {
        display: none;
    }
    .home-blogs-slider-track {
        transform: none !important;
        transition: none !important;
        width: max-content !important;
        gap: 14px !important;
        padding-left: 2px !important;
        padding-right: 24px !important;
    }
    .home-blog-card {
        scroll-snap-align: start;
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px !important;
    }

    .home-blogs-section .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
}
