@charset "utf-8";

/* COVAL Blog Container */
.coval-blog-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 새글 스킨 (latest) */
.lat {
  position: relative;
  margin-bottom: 40px;
  background: #fff;
}

.lat .lat_title {
  display: block;
  line-height: 45px;
  font-size: 1.2em;
  color: #253dbe;
  display: none;
}

.lat .lat_title a {
  position: relative;
  color: #000;
  display: inline-block;
}

/* Blog Posts Container */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual Blog Post Item */
.blog-post-item {
  display: flex;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
  gap: 60px;
  transition: all 0.3s ease;
}

.blog-post-item:last-child {
  border-bottom: none;
}

.blog-post-item:hover {
  background-color: #fafafa;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
}

/* Post Image */
.post-image {
  flex: 0 0 456px;
  width: 456px;
  height: 325px;
  border-radius: 8px;
  overflow: hidden;
}

.post-image .image-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-image img:hover {
  transform: scale(1.05);
}

/* Post Content */
.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 325px;
}

.post-date {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #111827;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #2563eb;
}

.post-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 24px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Post Meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lt_info {
  padding: 0;
}

.lt_info .lt_nick {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Icons */
.new_icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 10px;
  color: #fff;
  background: #22c55e;
  text-align: center;
  border-radius: 50%;
  margin-left: 8px;
  font-weight: bold;
  vertical-align: middle;
}

.hot_icon {
  display: inline-block;
  padding: 4px 8px;
  line-height: 16px;
  font-size: 10px;
  color: #fff;
  background: #ef4444;
  text-align: center;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: bold;
  vertical-align: middle;
}

.hot_icon .fa-heart {
  color: #fff;
  margin-right: 4px;
}

.fa-lock {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 10px;
  color: #64748b;
  background: #e2e8f0;
  text-align: center;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.fa-download {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 10px;
  color: #f59e0b;
  background: #fef3c7;
  text-align: center;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}

.fa-link {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 10px;
  color: #8b5cf6;
  background: #ede9fe;
  text-align: center;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}

.lt_cmt {
  background: #dbeafe;
  color: #2563eb;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
  vertical-align: middle;
}

/* Read More Link */
.read-more {
  margin-top: auto;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
}

.more-link:hover {
  color: #2563eb;
  gap: 12px;
}

.more-link .fa-arrow-right {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.more-link:hover .fa-arrow-right {
  transform: translateX(4px);
}

/* More Posts Link */
.more-posts-wrapper {
  text-align: center;
  margin-top: 40px;
}

.lt_more {
  display: inline-block;
  padding: 12px 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lt_more:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .coval-blog-container {
    padding: 0 15px;
  }
  
  .blog-post-item {
    gap: 40px;
  }
  
  .post-image {
    flex: 0 0 380px;
    width: 380px;
    height: 270px;
  }
  
  .post-content {
    min-height: 270px;
  }
  
  .post-title {
    font-size: 28px;
  }
}

@media (max-width: 968px) {
  .blog-post-item {
    flex-direction: column;
    gap: 24px;
    padding: 30px 0;
  }
  
  .blog-post-item:hover {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
  }
  
  .post-image {
    flex: none;
    width: 100%;
    height: 300px;
  }
  
  .post-content {
    min-height: auto;
  }
  
  .post-title {
    font-size: 24px;
  }
  
  .post-excerpt {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 640px) {
  .coval-blog-container {
    padding: 0 10px;
  }
  
  .blog-post-item {
    padding: 20px 0;
    gap: 16px;
  }
  
  .blog-post-item:hover {
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .post-image {
    height: 220px;
  }
  
  .post-date {
    font-size: 12px;
  }
  
  .post-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .post-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 2;
    margin-bottom: 16px;
  }
  
  .post-meta {
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .more-link {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 18px;
  }
  
  .post-excerpt {
    font-size: 13px;
  }
  
  .post-image {
    height: 180px;
  }
}