/* start banner */
.articles-banner {
  margin-top: 6rem;
  background-color: rgba(109, 117, 143, 1);
}
.articles-banner h1 {
  font-weight: 800;
  font-size: 2.5rem;
}
@media (max-width: 768px) {
  .articles-banner h1 {
    font-size: 1.9rem;
  }
}
@media (max-width: 600px) {
  .articles-banner h1 {
    font-size: 1.1rem;
  }
}
/* start new articles */

.writer-articles-top .title {
  font-size: 3rem;
  color: rgba(109, 117, 143, 1);
}
@media (max-width: 991px) {
  .writer-articles-top .title {
    font-size: 2rem;
  }
}
.writer-articles-top .form-container {
  border-radius: 10px;
  border: 1px solid rgba(245, 240, 230, 1);
  width: 350px;
}
@media (max-width: 991px) {
  .writer-articles-top .form-container {
    width: 100%;
  }
}
.writer-articles-top .form-container input::placeholder {
  font-size: 16px;
  color: rgba(109, 117, 143, 1);
  font-weight: 500;
}
.writer-articles-top .form-container .btn {
  background-color: rgba(109, 117, 143, 1);
}
.writer-articles-top .form-container .btn:hover {
  background-color: rgba(109, 117, 143, 0.8);
  border-color: rgba(109, 117, 143, 0.8);
}
.writer-articles-img {
  height: 560px;

  position: relative;
  border-radius: 5px;
}
@media (max-width: 991px) {
  .writer-articles-img {
    height: 220px;
  }
}
.writer-articles-img img {
  object-fit: cover;
  border-radius: 8px;
}
.writer-articles-img .content {
  background-color: #fff;
  position: absolute;
  top: 50%;
  right: -20%;
  transform: translateY(-50%);
  border-radius: 8px;
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
    rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
  padding-left: 60px;
  padding-right: 40px;
}
@media (max-width: 991px) {
  .writer-articles-img .content {
    position: static;
    margin-top: 150px;
  }
}
.writer-articles-img .content .title {
  font-size: 25px;
  font-weight: 700;
  color: #6d758f;
  line-height: 40px;
}
@media (max-width: 475px) {
  .writer-articles-img .content .title {
    font-size: 17px;
    font-weight: 700;
    color: #6d758f;
    line-height: 30px;
  }
}
.writer-articles-img .content .desc {
  font-size: 16px;
  color: #6d758f;
  font-weight: 500;
}
.writer-articles-img .content .btn {
  background-color: #6d758f !important;
  cursor: pointer;
  font-size: 14px;
}

.writer-articles-img .content .btn i {
  font-size: 10px;
}

.writer-articles .content {
  padding: 4.5rem 2.5rem 2.5rem;
}
.writer-articles .content .title {
  line-height: 2.3rem;
}
.writer-articles .content .badge {
  background-color: #444a61;
  padding: 5px 10px;
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
  top: 1.8rem;
  right: 2.5rem;
}
.writer-articles .content .person img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.writer-articles .content .person h4 {
  font-size: 14px;
  font-weight: 800;
  color: rgba(109, 117, 143, 1);
}
.writer-articles .content .person span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(109, 117, 143, 1);
}
/* start new articles */
@media (max-width: 991px) {
  .new-articles {
    padding-top: 17rem !important;
  }
}
.new-articles .line img {
  object-fit: cover;
}
.new-articles .head-title {
  font-size: 2rem;
  color: rgba(26, 31, 59, 1) s;
}
.new-articles .badge {
  background-color: #444a61;
}
.new-articles .card h6 {
  color: #5b637e;
}
.new-articles .card .btn {
  border-radius: 8px;
}
/* timeline styles  */
/* timeline styles  */

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 30px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #444a61;
  transform: translateY(-50%);
  z-index: 1;
  width: 100%;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: start;
  position: relative;
  z-index: 2;
  flex: 1;
  bottom: 1rem;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-item.active .year {
  font-size: 20px;
  font-weight: 700;
  color: #444a61;
  transform: translateY(-2px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.active .marker {
  width: 16px;
  height: 16px;
  background: #444a61;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
  transform: scale(1.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  bottom: 6px;
}

.year {
  font-size: 15px;
  font-weight: 300;
  color: #2d3748;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
  left: 7px;
}

.marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #444a61;
  box-shadow: 0 0 0 3px #444a61;
  margin-bottom: 6px;
  transition: all 0.4s cubic-bezier(63, 66, 70, 1);
  cursor: pointer;
  position: relative;
  bottom: -3px;
}

/* Hover effects for better interaction */
.timeline-item:hover .marker {
  transform: scale(1.1);
  background: #444a61;
  box-shadow: 0 0 0 3px rgba(63, 66, 70, 0.3);
}

.timeline-item:hover .year {
  color: #444a61;
  font-weight: 500;
}

@media (max-width: 768px) {
  .timeline-item.active .year {
    bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    left: 5px;
  }

  .timeline-item.active .marker {
    width: 14px;
    height: 14px;
    bottom: 4px;
    position: relative;
    left: 2px;
    transform: scale(1.2);
  }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline::before {
    top: 12px;
    bottom: 0;
    right: 22px;
    left: auto;
    width: 3px;
    height: 76%;
    transform: none;
  }

  .timeline-item {
    flex-direction: row;
    margin-bottom: 30px;
    width: 100%;
    align-items: center;
    bottom: 0;
  }

  .year {
    margin-bottom: 0;
    margin-right: 20px;
    min-width: 80px;
    font-size: 15px;
    font-weight: normal;
    position: relative;
    bottom: 5px;
    left: 0;
  }

  .marker {
    margin-bottom: 0;
    margin-right: 20px;
    order: -1;
    position: relative;
    bottom: 0;
  }

  /* Mobile hover effects */
  .timeline-item:hover .marker {
    transform: scale(1.05);
  }
}
