/**
 * Public stil dosyası - Borusan benzeri stil (Kırmızı tonlar ile güncellendi)
 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

 body.kilometre-taslari-active {
    /* overflow: hidden ve height: 100vh kaldırıldı, footer görünecek */
}

.kilometre-taslari-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    overflow: visible;
}

.kilometre-taslari-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.kilometre-taslari-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Yıl listesi ve içerik için stil */
.kilometre-taslari-timeline {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    z-index: 2;
    padding: 50px 0;
}

.kilometre-taslari-years-container {
    position: absolute;
    left: 50%;
    top: 50px;
    width: 200px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transform: translateX(-50%);
}

.kilometre-taslari-years-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    width: 400px;
    height: 151%;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(0px);
    transform: translateX(-50%);
    z-index: 0;
    clip-path: polygon(15% 0%, 85% 0%, 75% 100%, 25% 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kilometre-taslari-years-wrapper {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 5;
}

.kilometre-taslari-year-item {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    cursor: grab;
    text-align: center;
    width: 100%;
    padding: 10px 15px;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    box-sizing: border-box;
    margin: 0;
    text-decoration: none;
    list-style-type: none;
    outline: none;
    transition: all 0.3s;
    transform: scale(1);
}

.kilometre-taslari-year-item.active {
    font-size: 72px;
    color: #e60000;
    opacity: 1;
    top: 0;
    font-weight: bold;
    transform: scale(1);
}

.kilometre-taslari-year-item.next-1 {
    font-size: 50px;
    opacity: 0.8;
    top: 150px;
    font-weight: 700;
    color: rgba(230, 0, 0, 0.8);
}

.kilometre-taslari-year-item.next-2 {
    font-size: 42px;
    opacity: 0.6;
    top: 270px;
    font-weight: 600;
    color: rgba(230, 0, 0, 0.6);
}

.kilometre-taslari-year-item.next-3 {
    font-size: 32px;
    opacity: 0.4;
    top: 360px;
    font-weight: 500;
    color: rgba(230, 0, 0, 0.4);
}

.kilometre-taslari-year-item.hidden {
    opacity: 0;
    visibility: hidden;
}

.kilometre-taslari-year-item.prev-1 {
    font-size: 50px;
    opacity: 0.8;
    top: -150px;
    font-weight: 700;
    color: rgba(230, 0, 0, 0.8);
}

.kilometre-taslari-year-item.prev-2 {
    font-size: 42px;
    opacity: 0.6;
    top: -270px;
    font-weight: 600;
    color: rgba(230, 0, 0, 0.6);
}

.kilometre-taslari-year-item.prev-3 {
    font-size: 32px;
    opacity: 0.4;
    top: -360px;
    font-weight: 500;
    color: rgba(230, 0, 0, 0.4);
}

/* İçerik bölümü için stil */
.kilometre-taslari-content-container {
    position: absolute;
    left: calc(50% + 100px);
    top: 50px;
    width: calc(50% - 150px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0px 20px;
}

.kilometre-taslari-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.kilometre-taslari-content {
    position: absolute;
    top: 46px;
    left: 40px;
    width: 100%;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.6s ease;
    background: rgb(255 0 0 / 50%);
    margin-left: -20px;
    padding-left: 10px;
}

.kilometre-taslari-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.kilometre-taslari-content-inner {
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    font-weight: 400;
}

.kilometre-taslari-content-inner h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid #e60000;
    padding-bottom: 10px;
    display: inline-block;
}

.kilometre-taslari-instructions {
    display: none;
}

.kilometre-taslari-navigation {
    position: absolute;
    top: 350px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 2;
    gap: 10px;
}
button.kilometre-taslari-nav-button.prev-button:first-child {
    margin-right: 40px;
}
.kilometre-taslari-nav-button {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    outline: none;
}

.kilometre-taslari-nav-button:focus {
    outline: none;
    box-shadow: none;
}

.kilometre-taslari-nav-button:active {
    outline: none;
    box-shadow: none;
}

.kilometre-taslari-nav-button:hover {
    color: rgba(0, 0, 0, 1);
}

.kilometre-taslari-nav-button::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 20px;
    height: 1px;
    background: #e60000;
    transition: all 0.4s ease;
}

.kilometre-taslari-nav-button.prev-button::before {
    left: 17px;
}

.kilometre-taslari-nav-button.next-button::before {
    right: 17px;
    left: auto;
}

.kilometre-taslari-nav-button.prev-button:hover::before {
    width: 100%;
}

.kilometre-taslari-nav-button.next-button:hover::before {
    width: 100%;
}

/* .kilometre-taslari-content-wrapper::before {
    content: '';
    position: absolute;
    left: 20px;
    width: 1px;
    height: 100%;
    background: #e60000;
    z-index: 0;
    bottom: 0;
}    */
/* Mobil cihazlar için stil */
@media (max-width: 768px) {
    .kilometre-taslari-timeline {
        flex-direction: column;
        min-height: auto;
        padding: 20px 0;
    }
    
    .kilometre-taslari-years-container {
        width: 100%;
        height: auto;
        justify-content: center;
        padding: 0;
        position: relative; /* Çizgi için referans */
        top: 80px;
        left: 0;
        transform: none;
    }
    
    .kilometre-taslari-years-container::before {
        display: none; /* Masaüstü buzlanma efektini mobilde gizle */
    }
    
    .kilometre-taslari-years-wrapper {
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        display: flex;
        white-space: nowrap;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .kilometre-taslari-years-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .kilometre-taslari-year-item {
        position: relative;
        width: 80px;
        flex: 0 0 80px;
        margin: 0 10px;
        font-size: 24px;
        opacity: 0.5;
        right: 0;
        top: 0 !important;
        transition: opacity 0.3s ease, font-size 0.3s ease, color 0.3s ease;
        padding-bottom: 20px;
        display: inline-block;
    }
    
    .kilometre-taslari-year-item.active {
        font-size: 32px;
        opacity: 1;
        color: #e60000;
    }
    
    .kilometre-taslari-year-item::after {
        content: none;
    }
    
    .kilometre-taslari-year-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 2px;
        height: 20px;
        background: #e60000;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    /* Yatay çizgi (years-container seviyesinde) */
    .kilometre-taslari-years-container::after {
        content: '';
        position: absolute;
        left: 20px;
        width: calc(100% - 70px);
        height: 1px;
        background: #e60000;
        z-index: 0;
        bottom: 0;
    }
    .kilometre-taslari-content-container {
        width: 100%;
        height: auto;
        padding: 20px;
        position: relative;
        top: 120px;
        left: 0;
    }
    
    .kilometre-taslari-content-wrapper {
        max-width: 100%;
        position: relative;
    }
    
    .kilometre-taslari-content {
        position: absolute;
        top: 0;
        left: 0;
        width: calc(100% - 20px);
        transform: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        margin-top: 0;
        background: none;
        margin-left: 0;
        padding-left: 0;
    }
    
    .kilometre-taslari-content.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* İçerik kısmının sol tarafındaki dikey çizgi */
    .kilometre-taslari-content.active::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 0px;
        width: 1px;
        height: calc(100% + 20px);
        background: #e60000;
        z-index: 1;
    }
    
    .kilometre-taslari-content-inner {
        font-size: 16px;
        line-height: 1.6;
        padding-left: 10px;
        font-family: 'Montserrat', sans-serif;
        color: #333;
        background: rgba(255, 255, 255, 0.9);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .kilometre-taslari-navigation {
        display: none;
    }
    
    .kilometre-taslari-instructions {
        display: none;
    }
}