.timeline {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 25px 5px rgba(0, 0, 0, 0.2);
  transition: padding 0.5s ease;
}

body.scrolled .timeline {
  padding-bottom: 0;
  padding-top: 100px; /* Üst menü için boşluk */
}
.timeline .swiper {
  height: 480px;
  max-height: 480px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.timeline .swiper-wrapper {
  transition: 2s ease 0.2s;
}
.timeline .swiper-slide {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-size: cover !important;
  background-repeat: no-repeat;
  background-position: center center;
  transition: background-image 0.5s ease-in-out;
}

.timeline .swiper-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -115%;
  bottom: -10%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: -230px 0 150px 60vw rgba(0, 0, 0, 0.7);

}

/* Seyyah container - yan yana kutular için */
.seyyah-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap; /* Yan yana kalmasını zorla */
  overflow: hidden; /* Scrollbar'ı tamamen kaldır */
}

/* 2 kutu varsa boyutları küçült */
.seyyah-container .seyyah-box:nth-child(odd):nth-last-child(3) ~ .seyyah-box,
.seyyah-container .seyyah-box:nth-child(odd):nth-last-child(3) {
  min-width: 40%; /* Daha küçük yaparak overflow'u engelle */
  flex: 0 0 40%;
  max-width: 40%;
}

/* 2 kutu varsa görsel boyutunu küçült - artık gereksiz */

/* 2 kutu varsa font boyutlarını küçült */
.seyyah-container .seyyah-box:nth-child(odd):nth-last-child(3) .seyyah-name,
.seyyah-container .seyyah-box:nth-child(odd):nth-last-child(3) ~ .seyyah-box .seyyah-name {
  font-size: 16px;
}

.seyyah-container .seyyah-box:nth-child(odd):nth-last-child(3) .timeline-title,
.seyyah-container .seyyah-box:nth-child(odd):nth-last-child(3) ~ .seyyah-box .timeline-title {
  font-size: 13px;
}

.seyyah-container .seyyah-box:nth-child(odd):nth-last-child(3) .timeline-text,
.seyyah-container .seyyah-box:nth-child(odd):nth-last-child(3) ~ .seyyah-box .timeline-text {
  font-size: 12px;
  line-height: 1.3;
}

/* 2 kutu varsa padding'i küçült */
.seyyah-container .seyyah-box:nth-child(odd):nth-last-child(3),
.seyyah-container .seyyah-box:nth-child(odd):nth-last-child(3) ~ .seyyah-box {
  padding: 15px;
}

/* 2 kutu varsa gap'i küçült */
.seyyah-container:has(.seyyah-box:nth-child(odd):nth-last-child(3)) {
  gap: 15px;
}

.seyyah-box {
  flex: 1;
  width: 100%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1) !important;
  /*border-radius: 10px;*/
  backdrop-filter: blur(5px);
  /*border: 1px solid rgba(255, 255, 255, 0.2);*/
  cursor: pointer;
  transition: all 0.3s ease;
  /* Başlangıç animasyonu için */
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: 0.2s ease 0.6s;
  position: relative;
}

/* Seyyah görseli olan kutular için arkaplan */
.seyyah-box[style*="background-image"] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.seyyah-content {
  position: relative;
  z-index: 2;
}

.seyyah-letter-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 120px;
  color: rgba(200, 187, 153, 0.2);
  z-index: 1;
  pointer-events: none;
  line-height: 1;
  font-weight: 300;
}

.seyyah-img-overlay {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(200, 187, 153, 0.4);
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  opacity: 0.6;
}

.seyyah-portrait-small {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.seyyah-box:hover .seyyah-portrait-small {
  transform: scale(1.05);
}

.seyyah-box:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: scale(1.02);
}

.seyyah-box.active-seyyah {
  /*border: 2px solid #c8bb99 !important;*/
  background: rgba(212, 160, 36, 0.1) !important;
}

.seyyah-divider {
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
  margin: 0 10px;
  align-self: stretch;
}

.seyyah-name {
  color: #c8bb99!important;
  font-size: 22px;
  font-weight: 600;
  margin: 10px 0;
  text-transform: capitalize;
    opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: 0.2s ease 0.5s;
}


