/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin-bottom: 60px; /* 하단 메뉴 공간 확보 */
}

header {
  text-align: center;
  background: #007BFF;
  color: white;
  padding: 1rem 0;
}

h1 {
  margin: 0;
}

/* 뉴스 컨테이너 */
.news-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

/* 뉴스 카드 */
.news-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.news-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.news-card .content {
  padding: 1rem;
}

.news-card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.9rem;
  color: #555;
}

.news-card .link {
  margin-top: auto;
  text-align: right;
  color: #007BFF;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: underline;
}

/* 하단 네비게이션 바 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #007BFF;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.nav-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
}

.nav-btn:hover {
  opacity: 0.8;
}
