/* ===================================================
   HISTORY PAGE STYLES
   =================================================== */


/* ---------------------------------------------------
   HERO SECTION
--------------------------------------------------- */

.history-hero {
    position: relative;
    padding: 0 clamp(24px, 5vw, 90px);
    background: #F8F8F8;
}

.history-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: #FCE300;
    z-index: 0;
    transition: height 0.8s ease-out;
}

.history-hero.animate-bg::before {
    height: 50vh;
}

.history-hero-card {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    min-height: calc(80vh - var(--header-height));
    height: auto;
    overflow: hidden;
}

.history-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.history-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}


/* Siyah overlay filtresi */

.history-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.history-hero-content {
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    bottom: 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.history-hero-title-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-hero-title {
    font-size: 96px;
    font-weight: 200;
    color: #fff;
    text-align: center;
    letter-spacing: 4px;
    line-height: 100px;
    margin: 0;
}


/* Tab Navigation - uses shared styles from institutional.css */


/* ---------------------------------------------------
   BREADCRUMB
--------------------------------------------------- */

.history-breadcrumb {
    padding: 20px 0;
    background: #F8F8F8;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-link {
    font-size: 14px;
    font-weight: 400;
    color: #878787;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #3F3F3F;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
}

.breadcrumb-separator img {
    width: 16px;
    height: 16px;
}

.breadcrumb-current {
    font-size: 14px;
    font-weight: 400;
    color: #000;
}


/* ---------------------------------------------------
   HEADLINE SECTION
--------------------------------------------------- */

.history-headline {
    padding: 80px 0;
    background: #F8F8F8;
    position: relative;
    overflow: hidden;
}

.history-headline .container {
    position: relative;
    z-index: 1;
}

.history-headline::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 600px;
    background: linear-gradient(225deg, #FCE300 0%, #FFF 100%);
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    z-index: 0;
}

.history-headline-text {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 300;
    color: #3F3F3F;
    line-height: 1.3;
    max-width: 1000px;
}

.history-word {
    display: inline;
    opacity: 0.1;
    transform: translateY(6px);
    will-change: opacity, transform;
}

@media (max-width: 1280px) {
    .history-headline-text {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .history-headline-text {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .history-headline-text {
        font-size: 30px;
    }
}




/* ---------------------------------------------------
   TIMELINE SECTION
--------------------------------------------------- */

.history-timeline-container {
    position: relative;
}

.history-timeline {
    background: #000;
    display: flex;
    align-items: center;
}

.timeline-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}


/* Sol taraf */

.timeline-left {
    width: 45%;
    flex-shrink: 0;
    padding: 60px 60px 60px 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.timeline-header {
    position: relative;
    padding-top: 20px;
}

.timeline-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 3px;
    background: #FCE300;
}

.timeline-label {
    display: block;
    font-size: 18px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 32px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 1px;
}

.timeline-year-display {
    flex: 1;
    display: flex;
    align-items: center;
}

.timeline-year-big {
    font-family: Arial, sans-serif;
    font-size: 270px;
    font-weight: 200;
    color: transparent;
    line-height: 1;
    letter-spacing: -10px;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
}


/* Sağ taraf - Timeline Slider */

.timeline-right {
    flex: 1;
    position: relative;
    padding: 30px 60px 30px 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.timeline-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #FCE300;
    transition: height 0.4s ease;
}

.timeline-list {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    padding-left: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 45px;
}


/* Dot - çizginin üzerinde */

.timeline-item .timeline-dot {
    position: absolute;
    left: 41px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFFFFF;
    transition: all 0.3s ease;
    z-index: 10;
}


/* Geçmiş yıllar (passed) - sarı highlight */

.timeline-item.passed .timeline-dot {
    background: #FCE300;
}

.timeline-item.passed .timeline-item-year {
    color: #FCE300;
}

.timeline-item.passed .timeline-item-text {
    color: #FCE300;
}


/* Aktif yıl */

.timeline-item.active .timeline-dot {
    background: #FCE300;
    box-shadow: 0 0 0 8px rgba(252, 227, 0, 0.25);
    width: 14px;
    height: 14px;
}

.timeline-item.active .timeline-item-year {
    color: #FCE300;
}

.timeline-item.active .timeline-item-text {
    color: #FCE300;
}


/* Gelecek yıllar - soluk dot ve text */

.timeline-item:not(.passed):not(.active) .timeline-dot {
    background: rgba(255, 255, 255, 1);
}

.timeline-item:not(.passed):not(.active) .timeline-item-year {
    color: rgba(255, 255, 255, 0.4);
}

.timeline-item:not(.passed):not(.active) .timeline-item-text {
    color: rgba(255, 255, 255, 0.4);
}

.timeline-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.timeline-item-year {
    font-size: 18px;
    font-weight: 500;
    min-width: 60px;
    transition: color 0.3s ease;
}

.timeline-item-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    transition: color 0.3s ease;
}


/* ---------------------------------------------------
   CERTIFICATED SECTION
--------------------------------------------------- */

.history-certificated {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.history-certificated-label {
    font-size: 14px;
    font-weight: 400;
    color: #878787;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.history-certificated-title {
    font-size: 36px;
    font-weight: 400;
    color: #3F3F3F;
    line-height: 1.4;
    margin-bottom: 60px;
}

.history-certificated-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.cert-logo {
    opacity: 1;
}

.cert-logo img {
    height: 50px;
    width: auto;
}


/* ---------------------------------------------------
   NEWS SECTION OVERRIDES
--------------------------------------------------- */

#history-news {
    padding-top: 80px;
    background: #F8F8F8;
}


/* ---------------------------------------------------
   RESPONSIVE - HERO SECTION
--------------------------------------------------- */

@media (max-width: 1400px) {
    .history-hero {
        padding: 0 60px;
    }
}

@media (max-width: 1200px) {
    .history-hero {
        padding: 0 40px;
    }

    .history-hero-title {
        font-size: 72px;
        line-height: 80px;
    }

    /* Timeline responsive */
    .timeline-left {
        width: 40%;
        padding: 60px 40px 60px 60px;
    }

    .timeline-year-big {
        font-size: 300px;
    }
}

@media (max-width: 992px) {
    .history-hero {
        padding: 0 20px;
        background: linear-gradient(to bottom, #FCE300 400px, #F8F8F8 400px);
    }

    .history-hero-title {
        font-size: 56px;
        line-height: 64px;
    }

    .history-hero-content {
        padding: 30px;
        gap: 20px;
    }

    /* Timeline responsive */
    .history-timeline-container {
        height: auto;
    }

    .history-timeline {
        height: auto;
        min-height: auto;
        position: relative;
    }

    .timeline-wrapper {
        flex-direction: column;
        max-height: none;
    }

    .timeline-left {
        width: 100%;
        padding: 60px 40px 40px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .timeline-header {
        width: 100%;
        margin-bottom: 20px;
    }

    .timeline-year-display {
        flex: 1;
    }

    .timeline-year-big {
        font-size: 200px;
    }

    .timeline-right {
        padding: 0 40px 60px;
    }

    .timeline-swiper {
        height: 500px;
        max-height: none;
    }

    .timeline-line {
        top: 0;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .history-hero {
        padding: 0 15px;
        background: linear-gradient(to bottom, #FCE300 300px, #F8F8F8 300px);
    }

    .history-hero-card {
        height: calc(100vh - 70px);
    }

    .history-hero-title {
        font-size: 40px;
        line-height: 48px;
        letter-spacing: 2px;
    }

    .history-hero-content {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .page-history .inst-tabs {
        flex-wrap: wrap;
    }

    .page-history .inst-tab {
        padding: 12px 10px;
        font-size: 11px;
    }

    /* Timeline responsive */
    .timeline-left {
        padding: 40px 20px 30px;
    }

    .timeline-year-big {
        font-size: 150px;
        letter-spacing: -5px;
    }

    .timeline-right {
        padding: 0 20px 40px;
    }

    .timeline-swiper {
        height: 400px;
    }

    .timeline-content {
        gap: 30px;
    }

    .timeline-item-year {
        font-size: 16px;
        min-width: 50px;
    }

    .timeline-item-text {
        font-size: 14px;
    }
}