body {
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.top-section {
  margin-top: 0;
  padding-top: 80px;
}

#main {
  padding-top: 0px;
  padding-bottom: 80px;
  min-height: calc(100vh - 200px);
}

#section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-title-section {
  text-align: center;
  padding: 80px 20px;
  margin-top: 30px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, rgba(79, 156, 249, 0.05) 0%, rgba(108, 99, 255, 0.05) 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #4F9CF9 0%, #6C63FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-subtitle {
  font-size: 1.1rem;
  color: #666666;
  font-weight: 300;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(79, 156, 249, 0.15);
  border-color: rgba(79, 156, 249, 0.3);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

.blog-meta {
  padding: 24px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-meta h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
}

.blog-meta p {
  font-size: 0.95rem;
  color: #666666;
  margin: 0 0 16px;
  line-height: 1.6;
}

.blog-date {
  font-size: 0.85rem;
  color: #4F9CF9;
  display: block;
  font-weight: 500;
}

.sort-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
  padding: 0 16px;
}

.sort-button {
  padding: 10px 20px;
  border: 1px solid rgba(79, 156, 249, 0.3);
  border-radius: 12px;
  background: #ffffff;
  color: #4F9CF9;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-button:hover {
  background: rgba(79, 156, 249, 0.05);
  transform: translateY(-2px);
}

.sort-button.active {
  background: linear-gradient(135deg, #4F9CF9 0%, #6C63FF 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 156, 249, 0.2);
}

@media screen and (max-width: 768px) {
  body {
    background: #ffffff;
  }

  .top-section {
    padding-top: 60px;
  }

  #main {
    padding-top: 60px;
  }

  .blog-title-section {
    padding: 60px 20px;
    margin-bottom: 40px;
    border-radius: 20px;
  }

  .blog-title {
    font-size: 2rem;
  }

  .blog-subtitle {
    font-size: 1rem;
  }

  .blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .blog-card {
    border-radius: 16px;
  }

  .blog-meta {
    padding: 20px;
  }

  .sort-buttons {
    margin: 30px 0;
    gap: 10px;
  }

  .sort-button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 480px) {
  .blog-title-section {
    padding: 80px 16px 30px;
  }

  .blog-title {
    font-size: 1.8rem;
  }

  .blog-subtitle {
    font-size: 0.95rem;
  }

  .blog-list {
    padding: 16px;
    gap: 12px;
  }

  .blog-card img {
    height: 180px;
  }

  .blog-meta {
    padding: 16px;
  }

  .blog-meta h2 {
    font-size: 1.1rem;
  }

  .blog-meta p {
    font-size: 0.9rem;
  }

  .blog-date {
    font-size: 0.8rem;
  }
}

/* 작은 모바일 화면을 위한 추가 최적화 */
@media screen and (max-width: 480px) {
  .top-section {
    padding-top: 0;
  }

  #main {
    padding-top: 0;
  }

  .blog-title-section {
    padding: 60px 12px 30px;
    margin: 0 0 30px;
    border-radius: 0;
  }

  .blog-title {
    font-size: 1.6rem;
  }

  .blog-subtitle {
    font-size: 0.9rem;
    padding: 0 16px;
  }

  .blog-list {
    gap: 16px;
    padding: 0 12px;
  }

  .blog-card img {
    height: 160px;
  }

  .blog-meta {
    padding: 14px;
  }

  .blog-meta h2 {
    font-size: 1rem;
  }

  .blog-meta p {
    font-size: 0.85rem;
  }
}

/* 세련된 페이드인 애니메이션 */
.blog-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 각 카드에 딜레이 추가 */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }

.blog-year-group {
  margin-bottom: 48px;
}

.year-title {
  font-size: 1.2rem;
  color: #4F9CF9;
  margin: 24px 0 16px;
  padding-left: 20px;
  padding-right: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-left: 4px solid #4F9CF9;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(79, 156, 249, 0.05);
}

#logout-btn {
  font-size: 14px;
  padding: 8px 14px;
  margin-top: -30px;
  color: #ffffff;
  background-color: #E06565;
}

#logout-btn:hover {
  background-color: #C05454;
}

/* 메인 배너 스타일 */
.blog-banner {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, rgba(79, 156, 249, 0.1) 0%, rgba(108, 99, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    padding-top: 80px;
    padding-bottom: 50px;
}

.blog-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/blog-banner-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.banner-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4F9CF9 0%, #6C63FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.banner-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4F9CF9;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모바일 반응형 스타일 */
@media screen and (max-width: 768px) {
    .blog-banner {
        height: 300px;
        margin-bottom: 40px;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .banner-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .blog-banner {
        height: 250px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}