/**
 * EGİAD 30. Yıl - Zaman Tüneli (Timeline) Stilleri
 */

.timeline-wrap {
    padding: 60px 0;
    position: relative;
    background-image: url('../images/pattern-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    min-height: 800px;
}

.timeline {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Orta Çizgi */
.timeline::before {
    content: '';
    background: #c5cae9;
    width: 4px;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 70px;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

/* Orta Çizgideki Mavi Nokta / Daire */
.timeline-img {
    width: 24px;
    height: 24px;
    background: #1a3c7d;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 60, 125, 0.2);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 25px;
    margin-left: -12px;
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-item:hover .timeline-img {
    transform: scale(1.25);
    background: #1670bf;
}

/* Kart İçeriği */
.timeline-content {
    position: relative;
    width: 46%;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Sol Kartlar (Tekil Elemanlar) */
.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
    top: 25px;
    right: -12px;
    border-width: 10px 0 10px 12px;
    border-color: transparent transparent transparent #ffffff;
}

/* Sağ Kartlar (Çift Elemanlar) */
.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
    top: 25px;
    left: -12px;
    border-width: 10px 12px 10px 0;
    border-color: transparent #ffffff transparent transparent;
}

/* Başlık ve Görsel Header */
.timeline-img-header {
    height: 240px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.timeline-img-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.timeline-img-header h2 {
    color: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 19px;
    padding: 20px;
    line-height: 1.35;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

/* Yarın Dergileri İçin Özel Görsel Yüksekliği */
.timeline-item.isyarin .timeline-img-header {
    height: 380px;
    background-position: center top !important;
}

/* Tarih Rozeti */
.timeline-content .date {
    background: #1a3c7d;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    position: absolute;
    top: 15px;
    right: 15px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline-item:nth-child(even) .timeline-content .date {
    right: 15px;
    left: auto;
}

/* Kartın Gövdesi (Metin ve Buton) */
.kontent {
    padding: 20px;
    background: #ffffff;
}

.kontent.isvid {
    padding-top: 15px;
}

.kontent h2.vid-title {
    font-size: 18px;
    color: #1a3c7d;
    margin-bottom: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.kontent p {
    font-size: 14px;
    color: #555555;
    margin-bottom: 18px;
    line-height: 1.6;
}

.timeline-content iframe {
    width: 100%;
    height: 240px;
    border: none;
    display: block;
}

.kontent .btn-continue {
    display: inline-block;
    background: #1a3c7d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.kontent .btn-continue:hover {
    background: #1670bf;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22, 112, 191, 0.3);
}

/* DAHA FAZLA YÜKLE (LOAD MORE) */
.load-more-wrap {
    text-align: center;
    margin: 50px 0 20px;
    position: relative;
    z-index: 10;
}

.btn-load-more {
    background: #1a3c7d;
    color: #ffffff;
    border: none;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(26, 60, 125, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    background: #1670bf;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 112, 191, 0.35);
}

.btn-load-more.loading {
    opacity: 0.8;
    pointer-events: none;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-load-more.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================================
   RESPONSIVE TIMELINE (MOBİL & TABLET)
   ======================================================== */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline .timeline-img {
        left: 30px;
        margin-left: -12px;
    }

    .timeline-content {
        width: calc(100% - 60px) !important;
        float: right !important;
        margin-left: 60px;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -12px;
        right: auto;
        border-width: 10px 12px 10px 0;
        border-color: transparent #ffffff transparent transparent;
    }

    .timeline-img-header {
        height: 200px;
    }

    .timeline-img-header h2 {
        font-size: 16px;
    }
}
