/* ==============================================================================
   BEFORE & AFTER COMPARISON SLIDER (DK ENERJİ)
   ============================================================================== */
.ba-section {
    padding: 70px 20px;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ba-container {
    width: 90%;
    max-width: 1380px;
    background: #172635; /* Deep corporate navy background */
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    box-shadow: 0 20px 50px rgba(23, 38, 53, 0.18);
    position: relative;
}

.ba-info-side {
    padding: 55px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    z-index: 2;
}

.ba-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.15em;
    font-weight: 700;
    text-transform: uppercase;
    color: #a8cf35;
    margin-bottom: 20px;
}

.ba-tag::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 14px;
    background: #a8cf35;
    border-radius: 2px;
}

.ba-title {
    font-size: clamp(26px, 2.4vw, 42px);
    font-weight: 800;
    line-height: 1.22;
    color: #ffffff;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.ba-desc {
    font-family: var(--text);
    font-size: clamp(14px, 0.85vw, 16px);
    line-height: 1.7;
    color: #b0c0ce;
    margin-bottom: 40px;
    max-width: 520px;
}

.ba-stats-grid {
    display: flex;
    gap: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.ba-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ba-stat-bubble {
    min-width: 68px;
    height: 68px;
    padding: 0 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.ba-stat-text {
    font-size: 13px;
    font-weight: 600;
    color: #cfdbe6;
    line-height: 1.35;
    max-width: 140px;
}

/* Slider Görsel Alanı */
.ba-visual-side {
    position: relative;
    min-height: 480px;
    background: #0d1720;
    overflow: hidden;
}

.ba-slider-box {
    position: relative;
    width: 100%;
    height: 100%;
    user-select: none;
    touch-action: pan-y;
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
}

.ba-before-wrap .ba-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.ba-badge {
    position: absolute;
    bottom: 24px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 5;
    backdrop-filter: blur(8px);
    text-transform: uppercase;
}

.ba-badge-after {
    right: 24px;
    background: rgba(15, 23, 42, 0.75);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.ba-badge-before {
    left: 24px;
    background: rgba(15, 23, 42, 0.75);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

/* Tutamaç / Divider Çizgisi */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #ffffff;
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-handle-button:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.ba-handle-button svg {
    width: 22px;
    height: 22px;
    color: #172635;
}

/* ==============================================================================
   BLOG 5-GRID SHOWCASE (DK ENERJİ)
   ============================================================================== */
.blog-home-section {
    padding: 80px 20px 90px;
    background-color: #f8faf7;
}

.blog-home-header {
    width: 90%;
    max-width: 1380px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.blog-home-tag {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #83a622;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.blog-home-heading {
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 800;
    color: #1e2e3d;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.blog-home-intro {
    font-family: var(--text);
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    max-width: 380px;
}

.blog-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    color: #1e2e3d;
    transition: all 0.25s ease;
    white-space: nowrap;
    margin-top: 14px;
}

.blog-view-all-btn:hover {
    background: #83a622;
    border-color: #83a622;
    color: #ffffff;
    transform: translateY(-1px);
}

/* 5-GRID LAYOUT */
.blog-grid-5 {
    width: 90%;
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

/* 1. ve 2. Büyük Kartlar */
.blog-large-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 6px 24px rgba(23, 38, 53, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-large-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(23, 38, 53, 0.1);
}

.blog-card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-large-card:hover .blog-card-media img {
    transform: scale(1.05);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #83a622;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    color: #1e2e3d;
    margin: 10px 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
}

.blog-card-more {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s;
}

.blog-large-card:hover .blog-card-more {
    color: #83a622;
}

.blog-arrow-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e2e3d;
    transition: all 0.25s ease;
}

.blog-large-card:hover .blog-arrow-icon {
    background: #83a622;
    border-color: #83a622;
    color: #ffffff;
    transform: rotate(45deg);
}

/* 3. Kolon: 3 Küçük Yatay Kart */
.blog-stacked-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

.blog-small-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 4px 18px rgba(23, 38, 53, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: grid;
    grid-template-columns: 105px 1fr auto;
    gap: 16px;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-small-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(23, 38, 53, 0.08);
}

.blog-small-thumb {
    width: 105px;
    height: 78px;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.blog-small-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-small-card:hover .blog-small-thumb img {
    transform: scale(1.08);
}

.blog-small-content {
    min-width: 0;
}

.blog-small-date {
    font-size: 11px;
    font-weight: 700;
    color: #83a622;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 4px;
}

.blog-small-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #1e2e3d;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-small-card:hover .blog-arrow-icon {
    background: #83a622;
    border-color: #83a622;
    color: #ffffff;
    transform: rotate(45deg);
}

/* Responsive Düzenlemeler */
@media (max-width: 1100px) {
    .ba-container {
        grid-template-columns: 1fr;
    }
    .ba-visual-side {
        min-height: 400px;
    }
    .blog-grid-5 {
        grid-template-columns: 1fr 1fr;
    }
    .blog-stacked-column {
        grid-column: span 2;
        flex-direction: row;
        gap: 16px;
    }
    .blog-small-card {
        flex: 1;
        grid-template-columns: 85px 1fr auto;
    }
}

@media (max-width: 768px) {
    .ba-info-side {
        padding: 35px 25px;
    }
    .ba-visual-side {
        min-height: 320px;
    }
    .blog-home-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .blog-grid-5 {
        grid-template-columns: 1fr;
    }
    .blog-stacked-column {
        grid-column: span 1;
        flex-direction: column;
    }
    .blog-small-card {
        grid-template-columns: 95px 1fr auto;
    }
}