.timeline .swiper-slide-content {
  position: absolute;
  text-align: left;
  width: 80%;
  max-width: 480px;
  right: 50%;
  top: 13%;
  transform: translate(50%, 0);
  font-size: 12px;
  z-index: 2;
}
.timeline .swiper-slide .timeline-year {
  display: inline-block;
  font-size: 4rem;
  margin-bottom: 50px;
  transform: translate3d(20px, 0, 0);
  font-weight: 300;
  opacity: 0;
  transition: 0.2s ease 0.4s;
}
.timeline .swiper-slide .timeline-title {
     color: #fff!important; 
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 30px;
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: 0.2s ease 0.5s;
}
.timeline .swiper-slide .timeline-text {
  line-height: 1.5;
  opacity: 0;
  font-size: 16px;
  transform: translate3d(20px, 0, 0);
  transition: 0.2s ease 0.6s;
}
.timeline .swiper-slide-active .timeline-year {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: 0.8s ease 1.6s;
}
.timeline .swiper-slide-active .timeline-title, .timeline .swiper-slide-active .seyyah-name {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: 0.8s ease 1.7s;
}
.timeline .swiper-slide-active .timeline-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: 0.8s ease 1.8s;
}
.timeline .swiper-slide-active .seyyah-box {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: 0.8s ease 1.9s;
}

.timeline .swiper-pagination {
  position: absolute !important;
  right: 5% !important;
  bottom:10% !important;
  left: auto !important;
  max-height: 80% !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  font-style: italic !important;
  font-weight: 300 !important;
  font-size:20px;
  z-index: 100 !important;
  width: auto !important;
  padding: 20px 30px !important; 
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  border-left:3px solid rgba(255, 255, 255, 0.4) !important;
  border-right:3px solid rgba(255, 255, 255, 0.4) !important;
}





.timeline .swiper-pagination::-webkit-scrollbar {
  display: none !important;
}

.timeline .swiper-pagination-bullet {
  width: auto !important;
  height: auto !important;
  text-align: center !important;
  background: transparent !important;
  margin: 8px 0 !important;
  position: relative !important;
  font-weight: 400 !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
  min-width: 50px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  opacity: 0.6 !important;
  display: block !important;
  cursor: pointer !important;
}

.timeline .swiper-pagination-bullet.swiper-pagination-bullet-active {
  color: #c8bb99 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
  opacity: 1 !important;
}

.timeline .swiper-button-next,
.timeline .swiper-button-prev {
  background-size: 20px 20px;
  top: 15%;
  width: 20px;
  height: 20px;
  margin-top: 0;
  z-index: 9999;
  transition: 0.2s;
}
.timeline .swiper-button-next:after,
.timeline .swiper-button-prev:after {
  content: unset;
}
.timeline .swiper-button-prev {
  left: 8%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23c8bb99'%2F%3E%3C%2Fsvg%3E");
}
.timeline .swiper-button-prev:hover {
  transform: translateX(-3px);
}
.timeline .swiper-button-next {
  right: 8%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23c8bb99'%2F%3E%3C%2Fsvg%3E");
}
.timeline .swiper-button-next:hover {
  transform: translateX(3px);
}

@media screen and (min-width: 769px) {
  .timeline .swiper-slide::after {
    right: -30%;
    bottom: -8%;
    width: 240px;
    height: 50%;
    box-shadow: -230px 0 150px 50vw rgba(0, 0, 0, 0.7);
  }
  .timeline .swiper-slide-content {
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    font-size: 11px;
    text-align: left;
  }
  .timeline .swiper-slide .timeline-year {
    margin-bottom: 0;
    font-size: 32px;
  }
  .timeline .swiper-slide .timeline-title {
    /*font-size: 24px;
    line-height: 1.2;*/
    margin: 0.5rem 0 0.75rem 0;
  }
  .timeline .swiper-button-prev {
    top: 15%;
    left: auto;
    right: 15%;
    transform: rotate(90deg) translate(0, 10px);
  }
  .timeline .swiper-button-prev:hover {
    transform: rotate(90deg) translate(-3px, 10px);
  }
  .timeline .swiper-button-next {
    top: auto;
    bottom: 15%;
    right: 15%;
    transform: rotate(90deg) translate(0, 10px);
  }
  .timeline .swiper-button-next:hover {
    transform: rotate(90deg) translate(3px, 10px);
  }
}

@media screen and (min-width: 769px) {
  .timeline .swiper-slide::after {
    right: -20%;
    bottom: -12%;
    width: 240px;
    height: 50%;
    box-shadow: -230px 0 150px 39vw rgba(0, 0, 0, 0.7);
  }
  .timeline .swiper-slide-content {
    right: 25%;
  }
}

@media screen and (max-width: 769px) {
.timeline .swiper-pagination {
  top: 20px; 
  border: 0px!important;
display:inline !important; 
right: auto !important;
width: 100% !important;
    padding: 10px 10px !important;
    height: 100px !important;

}
.timeline .swiper-slide .timeline-year {display:none!important;}
.timeline .swiper-pagination-bullet {display:inline !important; margin: 8px 10px !important;}

  .seyyah-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .seyyah-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 10px 0;
  }
  
  .seyyah-box {
    min-width: auto; 
    margin: 20px 0;
    text-align: left;
  }
}