/**
 * KASK - Ana Sayfa "KASK Nedir?" Bölümü CSS
 * 
 * Konsept C: Split + Görsel (klasik yerleşim)
 * Hafif lacivert gradient arkaplan
 * 
 * @package Consultio_Child
 * @version 1.0.0
 */

/* ============================================
   ANA BÖLÜM - FULL WIDTH + GRADIENT ARKAPLAN
   ============================================ */
.kask-nedir {
    position: relative;
    padding: clamp(60px, 8vw, 110px) 0;
    overflow: hidden;
    /* Hafif lacivert gradient arkaplan */
    background: linear-gradient(135deg, #f4f7fb 0%, #e9eff8 50%, #f4f7fb 100%);
    /* Tam viewport genişliği */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    isolation: isolate;
}

/* Arkaplan dekoratif desen */
.kask-nedir__bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 0% 50%, rgba(27, 75, 155, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(211, 32, 39, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.kask-nedir__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ============================================
   GRID YAPISI - 2 SÜTUN (METİN + GÖRSEL)
   ============================================ */
.kask-nedir__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ============================================
   SOL: METİN BÖLGESİ
   ============================================ */

/* Eyebrow Rozeti - Pseudo-element ile temiz hizalama */
.kask-nedir__eyebrow {
    display: inline-block;
    position: relative;
    background: #fff;
    border: 1px solid #e0e6ef;
    padding: 10px 22px 10px 36px;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1B4B9B;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(15, 31, 61, 0.06);
    line-height: 1;
}

.kask-nedir__eyebrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D32027;
    box-shadow: 0 0 8px #D32027;
    animation: kaskNedirPulse 2s ease-in-out infinite;
}

@keyframes kaskNedirPulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 8px #D32027;
    }
    50% { 
        opacity: 0.5; 
        box-shadow: 0 0 12px #D32027, 0 0 4px #D32027;
    }
}

/* Ana Başlık */
.kask-nedir__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    color: #0F1F3D;
    margin: 0 0 24px;
    letter-spacing: -1.2px;
}

.kask-nedir__title-accent {
    background: linear-gradient(135deg, #1B4B9B 0%, #2E7CD6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 6px; /* Kuyruklu harflerin altının kırpılmasını engeller */
    margin-bottom: -6px; /* Eklenen boşluğun tasarımı kaydırmasını önler */
}

/* Lead Paragraph (vurgulu giriş) */
.kask-nedir__lead {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.7;
    color: #2d3748;
    margin: 0 0 20px;
}

.kask-nedir__lead strong {
    color: #1B4B9B;
    font-weight: 700;
}

/* Devam Paragrafı */
.kask-nedir__text-body {
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    line-height: 1.75;
    color: #4a5568;
    margin: 0 0 32px;
}

/* ============================================
   3 ÖZELLİK ŞERİDİ
   ============================================ */
.kask-nedir__features {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.kask-nedir__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kask-nedir__feature:hover {
    background: #fff;
    border-color: #1B4B9B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 75, 155, 0.1);
}

.kask-nedir__feature-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #1B4B9B 0%, #143872 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.kask-nedir__feature-icon svg {
    width: 18px;
    height: 18px;
}

.kask-nedir__feature-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.kask-nedir__feature-text strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0F1F3D;
    margin-bottom: 3px;
}

.kask-nedir__feature-text span {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

/* ============================================
   CTA BUTONLARI
   ============================================ */
.kask-nedir__buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.kask-nedir .kask-nedir__btn,
.kask-nedir a.kask-nedir__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 28px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    text-decoration: none !important;
    border-radius: 100px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid transparent !important;
    line-height: 1 !important;
    cursor: pointer;
}

.kask-nedir__btn svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.kask-nedir__btn:hover svg {
    transform: translateX(4px);
}

