@charset "UTF-8";

/* reset */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #f6f8fb;
  color: #1f2937;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
}

img {
  max-width: 100%;
  border: 0;
  vertical-align: top;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input {
  font: inherit;
}

#wrap {
  min-height: 100vh;
}

.inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* header */
#header {
  background: #ffffff;
  border-bottom: 1px solid #e7edf4;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  max-height: 40px;
  width: auto;
}

.header-util {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 240px;
  height: 42px;
  padding: 0 46px 0 16px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #fff;
  outline: none;
  color: #334155;
}

.search-box input:focus {
  border-color: #9ab6dc;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
}

.profile-box {
  position: relative;
}

.profile-box > button {
  width: 42px;
  height: 42px;
  border: 1px solid #dbe3ec;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.profile-box nav {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 140px;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 8px 0;
}

.profile-box:hover nav {
  display: block;
}

.profile-box nav a {
  display: block;
  padding: 10px 14px;
  color: #475569;
  font-size: 14px;
}

.profile-box nav a:hover {
  background: #f8fafc;
}

.header-nav {
  padding-top: 0;
  padding-bottom: 18px;
}

#gnb ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 46px;
  flex-wrap: wrap;
}

#gnb li {
  position: relative;
}

#gnb a {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: #334155;
  padding: 6px 0;
  position: relative;
}

#gnb a:hover {
  color: #2563eb;
}

#gnb a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #2563eb;
  transition: width 0.25s ease;
}

#gnb a:hover::after {
  width: 100%;
}

/* hero */
.hero-section {
  padding: 28px 0 0;
}

.hero-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-slider ul li {
  position: relative;
  min-height: 420px;
  border-radius: 26px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.main-slider ul li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.55) 40%, rgba(255,255,255,0.08) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 0 72px;
}

.hero-box {
  display: block;
  max-width: 580px;
}

.hero-text {
  display: block;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 500;
  color: #243142;
  letter-spacing: -0.03em;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 46px;
  margin-top: 28px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid #dbe3ec;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

/* layout */
#container {
  padding: 36px 0 70px;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

/* section title */
.section-title-row {
  margin-bottom: 18px;
}

.section-title-row h1,
.section-title-row h2,
.list-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.03em;
}

/* post list */
.post-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.post-item > a {
  display: flex;
  gap: 24px;
  padding: 24px;
  border: 1px solid #e7edf4;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-item > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.post-item .thum {
  width: 250px;
  min-width: 250px;
  border-radius: 18px;
  overflow: hidden;
  background: #eef2f7;
}

.post-item .thum img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.post-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.post-info .title {
  display: block;
  font-size: 32px;
  line-height: 1.33;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1f2937;
  margin-bottom: 14px;
}

.post-info .excerpt {
  display: block;
  font-size: 16px;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 16px;
}

.post-info .meta {
  display: block;
  font-size: 14px;
  color: #94a3b8;
}

/* post view */
.post-view-card {
  background: #ffffff;
  border: 1px solid #e7edf4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.post-cover {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #edf4ff, #f8fbff);
  background-size: cover;
  background-position: center center;
}

.post-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
}

.post-cover-inner {
  position: relative;
  z-index: 2;
  padding: 56px 48px;
}

.post-cover .category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.post-cover h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e293b;
}

.post-cover .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
  font-size: 14px;
}

.entry-content {
  padding: 42px 48px 48px;
  font-size: 16px;
  line-height: 1.9;
  color: #334155;
}

