.home-container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 40px 1rem;
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
  font-size: 15px;
}

/* Hero Section */
.home-hero-card {
  background-color: #f0f6ff;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.home-hero-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.home-hero-card p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.hero-btn {
  background-color: #1e88e5;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.hero-btn:hover {
  background-color: #1669c1;
}

/* Feature Cards */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: #666;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Section Card */
.home-section-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  background: white;
  margin-bottom: 40px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.home-section-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.home-section-card p {
  font-size: 14px;
  color: #555;
}

/* Popular List */
.popular-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.popular-item {
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fafafa;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}

.popular-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background-color: #f3f8ff;
}

.popular-item .title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.popular-item .meta {
  font-size: 13px;
  color: #777;
}

/* '더 보기' 버튼 */
.more-btn {
  display: inline-block;
  margin-top: 20px;
  color: #1e88e5;
  font-weight: bold;
  text-decoration: underline;
  font-size: 14px;
}

.more-btn:hover {
  text-decoration: none;
  color: #1669c1;
}

/* Notice */
.notice-list {
  list-style: none;
  padding: 0;
}

.notice-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

/* ✅ 공통 a 태그 기본 스타일 제거 */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: #3b82f6;
}


/* ✅ 반응형 스타일: 모바일 최적화 */
@media (max-width: 767px) {
  .home-hero-card h1 {
    font-size: 22px;
  }

  .home-hero-card p {
    font-size: 14px;
  }

  .hero-btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 13px;
  }

  .home-section-card h2 {
    font-size: 18px;
  }

  .home-section-card p,
  .popular-item .title,
  .popular-item .meta,
  .notice-list li {
    font-size: 13px;
  }

  .popular-list,
  .home-cards {
    grid-template-columns: 1fr;  /* 한 줄에 하나씩 */
  }
}


@media (max-width: 1024px) {
  .home-hero-card {
    padding: 24px;
  }

  .card {
    padding: 20px;
  }

  .home-section-card {
    padding: 20px;
  }

  .home-hero-card h1 {
    font-size: 24px;
  }

  .hero-btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  .popular-list,
  .home-cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}


@media (max-width: 480px) {
  .hero-btn {
    width: 100%;
    display: block;
  }

  .home-hero-card h1 {
    font-size: 20px;
  }

  .card,
  .home-section-card,
  .popular-item {
    padding: 16px;
  }

  .card h3,
  .popular-item .title {
    font-size: 15px;
  }

  .card p,
  .popular-item .meta {
    font-size: 12px;
  }

  .more-btn {
    font-size: 13px;
  }
}


