@charset "utf-8";

.public-list .main-wrap {
  width: 93.4%;
  margin: 0 auto;
  position: relative;
}

/* Reset & Box Sizing */
*, *::before, *::after { box-sizing: border-box; }

/* Top Navigation */
.top-nav { padding-top: 65px; }
.top-nav h3 {
  text-align: center;
  font-size: 26px;
  line-height: 42px;
  color: #333;
}

/* Sub Navigation (Flexbox replacement) */
.s-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  gap: 0 35px;
}
.s-nav li {
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.s-nav li a {
  display: inline-block;
  padding: 0 9px;
  color: #666;
  font-size: 14px;
  line-height: 34px;
  text-decoration: none;
}
.s-nav li:hover a,
.s-nav li.hover a { color: #333; }
.s-nav li.hover { border-bottom-color: #000; }

/* List Container (CSS Grid replacement) */
.list-wrap ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 54px 0 0;
}
.list-wrap li { width: 100%; }

/* Image Box & Hover Effects */
.img-box {
  display: block;
  position: relative;
  overflow: hidden;
}
.img-box img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
  transition: transform 0.4s ease;
}
.img-box:hover img { transform: scale(1.05); }

/* Gray Overlay */
.up-graybox {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}
.img-box:hover .up-graybox { opacity: 1; }
.up-graybox .stit { font-size: 16px; line-height: 1.8; }
.up-graybox .line {
  width: 100px;
  height: 1px;
  background: #f2f2f2;
  transition: all 0.6s ease;
}
.img-box:hover .up-graybox .line { width: 6px; opacity: 0.6; }

/* Content Box */
.cont-box {
  width: 100%;
  padding: 22px 6.5% 7px;
  border: 1px solid #f2f2f2;
}
.cont-box .stit {
  font-size: 18px;
  line-height: 30px;
  height: 30px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cont-box .stit a {
  color: #333;
  text-decoration: none;
  display: block;
}
.lab-font {
  font-size: 12px;
  line-height: 24px;
  min-height: 24px;
  margin: 8px 0;
  color: #666;
}

/* Bottom Link (Flexbox replacement for clearfix) */
.bot-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid #e5e5e5;
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
}
.link-detail { font-size: 14px; }
.point {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url(/img/ico_08.png) no-repeat center;
}
.bot-link:hover { color: #333; }
.bot-link:hover .point { background-image: url(/img/ico_08_h.png); }

/* Load More */
.load-more {
  width: 180px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  background: #eee;
  color: #999;
  font-size: 16px;
  margin: 30px auto 30px;
  cursor: pointer;
  transition: all 0.4s ease;
}
.load-more:hover { background: #333; color: #fff; }