/* cover */
.cover-card {
  margin-bottom: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e7edf4;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.cover-grid {
  display: grid;
  gap: 20px;
}

.cover-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cover-grid li a {
  display: block;
}

.cover-grid figure {
  margin: 0 0 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #eef2f7;
}

.cover-grid .title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.cover-grid .date {
  font-size: 13px;
  color: #94a3b8;
}

.cover-list-type {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cover-list-type li a {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.cover-list-type figure {
  width: 126px;
  min-width: 126px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
}

.cover-list-type .text-box {
  min-width: 0;
}

.cover-list-type .title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.cover-list-type .excerpt {
  display: block;
  font-size: 15px;
  color: #64748b;
  margin-bottom: 8px;
}

.cover-list-type .date {
  font-size: 13px;
  color: #94a3b8;
}

.simple-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.simple-list li a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #eef2f7;
}

.simple-list li:last-child a {
  border-bottom: 0;
}

.simple-list .title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.simple-list .excerpt {
  display: block;
  font-size: 15px;
  color: #64748b;
  margin-bottom: 8px;
}

.simple-list .date {
  font-size: 13px;
  color: #94a3b8;
}

/* sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  padding: 24px 22px;
  background: #ffffff;
  border: 1px solid #e7edf4;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: #1e293b;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-list a,
.category a,
.social-channel a {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.side-list a:hover,
.category a:hover,
.social-channel a:hover,
.tag-cloud a:hover {
  color: #2563eb;
}

.category ul li {
  margin-bottom: 8px;
}

.post-list-side ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-list-side li a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.post-list-side img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef2f7;
}

.post-list-side .title {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: #334155;
}

.post-list-side .date {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a,
.tags-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
}

.count-box .total {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 14px;
}

.count-box p {
  margin: 0 0 6px;
  color: #64748b;
}

/* related / tags / comments */
.tags-box,
.related-box,
.comments,
.empty-box {
  padding: 28px 32px;
}

.tags-box h2,
.related-box h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
}

.related-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.related-box li a {
  display: block;
}

.related-box figure {
  margin: 0 0 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
}

.related-box .title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
}

.empty-box {
  background: #fff;
  border: 1px solid #e7edf4;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.empty-box p {
  margin: 0;
  color: #64748b;
}

/* form */
.protected_form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}

.protected_form h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.protected_form p {
  margin: 0;
  color: #64748b;
}

.protected_form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  outline: none;
}

.protected_form .btn {
  width: 120px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.pagination a:hover {
  border-color: #93c5fd;
  color: #2563eb;
}

/* footer */
#footer {
  margin-top: 20px;
  border-top: 1px solid #e7edf4;
  background: #ffffff;
}

.footer-inner {
  padding-top: 30px;
  padding-bottom: 46px;
}

.order-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.order-menu a {
  color: #475569;
  font-size: 14px;
}

#footer .meta,
#footer .copyright {
  margin: 0 0 6px;
  color: #94a3b8;
  font-size: 13px;
}

/* mobile */
@media (max-width: 1024px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-row: 2;
  }

  .hero-inner {
    padding: 0 36px;
  }

  .post-item > a {
    flex-direction: column;
  }

  .post-item .thum {
    width: 100%;
    min-width: 0;
  }

  .post-item .thum img {
    aspect-ratio: 16 / 9;
  }

  .cover-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .related-box ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-top {
    min-height: 72px;
    flex-wrap: wrap;
  }

  .header-util {
    width: 100%;
    justify-content: space-between;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

  .header-nav {
    padding-bottom: 14px;
  }

  #gnb ul {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .hero-section {
    padding-top: 18px;
  }

  .hero-wrap {
    padding: 0 16px;
  }

  .main-slider ul li,
  .hero-inner {
    min-height: 260px;
  }

  .hero-inner {
    padding: 0 22px;
    align-items: center;
  }

  .hero-text {
    font-size: 22px;
    line-height: 1.4;
  }

  #container {
    padding-top: 22px;
    padding-bottom: 40px;
  }

  .content-wrap {
    gap: 20px;
  }

  .post-item > a {
    padding: 18px;
    border-radius: 20px;
  }

  .post-info .title {
    font-size: 24px;
  }

  .post-info .excerpt {
    font-size: 15px;
    line-height: 1.7;
  }

  .post-cover-inner {
    padding: 32px 24px;
  }

  .post-cover h1 {
    font-size: 28px;
  }

  .entry-content {
    padding: 28px 24px 32px;
  }

  .cover-card {
    padding: 20px;
    border-radius: 20px;
  }

  .cover-grid-3 {
    grid-template-columns: 1fr;
  }

  .cover-list-type li a {
    flex-direction: column;
  }

  .cover-list-type figure {
    width: 100%;
    min-width: 0;
  }

  .side-card {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .tags-box,
  .related-box,
  .comments,
  .empty-box {
    padding: 22px 20px;
  }
}
.hero-btn,
.main-slider .btn {
  display: none !important;
}