/* AOS başlamadan önce taşmayı önle */
.js-timeline_item:not(.aos-animate) {
    visibility: hidden;
    transform: translateX(0) !important; /* AOS'un ilk pozisyonunu iptal et */
    opacity: 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* AOS animasyonu başladığında görünür yap */
.js-timeline_item.aos-animate {
    visibility: visible;
    opacity: 1;
    transform: none !important;
}
@font-face {
    font-family: 'ESL Legend';
    src: url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Light.eot);
    src: url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Light.eot#iefix) format("embedded-opentype"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Light.woff2) format("woff2"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Light.woff) format("woff"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Light.ttf) format("truetype"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Light.svg#eicon) format("svg");
    font-style: normal;
    font-weight: 300;
}
@font-face {
    font-family: 'ESL Legend';
    src: url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Regular.eot);
    src: url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Regular.eot#iefix) format("embedded-opentype"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Regular.woff2) format("woff2"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Regular.woff) format("woff"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Regular.ttf) format("truetype"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Regular.svg#eicon) format("svg");
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: 'ESL Legend';
    src: url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Bold.eot);
    src: url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Bold.eot#iefix) format("embedded-opentype"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Bold.woff2) format("woff2"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Bold.woff) format("woff"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Bold.ttf) format("truetype"),
    url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/fonts/legend/ESLLegend-Bold.svg#eicon) format("svg");
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: 'Gibson';
    src: url(https://adayogrenci.sivas.edu.tr/app/themes/edu/fonts/Gibson.ttf);
    src: url(https://adayogrenci.sivas.edu.tr/app/themes/edu/fonts/Gibson.ttf#iefix) format("embedded-opentype"),
    url(https://adayogrenci.sivas.edu.tr/app/themes/edu/fonts/Gibson.ttf) format("woff2"),
    url(https://adayogrenci.sivas.edu.tr/app/themes/edu/fonts/Gibson.ttf) format("woff"),
    url(https://adayogrenci.sivas.edu.tr/app/themes/edu/fonts/Gibson.ttf) format("truetype");
    font-style: normal;
}

img {
    max-width: 100%;
}

.ag-format-container {
    width: 1160px;
    margin: 0 auto;

    position: relative;
}

.ag-timeline-block {
    /*padding: 300px 0;*/
}
.ag-timeline_title-box {
    padding: 0 0 30px;

    text-align: center;
}
.ag-timeline_tagline {
    font-size: 40px;
    color: #FFF;
}
.ag-timeline_title {
    font-family: 'Gibson', sans-serif;
    background-image: url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/images/bg.jpg);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    text-fill-color: transparent;
    color: transparent;

    font-size: 80px;
}

.ag-timeline_item {
    margin: 0 0 50px;
    position: relative;
}
.ag-timeline_item:nth-child(2n) {
    text-align: right;
}

.ag-timeline {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;

    position: relative;
}
.ag-timeline_line {
    width: 2px;
    background-color: #CCCCCC;
    position: absolute;
    top: 2px;
    left: 50%;
    bottom: 0;
    overflow: hidden;

    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.ag-timeline_line-progress {
    width: 100%;
    height: 20%;
    background-color: #f00;
}

.ag-timeline-card_box {
    padding: 0 0 20px 50%;
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
    padding: 0 50% 20px 0;
}
.ag-timeline-card_point-box {
    display: inline-block;
    margin: 0 20px -3px -14px;
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
    margin: 0 -16px -4px 14px;
}
.ag-timeline-card_point {
    height: 30px;
    line-height: 30px;
    width: 30px;
    border: 3px solid #f00;
    background-color: #f0f1f3;
    text-align: center;
    font-family: 'Gibson', sans-serif;
    font-size: 20px;
    color: #FFF;

    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}
.js-ag-active .ag-timeline-card_point {
    color: #1d1d1b;
    background-color: #f00;
}
.ag-timeline-card_meta-box {
    display: inline-block;
}
.ag-timeline-card_meta {
    margin: 10px 0 22px;
    font-family: 'Museo', sans-serif;
    font-size: 24px;
    color: #f00;
}
.ag-timeline-card_meta span{


}
.ag-timeline-card_item {
    display: inline-block;
    width: 45%;
    margin: -70px 0 0;
    background-color: #f0f1f3;
    opacity: 0;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;

    -webkit-box-shadow: 0 0 0 0 rgba(0,0,0,.5);
    -moz-box-shadow: 0 0 0 0 rgba(0,0,0,.5);
    -o-box-shadow: 0 0 0 0 rgba(0,0,0,.5);
    box-shadow: 0 0 0 0 rgba(0,0,0,.5);

    -webkit-transition: -webkit-transform .5s, opacity .5s;
    -moz-transition: -moz-transform .5s, opacity .5s;
    -o-transition: -o-transform .5s, opacity .5s;
    transition: transform .5s, opacity .5s;

    position: relative;
}
.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item {
    -webkit-transform: translateX(-200%);
    -moz-transform: translateX(-200%);
    -ms-transform: translateX(-200%);
    -o-transform: translateX(-200%);
    transform: translateX(-200%);
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
    -webkit-transform: translateX(200%);
    -moz-transform: translateX(200%);
    -ms-transform: translateX(200%);
    -o-transform: translateX(200%);
    transform: translateX(200%);
}
.js-ag-active.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item,
.js-ag-active.ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
    opacity: 1;

    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
}
.ag-timeline-card_arrow {
    height: 18px;
    width: 18px;
    margin-top: 4px;
    background-color: #282828;

    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;

    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}
.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_arrow {
    margin-left: calc(-18px / 2);
    margin-right: calc(-18px / 2);
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_arrow {
    margin-left: -10px;

    right: auto;
    left: 0;
}
.ag-timeline-card_img {
    width: 100%;
}
.ag-timeline-card_info {
    padding: 20px 30px;
}
.ag-timeline-card_title {
    display: none;
    margin: 10px 0 0;
    font-family: 'Gibson', sans-serif;
    font-weight: bold;
    font-size: 28px;
    color: #f00;
}
.ag-timeline-card_desc {
    line-height: 1.45;
    text-align: left;
    font-size: 18px;
    font-family: 'Gibson', sans-serif;
    color: #000;
}


@media only screen and (max-width: 979px) {
    .ag-timeline_line {
        left: 30px;
    }

    .ag-timeline_item:nth-child(2n) {
        text-align: left;
    }

    .ag-timeline-card_box,
    .ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
        padding: 0 0 20px;
    }
    .ag-timeline-card_meta-box {
        display: none;
    }
    .ag-timeline-card_point-box,
    .ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
        margin: 0 0 0 8px;
    }
    .ag-timeline-card_point {
        height: 40px;
        line-height: 40px;
        width: 40px;
    }
    .ag-timeline-card_item {
        width: auto;
        margin: -65px 0 0 75px
    }
    .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item,
    .ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
        -webkit-transform: translateX(200%);
        -moz-transform: translateX(200%);
        -ms-transform: translateX(200%);
        -o-transform: translateX(200%);
        transform: translateX(200%);
    }
    .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_arrow {
        right: auto;
        left: 0;
    }
    .ag-timeline-card_title {
        display: block;
        font-family: 'Gibson', sans-serif;
    }
    .ag-timeline-card_arrow {
        margin-top: 12px;
    }
}

@media only screen and (max-width: 767px) {
    .ag-format-container {
        width: 96%;
    }

    .ag-timeline-card_img {
        height: auto;
        width: auto;
    }
}

@media only screen and (max-width: 639px) {
    .ag-timeline_title {
        font-size: 60px;
    }

    .ag-timeline-card_info {
        padding: 10px 15px;
    }
    .ag-timeline-card_desc {
        font-size: 14px;
    }
}

@media only screen and (max-width: 479px) {

}

@media (min-width: 768px) and (max-width: 979px) {
    .ag-format-container {
        width: 750px;
    }

}

@media (min-width: 980px) and (max-width: 1161px) {
    .ag-format-container {
        width: 960px;
    }

}

/* ===== FIXED VIDEO WIDGET ===== */
.widget-fixed-video {
    position: fixed;
    bottom: 125px;
    right: 35px;
    width: 320px;
    max-width: calc(100% - 40px);
    z-index: 99999;

    background: transparent;
    border-radius: 12px;
    overflow: hidden;

    transition: all .35s ease;
}

/* Video alanı sadece widget içinde */
.widget-fixed-video .video {
    width: 100%;
    position: relative;
}

.widget-fixed-video img {
    width: 100%;
    height: auto;
    display: block;
}

/* Play butonu */
.widget-fixed-video .video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 65px;
    height: 65px;
    border-radius: 50%;

    background: rgba(255,0,0,0.85);
    color: #fff;

    text-align: center;
    line-height: 65px;
    font-size: 22px;

    transition: .3s;
}

.widget-fixed-video .video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff0000;
}

/* Kapat/Aç butonları */
.widget-fixed-video .liveBtn {
    position: absolute;
    top: 8px;
    right: 8px;

    background: rgba(0,0,0,0.75);
    color: #fff;

    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;

    cursor: pointer;
    user-select: none;

    z-index: 10;
    transition: .25s;
}

.widget-fixed-video.closed {
    width: 70px;
    height: 70px;
    border-radius: 50%;

    background: rgba(0,0,0,0.75);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.widget-fixed-video.closed .video {
    display: none;
}

.widget-fixed-video.closed .showLive {
    position: absolute;
    inset: 0;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    color: #fff;
    font-weight: bold;
    border-radius: 50%;
}

.widget-fixed-video.closed .closeLive {
    display: none !important;
}

.widget-fixed-video:not(.closed) .showLive {
    display: none !important;
}

.widget-fixed-video:not(.closed) .closeLive {
    display: block !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .widget-fixed-video {
        width: 260px;
        right: 10px;
        bottom: 100px;
    }
}
