﻿.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.breadcrumb-container {
  margin: 20px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.breadcrumb {
  background-color: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #007bff;
}

  .breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
  }

    .breadcrumb-item a:hover {
      color: #0056b3;
    }

  .breadcrumb-item::after {
    content: "";
    margin: 0;
    color: #999;
  }

  .breadcrumb-item.active {
    color: #666;
    pointer-events: none;
    font-weight: bold;
  }

.search-container {
  display: flex;
  align-items: center; 
  gap: 10px; 
  margin-bottom: 20px; 
}

.search-label {
  font-weight: bold;
  white-space: nowrap; 
  font-size: 18px;
  padding-right: 10px;
}

.search-bar {
  display: flex;
  flex-grow: 1; 
}

.search-input {
  flex-grow: 1; 
  padding: 12px;
  font-size: 16px;
  border: 1px solid #6c757d;
  border-radius: 5px;
  width: 100%;
  min-width: 250px; 
}

.search-button {
  padding: 12px 20px;
  background-color: #0070c0;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  margin-left: 10px;
}

  .search-button:hover {
    background-color: darkblue;
  }

.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-item {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

.post-image {
  width: 300px; 
  height: 200px; 
  object-fit: cover;
  object-position: center; 
  display: block;
}



.post-content {
    flex: 1;
    /*max-width: 900px;*/ /* Giới hạn chiều rộng của nội dung */
    margin: auto; /* Căn giữa nội dung */
    line-height: 1.6; /* Giúp văn bản dễ đọc */
}

 .post-content img {
     max-width: 100%; /* Ảnh không vượt quá khung chứa */
     height: auto; /* Giữ tỉ lệ ảnh */
     display: block; /* Tránh khoảng trắng thừa */
     margin: 10px auto; /* Canh giữa ảnh */
    }
.post-title {
  font-size: 18px;
  margin: 0 0 10px;
  color: #333;
}

.post-short-content {
  font-size: 14px;
  color: #666;
}

.post-date {
  font-size: 15px;
  color: #999;
  font-style: italic;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.page-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: #007bff;
  text-decoration: none;
  border: 1px solid #007bff;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

  .page-link.active {
    background-color: #007bff;
    color: white;
    cursor: default;
  }

  .page-link.disabled {
    color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
  }

  .page-link:hover:not(.active):not(.disabled) {
    background-color: #0056b3;
    color: white;
  }

    .pagination a:hover {
      background-color: #f0f0f0;
    }
/*Post Detail*/
.post-detail-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
  background-color: #fff;
  color: #000;
  font-family: Arial, sans-serif;
}

  .post-detail-container .post-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
    color: #333;
  }

  .post-detail-container .post-date {
    font-size: 18px;
    text-align: right;
    color: #000;
    margin-bottom: 20px;
    font-style: italic;
  }

  .post-detail-container .post-content {
    font-size: 16px;
    color: #000;
    margin-bottom: 20px;
  }

  .post-detail-container hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
  }

/* Related Posts Section */
.related-posts-container {
  margin: 40px 0; 
  padding: 20px 0; 
  border-top: 2px solid #ccc; 
}

.related-posts-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  font-weight: bold;
  padding-left: 10px;
}

  .related-posts-title::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: red;
  }

.related-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-post-item {
  margin-bottom: 15px;
}

.related-post-link {
  text-decoration: none;
  font-size: 16px;
  color: #333;
  transition: color 0.3s;
}

  .related-post-link:hover {
    color: #007bff; 
  }

.related-post-date {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}
ul.related-posts-list {
  list-style: disc; 
  padding-left: 25px;
}

.post-title a {
  font-size: 18px; 
  font-weight: bold; 
  color: #333; 
  text-decoration: none; 
}

  .post-title a:hover {
    color: #007bff; 
  }



.post-short-content {
  font-size: 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 4;
  line-height: 1.5;
  max-height: calc(1.5em * 4);
  font-style: italic;
}
.truncate-lines {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /*  max-height: 6em;*/
  line-height: 1.5em;
}