/* ✅ Speak 브랜드 컬러 */
:root {
  --speak-blue: #1a73e8;
  --speak-dark-blue: #174ea6;
  --speak-light-gray: #f8f9fa;
  --speak-white: #ffffff;
  --text-color: #333;
}

/* ✅ 기본 스타일 */
body {
  font-family: "Noto Sans KR", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--speak-light-gray);
  color: var(--text-color);
}

/* ✅ 세련된 헤더 스타일 */
.header {
  background: linear-gradient(135deg, #1a73e8, #174ea6);
  padding: 20px 0;
  text-align: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* ✅ 헤더 내부 컨테이너 */
.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* ✅ 제목 스타일 */
.header h1 {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
}

.header h1 a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease-in-out;
}

.header h1 a:hover {
  opacity: 0.8;
}

/* ✅ 네비게이션 스타일 */
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.nav ul li {
  display: inline;
}

.nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 20px;
  transition: background 0.3s ease-in-out;
}

.nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ✅ 메인 콘텐츠 */
.main-content {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

/* ✅ 카드형 게시물 (가로형 그리드) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  justify-content: center;
  padding: 10px;
}

/* ✅ 개별 카드 */
.post-card {
  background: var(--speak-white);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  text-align: center;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.post-card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
}
/* ✅ 제목 스타일 개선 */
.post-card h2 {
  font-size: 1.3rem; /* 조금 더 현대적인 크기 */
  font-weight: 600; /* 너무 두껍지 않도록 */
  margin: 10px 0;
  text-align: center;
  color: var(--text-color);
  position: relative;
  transition: color 0.3s ease-in-out;
  font-family: "Poppins", sans-serif; /* 세련된 영문 & 한글 폰트 */
}

/* ✅ 제목 하이라이트 효과 */
.post-card h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--speak-blue);
  margin: 8px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
}

/* ✅ 제목 Hover 시 스타일 */
.post-card:hover h2 {
  color: var(--speak-blue);
}

.post-card:hover h2::after {
  width: 60px;
}

/* ✅ 내용 스타일 */
.post-card p {
  font-size: 1rem;
  color: #666;
  text-align: center;
  line-height: 1.6;
}

/* ✅ 링크 스타일 */
.post-card a {
  color: var(--speak-dark-blue);
  text-decoration: none;
  font-weight: bold;
}

.post-card a:hover {
  text-decoration: underline;
}

/* ✅ 푸터 */
.footer {
  text-align: center;
  padding: 25px;
  background: var(--speak-dark-blue);
  color: white;
  font-size: 0.9rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* ✅ 반응형 디자인 (모바일 최적화) */
@media (max-width: 768px) {
  .header {
    font-size: 1.2rem;
    padding: 15px;
  }

  .header nav ul li {
    display: block;
    margin: 5px 0;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    padding: 15px;
  }

  .post-card h2 {
    font-size: 1.2rem;
  }

  .post-card p {
    font-size: 0.9rem;
  }
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .nav ul {
    margin-top: 10px;
    flex-direction: column;
    gap: 10px;
  }

  .nav ul li a {
    display: block;
    width: 100%;
  }
  .price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  .price-table th,
  .price-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
  }
  .price-table th {
    background-color: #ffdd57;
    font-weight: bold;
  }
  .price-table td strong {
    color: #333;
  }
}