/* Primary - Hakkımızda */
.kask-nedir .kask-nedir__btn--primary,
.kask-nedir a.kask-nedir__btn--primary {
    background: linear-gradient(135deg, #1B4B9B 0%, #143872 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(27, 75, 155, 0.25);
}

.kask-nedir .kask-nedir__btn--primary:hover,
.kask-nedir a.kask-nedir__btn--primary:hover {
    background: linear-gradient(135deg, #D32027 0%, #A51A20 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211, 32, 39, 0.35);
}

/* Secondary - İlkelerimiz */
.kask-nedir .kask-nedir__btn--secondary,
.kask-nedir a.kask-nedir__btn--secondary {
    background: transparent !important;
    color: #1B4B9B !important;
    border-color: #1B4B9B !important;
}

.kask-nedir .kask-nedir__btn--secondary:hover,
.kask-nedir a.kask-nedir__btn--secondary:hover {
    background: #1B4B9B !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ============================================
   SAĞ: GÖRSEL BÖLGESİ - DIAGONAL SPLIT (2 Foto)
   ============================================ */
.kask-nedir__visual {
    position: relative;
    /* 2 foto için yeterli yükseklik - 4:5 oranlı bir alan oluşturuyoruz */
    aspect-ratio: 5 / 6;
    min-height: 480px;
    isolation: isolate;
}

/* Foto kartlarının ortak stilleri */
.kask-nedir__photo {
    position: absolute;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 31, 61, 0.20);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
}

.kask-nedir__photo img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important; /* Beyaz boşluğu kapatan altın vuruş */
    max-height: none !important; /* Temanın yükseklik kısıtlamasını ezer */
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important; 
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    max-width: none !important;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.kask-nedir__photo:hover img {
    transform: scale(1.06);
}

.kask-nedir__photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(15, 31, 61, 0.28);
    z-index: 5;
}

/* Foto üzerinde renk overlay'i - sinematik etki */
.kask-nedir__photo-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

/* ÜST FOTO - Sol üstte, daha büyük */
.kask-nedir__photo--top {
    top: 0;
    left: 0;
    width: 78%;
    height: 56%;
    z-index: 3;
    /* Diagonal kesim - sağ alt köşe eğimli */
    transform: rotate(-2deg);
}

.kask-nedir__photo--top .kask-nedir__photo-overlay {
    background: 
        linear-gradient(135deg, transparent 0%, transparent 60%, rgba(15, 31, 61, 0.3) 100%),
        linear-gradient(45deg, rgba(27, 75, 155, 0.12) 0%, transparent 50%);
}

/* ALT FOTO - Sağ altta, ters yönde, sağa kaymış */
.kask-nedir__photo--bottom {
    bottom: 0;
    right: 0;
    width: 72%;
    height: 52%;
    z-index: 4;
    /* Diagonal kesim - ters açıyla */
    transform: rotate(2.5deg);
}

.kask-nedir__photo--bottom .kask-nedir__photo-overlay {
    background: 
        linear-gradient(225deg, transparent 0%, transparent 60%, rgba(15, 31, 61, 0.3) 100%),
        linear-gradient(135deg, rgba(211, 32, 39, 0.12) 0%, transparent 50%);
}

/* Hover'da rotasyon nötrleşir - daha düz görünür */
.kask-nedir__photo--top:hover {
    transform: rotate(0deg) translateY(-4px);
}

.kask-nedir__photo--bottom:hover {
    transform: rotate(0deg) translateY(-4px);
}

/* Dekoratif arkaplan kareleri */
.kask-nedir__deco-1 {
    position: absolute;
    top: -40px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, rgba(27, 75, 155, 0.1) 0%, rgba(27, 75, 155, 0.02) 100%);
    border-radius: 28px;
    z-index: 1;
    transform: rotate(18deg);
}

.kask-nedir__deco-2 {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, rgba(211, 32, 39, 0.1) 0%, rgba(211, 32, 39, 0.02) 100%);
    border-radius: 24px;
    z-index: 1;
    transform: rotate(-15deg);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .kask-nedir__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .kask-nedir__visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
        aspect-ratio: 5 / 5;
        min-height: auto !important; /* Taşmayı engellemek için min-height sıfırlandı */
    }

    .kask-nedir__photo--top {
        width: 75%;
        height: 54%;
    }

    .kask-nedir__photo--bottom {
        width: 70%;
        height: 50%;
    }
}

/* Mobil */
@media (max-width: 600px) {
    .kask-nedir {
        padding: 40px 0 90px !important; /* Alt boşluğu artırdık, resmin ucu kesilmeyecek */
        width: 100%;
        margin-left: 0;
    }

    .kask-nedir__container {
        overflow: visible !important; /* İç alandaki gereksiz kaydırma çubuğunu (scrollbar) tamamen yok eder */
    }

    .kask-nedir__features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kask-nedir__feature {
        padding: 12px 14px;
    }

    .kask-nedir__buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .kask-nedir__btn {
        width: 100% !important;
        max-width: 280px;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .kask-nedir__visual {
        aspect-ratio: 1 / 1;
        min-height: auto !important;
        width: 100%;
        max-width: 350px;
        margin: 20px auto 0 !important; /* Butonlarla resim arasındaki mesafeyi azalttık */
    }

    .kask-nedir__photo--top {
        width: 80%;
        height: 54%;
        transform: rotate(-1.5deg);
    }

    .kask-nedir__photo--bottom {
        width: 75%;
        height: 50%;
        transform: rotate(2deg);
    }

    .kask-nedir__deco-1,
    .kask-nedir__deco-2 {
        display: none;
    }
}