/* /public/css/blog.css */

/* 主要部落格區域 */
.blogs-banner {
  padding: 15rem 10rem 0;
  text-align: center;
  margin-bottom: 30px;
}

.blogs-main-title {
  visibility: hidden;
}

/* 特色文章區塊 */
.featured-post {
  margin-bottom: 40px;
}

.featured-title {
  color: #85796b;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.featured-article {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.featured-details {
  flex: 1;
  text-align: left;
  color: #555;
  line-height: 1.6;
  padding: 30px;
}

.featured-post-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c3e50;
}

.featured-post-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-post-title a:hover {
  color: #3498db;
}

.featured-meta {
  display: flex;
  gap: 15px;
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.featured-excerpt {
  margin-bottom: 20px;
}

/* 特色文章閱讀更多按鈕 */
.featured-read-more {
  display: inline-block;
  background-color: #d3bba1;
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 31px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.featured-read-more:hover {
  background-color: #f0e2bb;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 最新文章標題 */
.recent-posts-title {
  color: #85796b;
  font-size: 2rem;
  font-weight: 600;
  margin: 40px 0 20px;
  text-align: center;
}

/* 文章列表 */
.blogs-posts {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.blogs-post {
  padding: 30px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

.blogs-post:last-child {
  border-bottom: none;
}

.blogs-post:hover {
  background-color: #f9f9f9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 文章圖片 */
.post-image {
  flex: 0 0 auto;
  width: 200px;
}

.post-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 文章詳情 */
.post-details {
  flex: 1;
  text-align: left;
}

/* 文章標題 */
.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.post-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: #3498db;
}

/* 文章元數據 */
.post-meta {
  display: flex;
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.post-date {
  margin-right: 15px;
}

/* 文章摘要 */
.post-excerpt {
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6;
}

/* 閱讀更多連結 */
.read-more {
  display: inline-block;
  color: #85796b;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.read-more:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 992px) {
  .blogs-banner {
    padding: 12rem 5rem 0;
  }
}

@media (max-width: 768px) {
  .blogs-banner {
    padding: 10rem 2rem 0;
  }

  .featured-article {
    flex-direction: column;
  }

  .blogs-post {
    flex-direction: column;
  }

  .post-image {
    width: 100%;
    margin-bottom: 15px;
  }
}
