/* article-section */
.article-section {
  width: 100%;
  margin: 3px auto;
  padding: 20px 20px 20px 20px;
  .article-item:nth-child(even) {
    display: flex;
    flex-direction: row-reverse;
  }
}
.article-item {
  box-shadow: 0px 4px 40px 0px #00000029;
  background-color: #f5f5dc;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 15px;
  width: 100%; /* veya sabit bir değer (örneğin 800px) */
  min-height: 200px; /* Sabit bir yükseklik belirleyin */
  height: auto; /* İçerik uzunsa genişlesin */
  overflow: hidden; /* Taşan içeriği kesmek için */
  justify-content: space-between;
  .article-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    .category {
      font-family: merri-700;
      border-left: 3px solid #6f4f1e;
      color: #6f4f1e;
      line-height: 24px;
      padding-left: 10px;
    }
    h5 {
      font-family: merri-700;
      color: #000000de;
      font-size: 18px;
      line-height: 24px;
    }
    .details {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .author-box {
        display: flex;
        align-items: center;
        gap: 5px;
        .image-box {
          width: 40px;
          height: 40px;
          border-radius: 50%;
          img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
          }
        }
        .author {
          font-size: 14px;
          color: #777777;
          line-height: 24px;
          font-family: merri-700;
        }
      }
      .icon-box {
        display: flex;
        align-items: center;
        gap: 10px;
        .icon-item {
          display: flex;
          align-items: center;
          gap: 5px;
          span {
            font-family: merri-700;
            font-size: 14px;
            color: #212121;
          }
        }
      }
    }
  }
  .img-article-box {
    width: 250px; /* Resim kutusu için sabit genişlik */
    height: 150px; /* Resim kutusu için sabit yükseklik */
    flex-shrink: 0; /* Küçülmesini engelle */
    img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Resmi kutuyu tamamen kaplayacak şekilde ayarla */
        border-radius: 4px;
    }
  }
}
.article-details-section {
  width: 90%;
  margin: 0 auto;
  padding: 60px 0;
  .article-content {
    .article-image {
      width: 100%;
      border-radius: 10px;
    }
    .article-text {
      p {
        color: #000000de;
        font-size: 20px;
        line-height: 24px;
      }
    }
    .social-media-conainer {
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: space-between;
      margin-top: 20px;
      .social-media {
        display: flex;
        gap: 1rem;
        align-items: center;
        img {
          width: 36px;
        }
      }
      .icon-box {
        display: flex;
        align-items: center;
        gap: 10px;
        span {
          font-size: 14px;
          color: #00000061;
          font-family: inter-400;
        }
        .article-view {
          display: flex;
          align-items: center;
          gap: 5px;
        }
      }
    }
  }
}
.other-article-section {
  width: 90%;
  margin: 0 auto;
  padding: 20px 0;
  .title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    h4 {
      color: #212121;
      font-family: merri-700;
      font-size: 24px;
    }
    .arrows {
      display: flex;
      align-items: center;
      gap: 10px;
      img {
        cursor: pointer;
      }
    }
  }
  .article-slider {
    width: 100%;
    margin: auto;
    margin-top: 20px;
    display: flex;
    .article-item {
      margin: 10px;
      display: flex;
      box-shadow: -2px 2px 12px 0px #00000029;
    }
  }
}

@media only screen and (max-width: 900px) {
  .article-section {
    padding: 20px 0;
  }
  .article-item {
    padding: 10px;
    .article-content {
      .category {
        border-left: 1x solid #6f4f1e;
        line-height: 14px;
        padding-left: 5px;
        font-size: 14px;
      }
      h5 {
        font-size: 15px;
        line-height: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .details {
        display: flex;
        justify-content: space-between;
        align-items: start;
        flex-direction: column;
        gap: 5px;
      }
    }
    .img-article-box {
      max-width: 126px;
      height: 146px;
    }
  }
  .article-details-section {
    padding: 30px 0;
    .article-content {
      .article-text {
        p {
          font-size: 16px;
        }
      }
      .social-media-conainer {
        justify-content: end;
        margin-top: 10px;
      }
    }
  }
  .other-article-section {
    padding: 10px 0;
    .title-line {
      h4 {
        font-size: 20px;
      }
      .arrows {
        gap: 10px;
        img {
          width: 16px;
        }
      }
    }
    .article-slider {
      margin-top: 10px;
    }
  }
}
