
/* AliExpress 스타일 테마 적용 */
:root {
  --main-color: #ff4747;
  --hover-color: #d93636;
  --text-on-color: #ffffff;
  --gray-bg: #f5f5f5;
  --border-color: #e0e0e0;
  --black-color:#191919;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #222222;
}

p {
  margin: 12px;
}

h2, h3, h1, h4 {
  color: #222222;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 헤더 */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.logo img {
  height: 50px;
}

.site-title {
  color: var(--main-color);
}
/* 헤더 끝 */
/* 푸터 시작 */
.site-footer {
  background-color: var(--gray-bg);
  color: #555;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-container .logo img {
  height: 40px;
  margin-bottom: 10px;
}

.footer-container p {
  margin: 0;
  font-size: 0.9rem;
}
/* 푸터 끝 */

h1 {
  text-align: center;
  color: #2C3E50;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.post-list {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: #fdfdfd;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.post-item:hover {
  background-color: #fff0f0;
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(255, 71, 71, 0.15);
}

.thumbnail-wrapper {
  flex: 0 0 200px;
}

.thumbnail-wrapper img {
  border-radius: 8px;
  object-fit: cover;
  width: 200px;
  height: auto;
}

.post-content {
  flex: 1;
}

.post-title a {
  font-size: 1.5rem;
  color: var(--black-color);
  font-weight: 600;
  text-decoration: none;
}

.post-title a:hover {
  color: var(--black-color);
  text-decoration: underline;
}

.post-meta {
  font-size: 0.85rem;
  color: #999;
  margin-top: 5px;
}

.post-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-top: 12px;
}

.detail-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hover-color);
  text-decoration: none;
  margin-top: 12px;
  display: inline-block;
}

.detail-link:hover {
  text-decoration: underline;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
}
.pagination a,
.pagination span {
  background-color: var(--main-color);
  color: var(--text-on-color);
  border-radius: 50px;
  padding: 8px 16px;
  text-decoration: none;
  transition: 0.3s ease;
}

.pagination a:hover {
  background-color: var(--hover-color);
  color: #fff;
}

.pagination .active {
  background-color: var(--hover-color);
  color: #fff;
}

@media (max-width: 768px) {
  .post-item {
    flex-direction: column;
  }

  .thumbnail-wrapper {
    width: 100%;
  }

  .thumbnail-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 4px 4px 0 0;
  }

  .post-content {
    width: 100%;
  }
}
