/* ===================================================
   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;
    }
}




/* ---------------------------------------------------
   NEW HORIZONTAL TIMELINE SECTION
--------------------------------------------------- */

/* Ana container — tam ekran yüksekliği */
.ht-section {
    background: #000;
    overflow: hidden;
    height: calc(100vh - var(--header-height, 80px));
    display: flex;
    flex-direction: column;
}

.ht-inner {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Sol sabit panel */
.ht-left {
    width: 260px;
    flex-shrink: 0;
    padding: 120px 40px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.ht-header {
    padding-top: 24px;
    position: relative;
}

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

.ht-title {
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

/* Nav butonları */
.ht-nav {
    display: flex;
    gap: 10px;
}

.ht-btn-prev,
.ht-btn-next {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ht-btn-prev img,
.ht-btn-next img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.ht-btn-prev:hover {
    border-color: #fff;
}

.ht-btn-next {
    background: #FCE300;
    border-color: #FCE300;
}

.ht-btn-next img {
    filter: brightness(0);
}

.ht-btn-next:hover {
    background: #fff;
}

/* Swiper */
.ht-swiper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.ht-swiper .swiper-wrapper {
    align-items: stretch;
    height: 100%;
}

/* Slide */
.swiper-slide.ht-slide {
    width: 280px;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    padding: 120px 20px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.35s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.swiper-slide.ht-slide:not(.ht-active):hover {
    background: rgba(255, 255, 255, 0.05);
}

.ht-slide.ht-active {
    background: #FCE300;
}

/* Yıl */
.ht-slide-year {
    font-size: 52px;
    font-weight: 300;
    color: #FCE300;
    line-height: 1;
    margin-bottom: 20px;
    transition: color 0.35s ease;
}

.ht-slide.ht-active .ht-slide-year {
    color: #000;
}

.ht-slide.ht-past .ht-slide-year {
    color: #FCE300;
}

/* Açıklama */
.ht-slide-text {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
    transition: color 0.35s ease;
}

.ht-slide.ht-active .ht-slide-text {
    color: #000;
    font-weight: 500;
}

.ht-slide.ht-past .ht-slide-text {
    color: rgba(255, 255, 255, 0.5);
}

/* Görsel */
.ht-slide-top {
    flex-shrink: 0;
}

.ht-slide-image {
    flex: 1;
    min-height: 0;
    margin-top: 24px;
    overflow: hidden;
    align-items: end;
    display: flex;
}

.ht-slide-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Hiç görsel yoksa tam viewport yüksekliğini kaldır */
.ht-section--no-images {
    height: auto;
    min-height: 0;
}

.ht-section--no-images .ht-inner {
    min-height: 400px;
}

.ht-section--no-images .swiper-slide.ht-slide {
    height: auto !important;
    padding-bottom: 60px;
}

/* Görsel olmayan bireysel slide'da üst içerik kalan alanı kaplasın */
.swiper-slide.ht-slide--no-image .ht-slide-top {
    flex: 1;
}

/* Alt timeline bar */
.ht-bar {
    padding: 32px 60px 40px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ht-bar-track {
    position: relative;
    height: 48px;
}

.ht-bar-line {
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.ht-bar-progress {
    position: absolute;
    top: 6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #FCE300;
    transition: width 0.4s ease;
}

.ht-bar-point {
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.ht-bar-point.ht-bar-active{
    top: 0px;
}

.ht-bar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.ht-bar-point.ht-bar-passed .ht-bar-dot,
.ht-bar-point.ht-bar-active .ht-bar-dot {
    background: #FCE300;
}

.ht-bar-point.ht-bar-active .ht-bar-dot {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 6px rgba(252, 227, 0, 0.2);
}

.ht-bar-year {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    margin-top: 12px;
    transition: color 0.3s ease;
}

.ht-bar-point.ht-bar-passed .ht-bar-year,
.ht-bar-point.ht-bar-active .ht-bar-year {
    color: #FCE300;
}

/* Responsive */
@media (max-width: 992px) {
    .ht-left {
        width: 200px;
        padding: 40px 24px 40px 32px;
    }

    .swiper-slide.ht-slide {
        width: 220px;
        padding: 40px 28px 36px;
    }

    .ht-slide-year {
        font-size: 40px;
    }

    .ht-slide-image img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .ht-section {
        height: auto;
    }

    .ht-inner {
        flex-direction: column;
        min-height: auto;
        overflow: visible;
    }

    .ht-left {
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 32px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ht-header {
        padding-top: 16px;
        flex: 1;
    }

    .ht-bar {
        padding: 24px 20px 32px;
    }

    .swiper-slide.ht-slide {
        width: 200px;
        height: auto !important;
        padding: 32px 20px;
    }

    .ht-slide-year {
        font-size: 32px;
    }

    .ht-slide-text {
        font-size: 14px;
    }

    .ht-slide-image {
        flex: none;
    }

    .ht-slide-image img {
        height: 130px;
    }
}


/* ---------------------------------------------------
   TIMELINE SECTION (eski - kaldırıldı)
--------------------------------------------------- */

.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-headline{ min-height: 500px; display: flex; align-items: center; }
    .history-headline::after{ width: 400px; height: 400px;}
    .timeline-item .timeline-dot{
        left: 21px;
    }
    .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;
    }


    /* 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;
    }
}