/* =========================================
   GEÇMİŞİM SAYFASI STİLLERİ (BORDO KONSEPT)
   Dosya: history.css
   ========================================= */

/* --- 1. HERO BÖLÜMÜ (KAPAK) --- */
.history-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    overflow: hidden;
    margin-bottom: 50px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Resmi biraz daha kararttık, yazı okunsun */
    z-index: 1;
    filter: sepia(0.2); /* Hafif ciddi bir ton */
    transition: transform 10s ease;
}

.history-hero:hover .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Bordo'ya çalan bir siyah gradyan */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(128, 0, 32, 0.3));
    z-index: 2;
}

/* --- 2. ZAMAN ÇİZELGESİ (TIMELINE) --- */
.timeline-title {
    color: #800020; /* Bordo Başlık */
    font-family: 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

/* Başlığın altına Bordo çizgi */
.timeline-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #800020;
    margin: 15px auto 0;
    border-radius: 2px;
}

.timeline {
    position: relative;
    padding: 30px 0;
}

/* Yıl Daireleri */
.year-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

/* Hover Durumu */
.year-circle:hover {
    border-color: #800020;
    color: #800020;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(128, 0, 32, 0.15);
}

/* Aktif (Seçili) Durum */
.active-year {
    background-color: #800020; /* Bordo Zemin */
    border-color: #800020;
    color: #ffffff !important;
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(128, 0, 32, 0.4);
}

/* Masaüstünde aradaki bağlantı çizgisi */
@media (min-width: 768px) {
    .timeline::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 10%;
        right: 10%;
        height: 3px;
        background-color: #e0e0e0; /* Gri çizgi */
        z-index: 0;
        transform: translateY(-50%);
    }
}

/* --- 3. MILESTONE BOX (DETAY KUTUSU) --- */
.milestone-box {
    background-color: #ffffff;
    border-left: 8px solid #800020; /* Sol şerit Bordo */
    border-radius: 12px;
    max-width: 800px;
    padding: 50px;
    margin-top: 50px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* Modern gölge */
}

.milestone-box h3 {
    font-family: 'Segoe UI', sans-serif;
    color: #800020;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.milestone-box p {
    color: #555;
    line-height: 1.8;
    font-size: 1.15rem;
    margin: 0;
}

/* --- 4. MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .history-hero {
        height: 40vh;
    }

    .display-3 {
        font-size: 2rem;
    }

    .timeline-title {
        font-size: 2rem;
    }

    .timeline {
        gap: 20px !important;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .year-circle {
        width: 80px;
        height: 80px;
        font-size: 1rem;
        border-width: 2px;
    }

    /* Mobilde çizgiyi kaldır */
    .timeline::before {
        display: none; 
    }

    .milestone-box {
        padding: 30px;
        margin-top: 30px;
    }
}



